* [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards
@ 2022-04-07 16:20 Valentin Caron
2022-04-07 16:20 ` [PATCH 1/2] ARM: dts: stm32: add RTC node on stm32mp131 Valentin Caron
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Valentin Caron @ 2022-04-07 16:20 UTC (permalink / raw)
To: Alexandre Torgue
Cc: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin, Erwan Le Ray,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Add RTC node on stm32mp13 soc.
Enable RTC on stm32mp135f-dk board.
Valentin Caron (2):
ARM: dts: stm32: add RTC node on stm32mp131
ARM: dts: stm32: enable RTC support on stm32mp135f-dk
arch/arm/boot/dts/stm32mp131.dtsi | 15 +++++++++++++++
arch/arm/boot/dts/stm32mp135f-dk.dts | 4 ++++
2 files changed, 19 insertions(+)
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: stm32: add RTC node on stm32mp131
2022-04-07 16:20 [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards Valentin Caron
@ 2022-04-07 16:20 ` Valentin Caron
2022-04-07 16:20 ` [PATCH 2/2] ARM: dts: stm32: enable RTC support on stm32mp135f-dk Valentin Caron
2022-04-19 15:37 ` [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Valentin Caron @ 2022-04-07 16:20 UTC (permalink / raw)
To: Alexandre Torgue
Cc: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin, Erwan Le Ray,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Add RTC node with compatible, clock, and interrupt properties
on stm32mp131.
Add clk_rtc_k fixed clock for RTC.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
arch/arm/boot/dts/stm32mp131.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index 1708c79b5254..9b1c87edd613 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -75,6 +75,12 @@ clk_pll4_r: clk-pll4_r {
compatible = "fixed-clock";
clock-frequency = <99000000>;
};
+
+ clk_rtc_k: clk-rtc-k {
+ #clock-cells = <0>;
+ compatible = "fixed-clock";
+ clock-frequency = <32768>;
+ };
};
intc: interrupt-controller@a0021000 {
@@ -218,6 +224,15 @@ iwdg2: watchdog@5a002000 {
status = "disabled";
};
+ rtc: rtc@5c004000 {
+ compatible = "st,stm32mp1-rtc";
+ reg = <0x5c004000 0x400>;
+ interrupts-extended = <&exti 19 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk_pclk4>, <&clk_rtc_k>;
+ clock-names = "pclk", "rtc_ck";
+ status = "disabled";
+ };
+
bsec: efuse@5c005000 {
compatible = "st,stm32mp15-bsec";
reg = <0x5c005000 0x400>;
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: stm32: enable RTC support on stm32mp135f-dk
2022-04-07 16:20 [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards Valentin Caron
2022-04-07 16:20 ` [PATCH 1/2] ARM: dts: stm32: add RTC node on stm32mp131 Valentin Caron
@ 2022-04-07 16:20 ` Valentin Caron
2022-04-19 15:37 ` [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Valentin Caron @ 2022-04-07 16:20 UTC (permalink / raw)
To: Alexandre Torgue
Cc: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin, Erwan Le Ray,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Enables the support of RTC on stm32mp135f-dk board.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
---
arch/arm/boot/dts/stm32mp135f-dk.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts
index ee100d108ea2..aefa25ee897d 100644
--- a/arch/arm/boot/dts/stm32mp135f-dk.dts
+++ b/arch/arm/boot/dts/stm32mp135f-dk.dts
@@ -37,6 +37,10 @@ &iwdg2 {
status = "okay";
};
+&rtc {
+ status = "okay";
+};
+
&sdmmc1 {
pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards
2022-04-07 16:20 [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards Valentin Caron
2022-04-07 16:20 ` [PATCH 1/2] ARM: dts: stm32: add RTC node on stm32mp131 Valentin Caron
2022-04-07 16:20 ` [PATCH 2/2] ARM: dts: stm32: enable RTC support on stm32mp135f-dk Valentin Caron
@ 2022-04-19 15:37 ` Alexandre TORGUE
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre TORGUE @ 2022-04-19 15:37 UTC (permalink / raw)
To: Valentin Caron
Cc: Rob Herring, Krzysztof Kozlowski, Maxime Coquelin, Erwan Le Ray,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Hi Valentin
On 4/7/22 18:20, Valentin Caron wrote:
> Add RTC node on stm32mp13 soc.
> Enable RTC on stm32mp135f-dk board.
>
> Valentin Caron (2):
> ARM: dts: stm32: add RTC node on stm32mp131
> ARM: dts: stm32: enable RTC support on stm32mp135f-dk
>
> arch/arm/boot/dts/stm32mp131.dtsi | 15 +++++++++++++++
> arch/arm/boot/dts/stm32mp135f-dk.dts | 4 ++++
> 2 files changed, 19 insertions(+)
>
Series applied on stm32-next.
Thanks
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-19 15:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 16:20 [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards Valentin Caron
2022-04-07 16:20 ` [PATCH 1/2] ARM: dts: stm32: add RTC node on stm32mp131 Valentin Caron
2022-04-07 16:20 ` [PATCH 2/2] ARM: dts: stm32: enable RTC support on stm32mp135f-dk Valentin Caron
2022-04-19 15:37 ` [PATCH 0/2] ARM: dts: stm32: add RTC support on stm32mp13 boards Alexandre TORGUE
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).