diff mbox series

[1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC

Message ID 20220427081914.6773-1-eagle.alexander923@gmail.com
State New
Headers show
Series [1/2] ARM: dts: am335x-myirtech: Add an external clock oscillator for CPU RTC | expand

Commit Message

Alexander Shiyan April 27, 2022, 8:19 a.m. UTC
The CPU RTC has an external crystal, so to keep time, let's define
it for devicetree.

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 arch/arm/boot/dts/am335x-myirtech-myc.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Tony Lindgren May 3, 2022, 6:27 a.m. UTC | #1
* Alexander Shiyan <eagle.alexander923@gmail.com> [220427 11:16]:
> The CPU RTC has an external crystal, so to keep time, let's define
> it for devicetree.

I've applied both patches into omap-for-v5.19/dt thanks.

Tony
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
index 245c35f41cdf..d94e096983c7 100644
--- a/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
+++ b/arch/arm/boot/dts/am335x-myirtech-myc.dtsi
@@ -27,6 +27,13 @@  memory@80000000 {
 		reg = <0x80000000 0x10000000>;
 	};
 
+	clk32k: clk32k {
+		compatible = "fixed-clock";
+		clock-frequency = <32768>;
+
+		#clock-cells = <0>;
+	};
+
 	vdd_mod: vdd_mod_reg {
 		compatible = "regulator-fixed";
 		regulator-name = "vdd-mod";
@@ -149,6 +156,8 @@  eeprom: eeprom@50 {
 };
 
 &rtc {
+	clocks = <&clk32k>;
+	clock-names = "ext-clk";
 	system-power-controller;
 };