ARM: dts: sam9x60: add rtt
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 10 Jun 2020 09:05:36 +0000 (12:05 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 26 Jun 2020 20:40:22 +0000 (22:40 +0200)
Add RTT. Allong with it enable GBPR as it is requested by RTT.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1591779936-18577-4-git-send-email-claudiu.beznea@microchip.com
arch/arm/boot/dts/at91-sam9x60ek.dts
arch/arm/boot/dts/sam9x60.dtsi

index 8652dbb..ca15ff8 100644 (file)
        };
 };
 
+&gpbr {
+       status = "okay";
+};
+
 &i2s {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_i2s_default>;
        };
 };
 
+&rtt {
+       atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+       status = "okay";
+};
+
 &shutdown_controller {
        atmel,shdwc-debouncer = <976>;
        status = "okay";
index 6763423..d10843d 100644 (file)
                                status = "disabled";
                        };
 
+                       rtt: rtt@fffffe20 {
+                               compatible = "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt";
+                               reg = <0xfffffe20 0x20>;
+                               interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+                               clocks = <&clk32k 0>;
+                       };
+
                        pit: timer@fffffe40 {
                                compatible = "atmel,at91sam9260-pit";
                                reg = <0xfffffe40 0x10>;