2023-09-28 23:03:53

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Tudor Ambarus <[email protected]>
[[email protected]: adapt to newer kernel]
Signed-off-by: Nicolas Ferre <[email protected]>
---
arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
index cb86a3a170ce..83372c1f291b 100644
--- a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
+++ b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
@@ -439,6 +439,10 @@ &pwm0 {
status = "okay";
};

+&rtt {
+ atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+};
+
&sdmmc0 {
bus-width = <4>;
pinctrl-names = "default";
--
2.39.2


2023-09-29 20:48:53

by Claudiu

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT



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.
>
> Signed-off-by: Tudor Ambarus <[email protected]>
> [[email protected]: adapt to newer kernel]
> Signed-off-by: Nicolas Ferre <[email protected]>

Applied to at91-dt, thanks!

2023-10-05 16:56:49

by Claudiu

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT



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.
>
> Signed-off-by: Tudor Ambarus <[email protected]>
> [[email protected]: adapt to newer kernel]
> Signed-off-by: Nicolas Ferre <[email protected]>

Reviewed-by: Claudiu Beznea <[email protected]>

> ---
> arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
> index cb86a3a170ce..83372c1f291b 100644
> --- a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
> +++ b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
> @@ -439,6 +439,10 @@ &pwm0 {
> status = "okay";
> };
>
> +&rtt {
> + atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
> +};
> +
> &sdmmc0 {
> bus-width = <4>;
> pinctrl-names = "default";