From 591272d197c4866b82f0ed638efe54673f2ab490 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 2 Nov 2024 20:17:52 +0000 Subject: [PATCH] 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 --- .../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"; }; -- 2.30.2