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 37de94f..dbce6f7 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 e77fa36..cc06da3 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>;