[PATCH 5/5] arm64: dts: mediatek: mt8183-evb: add PWM support
Fabien Parent
fparent at baylibre.com
Mon Oct 19 10:07:05 EDT 2020
Enable the pwm driver and set the pinctrl for PWM A line.
Signed-off-by: Fabien Parent <fparent at baylibre.com>
---
arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
index ae405bd8f06b..c8e1d97e564f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
@@ -333,6 +333,12 @@ pins_spi{
bias-disable;
};
};
+
+ pwm0_pin_default: pwm0 {
+ pwm {
+ pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
+ };
+ };
};
&spi0 {
@@ -381,3 +387,9 @@ &spi5 {
&uart0 {
status = "okay";
};
+
+&pwm0 {
+ status = "okay";
+ pinctrl-0 = <&pwm0_pin_default>;
+ pinctrl-names = "default";
+};
--
2.28.0
More information about the Linux-mediatek
mailing list