Skip to contentSkip to conversation

ARM: dts: am33xx: Add clock info to rtc nodes

PATCH In review Keerthy 2 participants 6 messages Oct 27, 2016 – Nov 9, 2016 2 messages not in the archive Device tree bindings

lore
Share & tools
lore

Keerthy

author
#0 lore raw

cover ARM: dts: am33xx: Add clock info to rtc nodes

The series adds the clock info to rtc node.

Boot tested and checked for rtc ticking on am335x-boneblack, am335x-bone am437x-gp-evm.

Keerthy (3):
ARM: dts: AM335X-bone-common: Add the internal and external clock
nodes for rtc
ARM: dts: AM335X-evm: Add the internal and external clock nodes for
rtc
ARM: dts: AM335X-evmsk: Add the internal and external clock nodes for
rtc

 arch/arm/boot/dts/am335x-bone-common.dtsi | 5 +++++
 arch/arm/boot/dts/am335x-evm.dts          | 5 +++++
 arch/arm/boot/dts/am335x-evmsk.dts        | 5 +++++
 arch/arm/boot/dts/am33xx.dtsi             | 2 ++
 4 files changed, 17 insertions(+)
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#2 lore raw

PATCH 1/3 ARM: dts: AM335X-bone-common: Add the internal and external clock nodes for rtc

In reply to a message not in the archive

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.

---
 arch/arm/boot/dts/am335x-bone-common.dtsi | 5 +++++
 arch/arm/boot/dts/am33xx.dtsi             | 2 ++
 2 files changed, 7 insertions(+)
arch/arm/boot/dts/am335x-bone-common.dtsi +5 -0
index 007b5e5..ca9f7ce 100644
@@ -393,3 +393,8 @@
 &sham {
 	status = "okay";
 };
+
+&rtc {
+	clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
+	clock-names = "ext-clk", "int-clk";
+};
arch/arm/boot/dts/am33xx.dtsi +2 -0
index 194d884..d52fa1c 100644
@@ -505,6 +505,8 @@
 			interrupts = <75
 				      76>;
 			ti,hwmods = "rtc";
+			clocks = <&clkdiv32k_ick>;
+			clock-names = "int-clk";
 		};
 
 		spi0: spi@48030000 {
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#3 lore raw

PATCH 2/3 ARM: dts: AM335X-evm: Add the internal and external clock nodes for rtc

In reply to a message not in the archive

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.

---
 arch/arm/boot/dts/am335x-evm.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/am335x-evm.dts +5 -0
index e82432c..c2186ec 100644
@@ -783,3 +783,8 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&dcan1_pins_default>;
 };
+
+&rtc {
+	clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
+	clock-names = "ext-clk", "int-clk";
+};
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#4 lore raw

PATCH 3/3 ARM: dts: AM335X-evmsk: Add the internal and external clock nodes for rtc

In reply to a message not in the archive

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.

---
 arch/arm/boot/dts/am335x-evmsk.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/am335x-evmsk.dts +5 -0
index 975c36e..e2548d1 100644
@@ -715,3 +715,8 @@
 
 	blue-and-red-wiring = "crossed";
 };
+
+&rtc {
+	clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
+	clock-names = "ext-clk", "int-clk";
+};
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#5 lore raw
In reply to a message not in the archive
Quoted 4 lines · Keerthy

The series adds the clock info to rtc node.

Boot tested and checked for rtc ticking on am335x-boneblack, am335x-bone am437x-gp-evm.

Tony,

The relevant driver changes are already pulled by Alexandre Belloni.
https://patchwork.kernel.org/patch/9398903/.

Hope you call pull this set.

Regards,
Keerthy

Quoted 9 lines

Keerthy (3):
ARM: dts: AM335X-bone-common: Add the internal and external clock
nodes for rtc
ARM: dts: AM335X-evm: Add the internal and external clock nodes for
rtc
ARM: dts: AM335X-evmsk: Add the internal and external clock nodes for
rtc

Quoted 6 lines
 arch/arm/boot/dts/am335x-bone-common.dtsi | 5 +++++
 arch/arm/boot/dts/am335x-evm.dts          | 5 +++++
 arch/arm/boot/dts/am335x-evmsk.dts        | 5 +++++
 arch/arm/boot/dts/am33xx.dtsi             | 2 ++
 4 files changed, 17 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to a message not in the archive
Quoted 8 lines · Keerthy
Quoted 4 lines · Keerthy

The series adds the clock info to rtc node.

Boot tested and checked for rtc ticking on am335x-boneblack, am335x-bone am437x-gp-evm.

Quoted 6 lines

Tony,

The relevant driver changes are already pulled by Alexandre Belloni.
https://patchwork.kernel.org/patch/9398903/.

Hope you call pull this set.

Applying into omap-for-v4.10/dt thanks.

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html