ARM: realview: add RTC clocks to device tree
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 10 Oct 2014 12:26:06 +0000 (14:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Oct 2014 11:49:10 +0000 (13:49 +0200)
The PB1176 has two PL031 RTC clocks, one in the devchip and one
in the FPGA. Add them to the device tree.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/arm-realview-pb1176.dts

index 4ca4867..0e5b608 100644 (file)
                        clock-names = "timer1", "timer2", "apb_pclk";
                };
 
+               pb1176_rtc: rtc@10108000 {
+                       compatible = "arm,pl031", "arm,primecell";
+                       reg = <0x10108000 0x1000>;
+                       interrupt-parent = <&intc_dc1176>;
+                       interrupts = <0 14 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&pclk>;
+                       clock-names = "apb_pclk";
+               };
+
                pb1176_gpio0: gpio@1010a000 {
                        compatible = "arm,pl061", "arm,primecell";
                        reg = <0x1010a000 0x1000>;
                        clocks = <&pclk>;
                        clock-names = "apb_pclk";
                };
+
+               fpga_rtc: rtc@10017000 {
+                       compatible = "arm,pl031", "arm,primecell";
+                       reg = <0x10017000 0x1000>;
+                       interrupt-parent = <&intc_fpga1176>;
+                       interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&pclk>;
+                       clock-names = "apb_pclk";
+               };
        };
 };