mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Add alias for RTC
@ 2025-02-14 23:22 Kendall Willis
  2025-03-02 13:18 ` Vignesh Raghavendra
  0 siblings, 1 reply; 2+ messages in thread
From: Kendall Willis @ 2025-02-14 23:22 UTC (permalink / raw)
  To: nm, vigneshr, kristo, robh, krzk+dt, conor+dt
  Cc: msp, khilman, d-gole, k-willis, linux-kernel, devicetree,
	linux-arm-kernel

From: Vibhore Vardhan <vibhore@ti.com>

Adds alias for SoC RTC so that it gets assigned rtc0. PMIC node is
assigned rtc1 so that PMIC RTC gets probed as rtc1. This makes it
consistent for testing rtcwake with other AM62 devices where rtc0
is SoC RTC.

Signed-off-by: Vibhore Vardhan <vibhore@ti.com>
[k-willis@ti.com: Reworded commit message]
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Kendall Willis <k-willis@ti.com>
---
Link to v1:
https://lore.kernel.org/all/20250212210604.745175-1-k-willis@ti.com/

Changes from v1 to v2:
- rebased on latest linux-next
- fix spelling mistake
- add test log

Tested on AM62A with rtcwake [1]. The wakeup source is 0x50 which 
indicates the SoC RTC is used to wakeup the system as detailed in the
TISCI documentation [2].

[1] https://gist.github.com/kwillis01/402aa56d263ef757316f1d6e44dea83f
[2] https://downloads.ti.com/tisci/esd/latest/2_tisci_msgs/pm/lpm.html#tisci-msg-lpm-wake-reason
---
 arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
index a6f0d87a50d8..51ea961f166e 100644
--- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts
@@ -22,6 +22,8 @@ aliases {
 		serial3 = &main_uart1;
 		mmc0 = &sdhci0;
 		mmc1 = &sdhci1;
+		rtc0 = &wkup_rtc0;
+		rtc1 = &tps659312;
 	};
 
 	chosen {

base-commit: 0ae0fa3bf0b44c8611d114a9f69985bf451010c3
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-02 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-14 23:22 [PATCH v2] arm64: dts: ti: k3-am62a7-sk: Add alias for RTC Kendall Willis
2025-03-02 13:18 ` Vignesh Raghavendra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®