Skip to contentSkip to conversation

ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT

PATCH Applied [email protected] 2 participants 3 messages Sep 28, 2023 – Sep 29, 2023

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT

From: Tudor Ambarus <[email protected]>

atmel,rtt-rtc-time-reg is a mandatory property and encodes the GPBR register used to store the time base when the RTT is used as an RTC. Align the RTT with what's currently done for sam9x60ek and sama7g5ek, and enable it by default even if RTC is also enabled.

---
 arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts +4 -0
index cb86a3a170ce..83372c1f291b 100644
@@ -439,6 +439,10 @@ &pwm0 {
 	status = "okay";
 };
 
+&rtt {
+	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+};
+
 &sdmmc0 {
 	bus-width = <4>;
 	pinctrl-names = "default";
Signature · 1 line
2.39.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · On 28.09.2023 17:36, [email protected] wrote:

From: Tudor Ambarus <[email protected]>

atmel,rtt-rtc-time-reg is a mandatory property and encodes the GPBR register used to store the time base when the RTT is used as an RTC. Align the RTT with what's currently done for sam9x60ek and sama7g5ek, and enable it by default even if RTC is also enabled.

Quoted 19 lines
---
 arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts +4 -0
index cb86a3a170ce..83372c1f291b 100644
@@ -439,6 +439,10 @@ &pwm0 {
 	status = "okay";
 };
 
+&rtt {
+	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+};
+
 &sdmmc0 {
 	bus-width = <4>;
 	pinctrl-names = "default";
maintainer Applied
#2 lore raw
In reply to [email protected]
Quoted 10 lines · On 28.09.2023 17:36, [email protected] wrote:

From: Tudor Ambarus <[email protected]>

atmel,rtt-rtc-time-reg is a mandatory property and encodes the GPBR register used to store the time base when the RTT is used as an RTC. Align the RTT with what's currently done for sam9x60ek and sama7g5ek, and enable it by default even if RTC is also enabled.

Applied to at91-dt, thanks!