]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i: a83t: Enable the PWM
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 21 Dec 2017 11:02:36 +0000 (12:02 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 4 Jan 2018 19:41:21 +0000 (20:41 +0100)
The A83T has the same PWM block than the H3. Add it to our DT.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a83t.dtsi

index 8e942ad4158226fad8003634686d06b08b5e7dfc..fed10aea7c7b788f82603be3df1721ca15f874da 100644 (file)
@@ -473,6 +473,11 @@ mmc2_8bit_emmc_pins: mmc2-8bit-emmc-pins {
                                bias-pull-up;
                        };
 
+                       pwm_pin: pwm-pin {
+                               pins = "PD28";
+                               function = "pwm";
+                       };
+
                        spdif_tx_pin: spdif-tx-pin {
                                pins = "PE18";
                                function = "spdif";
@@ -571,6 +576,15 @@ i2s2: i2s@1c22800 {
                        status = "disabled";
                };
 
+               pwm: pwm@1c21400 {
+                       compatible = "allwinner,sun8i-a83t-pwm",
+                                    "allwinner,sun8i-h3-pwm";
+                       reg = <0x01c21400 0x400>;
+                       clocks = <&osc24M>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
+               };
+
                uart0: serial@1c28000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x01c28000 0x400>;