Skip to content

Commit c71dbeb

Browse files
docularxudlan17
authored andcommitted
riscv: dts: spacemit: add pwm14_1 pinctrl setting
This patch adds the option 1 (hence the name pwm14_1) pinctrl configuration for PWM14 on the SpacemiT K1 SoC. PWM14 option 1 is used for PWM-based backlight control on MIPI displays. This configuration is present on all existing K1 development boards, such as the Banana Pi BPI-F3 and the Milk-V Jupiter. For reference, a more complete list of PWM0-PWM19 pinctrl configurations including all options can be found in [1]. Note: Since the corresponding functionality for other pins is not yet in use or ready for upstreaming, this patch includes only the pwm14_1 setting. [1] https://lore.kernel.org/all/[email protected]/ Signed-off-by: Guodong Xu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yixun Lan <[email protected]>
1 parent 66f56c7 commit c71dbeb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,12 @@
2020
drive-strength = <32>;
2121
};
2222
};
23+
24+
pwm14_1_cfg: pwm14-1-cfg {
25+
pwm14-1-pins {
26+
pinmux = <K1_PADCONF(44, 4)>;
27+
bias-pull-up = <0>;
28+
drive-strength = <32>;
29+
};
30+
};
2331
};

0 commit comments

Comments
 (0)