[PATCH 5/5] arm64: dts: mediatek: mt8183-evb: add PWM support
From: Fabien Parent
Date: Mon Oct 19 2020 - 10:07:26 EST
Enable the pwm driver and set the pinctrl for PWM A line.
Signed-off-by: Fabien Parent <fparent@xxxxxxxxxxxx>
---
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