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 0c0a90c..dc561d5 100644 (file)
 &sham {
        status = "okay";
 };
+
+&rtc {
+       clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
+       clock-names = "ext-clk", "int-clk";
+};
index 348ed77..104bea4 100644 (file)
                        interrupts = <75
                                      76>;
                        ti,hwmods = "rtc";
+                       clocks = <&clkdiv32k_ick>;
+                       clock-names = "int-clk";
                };
 
                spi0: spi@48030000 {