arm64: dts: mediatek: mt8183-evb: add PWM support
authorFabien Parent <fparent@baylibre.com>
Wed, 9 Dec 2020 12:03:21 +0000 (13:03 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 29 Jan 2021 16:11:19 +0000 (17:11 +0100)
Enable the pwm driver and set the pinctrl for PWM A line.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Link: https://lore.kernel.org/r/20201209120322.137610-2-fparent@baylibre.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183-evb.dts

index cba2d89..3249c95 100644 (file)
                        bias-disable;
                };
        };
+
+       pwm_pins_1: pwm1 {
+               pins_pwm {
+                       pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
+               };
+       };
 };
 
 &spi0 {
 &uart0 {
        status = "okay";
 };
+
+&pwm1 {
+       status = "okay";
+       pinctrl-0 = <&pwm_pins_1>;
+       pinctrl-names = "default";
+};