]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: at91: sama5d2_xplained: add pwm controller
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 31 May 2017 09:23:12 +0000 (12:23 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 31 May 2017 09:59:03 +0000 (11:59 +0200)
Add pwm controller bindings for sama5d2_xplained
and enable it.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/boot/dts/at91-sama5d2_xplained.dts
arch/arm/boot/dts/sama5d2.dtsi

index 37de94fc9b5ad4cb7977e5ef291662355215ed9c..dbce6f7a73dd671bc62d9103be2653ca7a5b1f09 100644 (file)
                                };
                        };
 
+                       pwm0: pwm@f802c000 {
+                               status = "okay";
+                       };
+
                        flx0: flexcom@f8034000 {
                                atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
                                status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */
index e77fa36cb6f1cb8a909d94bb4139d414e0e0b4e0..cc06da3943668415e9b6379dbe38d2fde36518ec 100644 (file)
                                status = "disabled";
                        };
 
+                       pwm0: pwm@f802c000 {
+                               compatible = "atmel,sama5d2-pwm";
+                               reg = <0xf802c000 0x4000>;
+                               interrupts = <38 IRQ_TYPE_LEVEL_HIGH 7>;
+                               #pwm-cells = <3>;
+                               clocks = <&pwm_clk>;
+                       };
+
                        sfr: sfr@f8030000 {
                                compatible = "atmel,sama5d2-sfr", "syscon";
                                reg = <0xf8030000 0x98>;