Thread (4 messages) 4 messages, 2 authors, 2021-01-29

Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support

From: Matthias Brugger <matthias.bgg@gmail.com>
Date: 2021-01-29 16:14:03
Also in: linux-mediatek


On 09/12/2020 13:03, Fabien Parent wrote:
Enable the pwm driver and set the pinctrl for PWM A line.

Signed-off-by: Fabien Parent <redacted>
Applied to v5.11-next/dts64

Thanks
quoted hunk ↗ jump to hunk
---

V2:
	* rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0
	* rename the pio node and labels to match the coding standard of this dts

 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 cba2d8933e79..3249c959f76f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
@@ -344,6 +344,12 @@ pins_spi{
 			bias-disable;
 		};
 	};
+
+	pwm_pins_1: pwm1 {
+		pins_pwm {
+			pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
+		};
+	};
 };
 
 &spi0 {
@@ -392,3 +398,9 @@ &spi5 {
 &uart0 {
 	status = "okay";
 };
+
+&pwm1 {
+	status = "okay";
+	pinctrl-0 = <&pwm_pins_1>;
+	pinctrl-names = "default";
+};
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help