[openwrt/openwrt] mediatek: filogic: BPi-R4: wire up pinctrl for pwm-fan
LEDE Commits
lede-commits at lists.infradead.org
Tue Nov 5 04:31:02 PST 2024
blogic pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/ccd30b9ed7d83ec1d340c7f3193497b19251dc2a
commit ccd30b9ed7d83ec1d340c7f3193497b19251dc2a
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Nov 2 20:17:52 2024 +0000
mediatek: filogic: BPi-R4: wire up pinctrl for pwm-fan
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 at makrotopia.org>
---
.../arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
index fae5d0ebfa..c4455fbc74 100644
--- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
+++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
@@ -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";
};
More information about the lede-commits
mailing list