[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201019140705.1518822-6-fparent@baylibre.com>
Date: Mon, 19 Oct 2020 16:07:05 +0200
From: Fabien Parent <fparent@...libre.com>
To: linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-pwm@...r.kernel.org
Cc: matthias.bgg@...il.com, robh+dt@...nel.org, lee.jones@...aro.org,
u.kleine-koenig@...gutronix.de, thierry.reding@...il.com,
Fabien Parent <fparent@...libre.com>
Subject: [PATCH 5/5] arm64: dts: mediatek: mt8183-evb: add PWM support
Enable the pwm driver and set the pinctrl for PWM A line.
Signed-off-by: Fabien Parent <fparent@...libre.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
Powered by blists - more mailing lists