ARM: dts: sunxi: h3/h5: add r_pwm node
authorMans Rullgard <mans@mansr.com>
Thu, 27 Feb 2020 11:55:26 +0000 (11:55 +0000)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 27 Feb 2020 12:55:34 +0000 (13:55 +0100)
There is a second PWM unit available in the PL I/O block.
Add a node and pinmux definition for it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm/boot/dts/sunxi-h3-h5.dtsi

index 5e9c3060aa08baed801cca8b461bd46cef60f4ea..ed39088491110428c31ef3fdbdfd0a7df33f2cc6 100644 (file)
                                pins = "PL0", "PL1";
                                function = "s_i2c";
                        };
+
+                       r_pwm_pin: r-pwm-pin {
+                               pins = "PL10";
+                               function = "s_pwm";
+                       };
+               };
+
+               r_pwm: pwm@1f03800 {
+                       compatible = "allwinner,sun8i-h3-pwm";
+                       reg = <0x01f03800 0x8>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&r_pwm_pin>;
+                       clocks = <&osc24M>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
                };
        };
 };