ARM: dts: at91: sama5d2: add TCB node
authorClément Léger <clement.leger@bootlin.com>
Thu, 31 Mar 2022 08:55:08 +0000 (10:55 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 1 Apr 2022 12:42:46 +0000 (15:42 +0300)
Add the device-tree node to describe the TCB timer.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
arch/arm/dts/sama5d2.dtsi

index 7de58e4..058009a 100644 (file)
@@ -1,4 +1,5 @@
 #include "skeleton.dtsi"
+#include <dt-bindings/interrupt-controller/irq.h>
 
 / {
        model = "Atmel SAMA5D2 family SoC";
                                status = "disabled";
                        };
 
+                       tcb0: timer@f800c000 {
+                               compatible = "atmel,sama5d2-tcb", "simple-mfd", "syscon";
+                               reg = <0xf800c000 0x100>;
+                               interrupts = <35 IRQ_TYPE_LEVEL_HIGH 0>;
+                               clocks = <&tcb0_clk>, <&tcb0_gclk>, <&clk32k>;
+                               clock-names = "t0_clk", "gclk", "slow_clk";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               timer0: timer@0 {
+                                       compatible = "atmel,tcb-timer";
+                                       reg = <0>, <1>;
+                               };
+                       };
+
                        uart0: serial@f801c000 {
                                compatible = "atmel,at91sam9260-usart";
                                reg = <0xf801c000 0x100>;