* [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT
@ 2023-09-28 14:36 nicolas.ferre
2023-09-29 18:06 ` claudiu beznea
2023-09-29 18:10 ` claudiu beznea
0 siblings, 2 replies; 3+ messages in thread
From: nicolas.ferre @ 2023-09-28 14:36 UTC (permalink / raw)
To: Claudiu Beznea, linux-arm-kernel
Cc: Alexandre Belloni, linux-kernel, devicetree, Tudor Ambarus
From: Tudor Ambarus <tudor.ambarus@linaro.org>
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 <tudor.ambarus@linaro.org>
[nicolas.ferre@microchip.com: adapt to newer kernel]
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT
2023-09-28 14:36 [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT nicolas.ferre
@ 2023-09-29 18:06 ` claudiu beznea
2023-09-29 18:10 ` claudiu beznea
1 sibling, 0 replies; 3+ messages in thread
From: claudiu beznea @ 2023-09-29 18:06 UTC (permalink / raw)
To: nicolas.ferre, linux-arm-kernel
Cc: Alexandre Belloni, linux-kernel, devicetree, Tudor Ambarus
On 28.09.2023 17:36, nicolas.ferre@microchip.com wrote:
> From: Tudor Ambarus <tudor.ambarus@linaro.org>
>
> 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 <tudor.ambarus@linaro.org>
> [nicolas.ferre@microchip.com: adapt to newer kernel]
> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
> ---
> 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";
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT
2023-09-28 14:36 [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT nicolas.ferre
2023-09-29 18:06 ` claudiu beznea
@ 2023-09-29 18:10 ` claudiu beznea
1 sibling, 0 replies; 3+ messages in thread
From: claudiu beznea @ 2023-09-29 18:10 UTC (permalink / raw)
To: nicolas.ferre, linux-arm-kernel
Cc: Alexandre Belloni, linux-kernel, devicetree, Tudor Ambarus
On 28.09.2023 17:36, nicolas.ferre@microchip.com wrote:
> From: Tudor Ambarus <tudor.ambarus@linaro.org>
>
> 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 <tudor.ambarus@linaro.org>
> [nicolas.ferre@microchip.com: adapt to newer kernel]
> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Applied to at91-dt, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-29 18:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-28 14:36 [PATCH] ARM: dts: at91: sam9x60_curiosity: Add mandatory dt property for RTT nicolas.ferre
2023-09-29 18:06 ` claudiu beznea
2023-09-29 18:10 ` claudiu beznea
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).