Skip to content

Commit

Permalink
mediatek: filogic: BPi-R4: wire up pinctrl for pwm-fan
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dangowrt committed Nov 2, 2024
1 parent 2cbd230 commit 591272d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,22 @@
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";
};
Expand Down

0 comments on commit 591272d

Please sign in to comment.