mediatek: filogic: BPi-R4: wire up pinctrl for pwm-fan
authorDaniel Golle <daniel@makrotopia.org>
Sat, 2 Nov 2024 20:17:52 +0000 (20:17 +0000)
committerJohn Crispin <john@phrozen.org>
Tue, 5 Nov 2024 12:30:21 +0000 (13:30 +0100)
Assign pwm function of PWM0 pin to the pwm-fan.
This is mostly just cosmetics as it basically reflects the default
setting of that pin.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi

index fae5d0ebfa8aa3cffb174ca313724710b4f8862c..c4455fbc7471edb879b51ece42f88ca3cb74aec3 100644 (file)
        status = "okay";
 };
 
+&pio {
+       pwm0_pins: pwm0-pins {
+               mux {
+                       groups = "pwm0";
+                       function = "pwm";
+               };
+       };
+};
+
 &pwm {
        status = "okay";
 };
 
 &fan {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pwm0_pins>;
        pwms = <&pwm 0 50000>;
        status = "okay";
 };