ARM: dts: AM335X-bone-common: Add the internal and external clock nodes for rtc
authorKeerthy <j-keerthy@ti.com>
Thu, 27 Oct 2016 05:48:06 +0000 (11:18 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 9 Nov 2016 22:46:29 +0000 (15:46 -0700)
rtc can either be supplied from internal 32k clock or external crystal
generated 32k clock. Internal clock is SoC specific and the external
clock is board dependent. Assigning the corresponding clocks.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-bone-common.dtsi
arch/arm/boot/dts/am33xx.dtsi

index 0c0a90c30afaf4013276cdcb042081f7bb2955da..dc561d505bbe2ce10054c7bc19452b0b4b76fc4f 100644 (file)
 &sham {
        status = "okay";
 };
+
+&rtc {
+       clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
+       clock-names = "ext-clk", "int-clk";
+};
index 348ed77a355ad019af8eb99e295dd9ff3a84db16..104bea434e815abc6fbb5eee4e6dd952361629b2 100644 (file)
                        interrupts = <75
                                      76>;
                        ti,hwmods = "rtc";
+                       clocks = <&clkdiv32k_ick>;
+                       clock-names = "int-clk";
                };
 
                spi0: spi@48030000 {