* [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429
@ 2017-01-16 13:29 Amelie Delaunay
2017-01-16 13:29 ` [PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU Amelie Delaunay
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: Amelie Delaunay @ 2017-01-16 13:29 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
Alexandre Torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Amelie Delaunay
This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to
the RTC must be 1 MHz.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32f429.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi
index e9324a3..557c1f4 100644
--- a/arch/arm/boot/dts/stm32f429.dtsi
+++ b/arch/arm/boot/dts/stm32f429.dtsi
@@ -433,6 +433,8 @@
reg = <0x40023800 0x400>;
clocks = <&clk_hse>, <&clk_i2s_ckin>;
st,syscfg = <&pwrcfg>;
+ assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
+ assigned-clock-rates = <1000000>;
};
dma1: dma-controller@40026000 {
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU
2017-01-16 13:29 [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Amelie Delaunay
@ 2017-01-16 13:29 ` Amelie Delaunay
2017-01-16 14:39 ` Alexandre Torgue
2017-01-16 13:29 ` [PATCHv3 RESEND 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco Amelie Delaunay
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Amelie Delaunay @ 2017-01-16 13:29 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
Alexandre Torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Amelie Delaunay
This patch adds STM32 RTC bindings for STM32F429.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32f429.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi
index 557c1f4..f05a9d9 100644
--- a/arch/arm/boot/dts/stm32f429.dtsi
+++ b/arch/arm/boot/dts/stm32f429.dtsi
@@ -125,6 +125,20 @@
status = "disabled";
};
+ rtc: rtc@40002800 {
+ compatible = "st,stm32-rtc";
+ reg = <0x40002800 0x400>;
+ clocks = <&rcc 1 CLK_RTC>;
+ clock-names = "ck_rtc";
+ assigned-clocks = <&rcc 1 CLK_RTC>;
+ assigned-clock-parents = <&rcc 1 CLK_LSE>;
+ interrupt-parent = <&exti>;
+ interrupts = <17 1>;
+ interrupt-names = "alarm";
+ st,syscfg = <&pwrcfg>;
+ status = "disabled";
+ };
+
usart2: serial@40004400 {
compatible = "st,stm32-usart", "st,stm32-uart";
reg = <0x40004400 0x400>;
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCHv3 RESEND 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco
2017-01-16 13:29 [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Amelie Delaunay
2017-01-16 13:29 ` [PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU Amelie Delaunay
@ 2017-01-16 13:29 ` Amelie Delaunay
2017-01-16 14:39 ` Alexandre Torgue
2017-01-16 13:29 ` [PATCHv3 RESEND 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco Amelie Delaunay
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Amelie Delaunay @ 2017-01-16 13:29 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
Alexandre Torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Amelie Delaunay
This patch enables RTC on stm32f429-disco with LSI as clock source because
X2 crystal for LSE is not fitted by default.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32f429-disco.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts
index 7d0415e..9222b9f 100644
--- a/arch/arm/boot/dts/stm32f429-disco.dts
+++ b/arch/arm/boot/dts/stm32f429-disco.dts
@@ -94,6 +94,12 @@
clock-frequency = <8000000>;
};
+&rtc {
+ assigned-clocks = <&rcc 1 CLK_RTC>;
+ assigned-clock-parents = <&rcc 1 CLK_LSI>;
+ status = "okay";
+};
+
&usart1 {
pinctrl-0 = <&usart1_pins_a>;
pinctrl-names = "default";
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCHv3 RESEND 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco
2017-01-16 13:29 [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Amelie Delaunay
2017-01-16 13:29 ` [PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU Amelie Delaunay
2017-01-16 13:29 ` [PATCHv3 RESEND 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco Amelie Delaunay
@ 2017-01-16 13:29 ` Amelie Delaunay
2017-01-16 14:39 ` Alexandre Torgue
2017-01-16 13:29 ` [PATCHv3 RESEND 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval Amelie Delaunay
2017-01-16 14:39 ` [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Alexandre Torgue
4 siblings, 1 reply; 10+ messages in thread
From: Amelie Delaunay @ 2017-01-16 13:29 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
Alexandre Torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Amelie Delaunay
This patch enables RTC on stm32f469-disco with default LSE clock source.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32f469-disco.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
index fda12a4..f52b9f6 100644
--- a/arch/arm/boot/dts/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/stm32f469-disco.dts
@@ -78,6 +78,10 @@
clock-frequency = <8000000>;
};
+&rtc {
+ status = "okay";
+};
+
&usart3 {
pinctrl-0 = <&usart3_pins_a>;
pinctrl-names = "default";
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCHv3 RESEND 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval
2017-01-16 13:29 [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Amelie Delaunay
` (2 preceding siblings ...)
2017-01-16 13:29 ` [PATCHv3 RESEND 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco Amelie Delaunay
@ 2017-01-16 13:29 ` Amelie Delaunay
2017-01-16 14:40 ` Alexandre Torgue
2017-01-16 14:39 ` [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Alexandre Torgue
4 siblings, 1 reply; 10+ messages in thread
From: Amelie Delaunay @ 2017-01-16 13:29 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
Alexandre Torgue
Cc: devicetree, linux-arm-kernel, linux-kernel, Amelie Delaunay
This patch enables RTC on stm32429i-eval with default LSE clock source.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32429i-eval.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts
index 2181220..eedb27d 100644
--- a/arch/arm/boot/dts/stm32429i-eval.dts
+++ b/arch/arm/boot/dts/stm32429i-eval.dts
@@ -157,6 +157,10 @@
};
};
+&rtc {
+ status = "okay";
+};
+
&usart1 {
pinctrl-0 = <&usart1_pins_a>;
pinctrl-names = "default";
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429
2017-01-16 13:29 [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Amelie Delaunay
` (3 preceding siblings ...)
2017-01-16 13:29 ` [PATCHv3 RESEND 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval Amelie Delaunay
@ 2017-01-16 14:39 ` Alexandre Torgue
4 siblings, 0 replies; 10+ messages in thread
From: Alexandre Torgue @ 2017-01-16 14:39 UTC (permalink / raw)
To: Amelie Delaunay, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin
Cc: devicetree, linux-arm-kernel, linux-kernel
Hi Amélie,
On 01/16/2017 02:29 PM, Amelie Delaunay wrote:
> This patch set HSE_RTC clock frequency to 1 MHz, as the clock supplied to
> the RTC must be 1 MHz.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> arch/arm/boot/dts/stm32f429.dtsi | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi
> index e9324a3..557c1f4 100644
> --- a/arch/arm/boot/dts/stm32f429.dtsi
> +++ b/arch/arm/boot/dts/stm32f429.dtsi
> @@ -433,6 +433,8 @@
> reg = <0x40023800 0x400>;
> clocks = <&clk_hse>, <&clk_i2s_ckin>;
> st,syscfg = <&pwrcfg>;
> + assigned-clocks = <&rcc 1 CLK_HSE_RTC>;
> + assigned-clock-rates = <1000000>;
> };
>
> dma1: dma-controller@40026000 {
>
Applied on stm32-dt-for-v4.11
Thanks
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU
2017-01-16 13:29 ` [PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU Amelie Delaunay
@ 2017-01-16 14:39 ` Alexandre Torgue
0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Torgue @ 2017-01-16 14:39 UTC (permalink / raw)
To: Amelie Delaunay, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin
Cc: devicetree, linux-arm-kernel, linux-kernel
On 01/16/2017 02:29 PM, Amelie Delaunay wrote:
> This patch adds STM32 RTC bindings for STM32F429.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> arch/arm/boot/dts/stm32f429.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi
> index 557c1f4..f05a9d9 100644
> --- a/arch/arm/boot/dts/stm32f429.dtsi
> +++ b/arch/arm/boot/dts/stm32f429.dtsi
> @@ -125,6 +125,20 @@
> status = "disabled";
> };
>
> + rtc: rtc@40002800 {
> + compatible = "st,stm32-rtc";
> + reg = <0x40002800 0x400>;
> + clocks = <&rcc 1 CLK_RTC>;
> + clock-names = "ck_rtc";
> + assigned-clocks = <&rcc 1 CLK_RTC>;
> + assigned-clock-parents = <&rcc 1 CLK_LSE>;
> + interrupt-parent = <&exti>;
> + interrupts = <17 1>;
> + interrupt-names = "alarm";
> + st,syscfg = <&pwrcfg>;
> + status = "disabled";
> + };
> +
> usart2: serial@40004400 {
> compatible = "st,stm32-usart", "st,stm32-uart";
> reg = <0x40004400 0x400>;
>
Applied on stm32-dt-for-v4.11
Thanks
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCHv3 RESEND 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco
2017-01-16 13:29 ` [PATCHv3 RESEND 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco Amelie Delaunay
@ 2017-01-16 14:39 ` Alexandre Torgue
0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Torgue @ 2017-01-16 14:39 UTC (permalink / raw)
To: Amelie Delaunay, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin
Cc: devicetree, linux-arm-kernel, linux-kernel
On 01/16/2017 02:29 PM, Amelie Delaunay wrote:
> This patch enables RTC on stm32f429-disco with LSI as clock source because
> X2 crystal for LSE is not fitted by default.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> arch/arm/boot/dts/stm32f429-disco.dts | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts
> index 7d0415e..9222b9f 100644
> --- a/arch/arm/boot/dts/stm32f429-disco.dts
> +++ b/arch/arm/boot/dts/stm32f429-disco.dts
> @@ -94,6 +94,12 @@
> clock-frequency = <8000000>;
> };
>
> +&rtc {
> + assigned-clocks = <&rcc 1 CLK_RTC>;
> + assigned-clock-parents = <&rcc 1 CLK_LSI>;
> + status = "okay";
> +};
> +
> &usart1 {
> pinctrl-0 = <&usart1_pins_a>;
> pinctrl-names = "default";
>
Applied on stm32-dt-for-v4.11
Thanks
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCHv3 RESEND 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco
2017-01-16 13:29 ` [PATCHv3 RESEND 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco Amelie Delaunay
@ 2017-01-16 14:39 ` Alexandre Torgue
0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Torgue @ 2017-01-16 14:39 UTC (permalink / raw)
To: Amelie Delaunay, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin
Cc: devicetree, linux-arm-kernel, linux-kernel
On 01/16/2017 02:29 PM, Amelie Delaunay wrote:
> This patch enables RTC on stm32f469-disco with default LSE clock source.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> arch/arm/boot/dts/stm32f469-disco.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts
> index fda12a4..f52b9f6 100644
> --- a/arch/arm/boot/dts/stm32f469-disco.dts
> +++ b/arch/arm/boot/dts/stm32f469-disco.dts
> @@ -78,6 +78,10 @@
> clock-frequency = <8000000>;
> };
>
> +&rtc {
> + status = "okay";
> +};
> +
> &usart3 {
> pinctrl-0 = <&usart3_pins_a>;
> pinctrl-names = "default";
>
Applied on stm32-dt-for-v4.11
Thanks
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCHv3 RESEND 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval
2017-01-16 13:29 ` [PATCHv3 RESEND 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval Amelie Delaunay
@ 2017-01-16 14:40 ` Alexandre Torgue
0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Torgue @ 2017-01-16 14:40 UTC (permalink / raw)
To: Amelie Delaunay, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin
Cc: devicetree, linux-arm-kernel, linux-kernel
On 01/16/2017 02:29 PM, Amelie Delaunay wrote:
> This patch enables RTC on stm32429i-eval with default LSE clock source.
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> arch/arm/boot/dts/stm32429i-eval.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts
> index 2181220..eedb27d 100644
> --- a/arch/arm/boot/dts/stm32429i-eval.dts
> +++ b/arch/arm/boot/dts/stm32429i-eval.dts
> @@ -157,6 +157,10 @@
> };
> };
>
> +&rtc {
> + status = "okay";
> +};
> +
> &usart1 {
> pinctrl-0 = <&usart1_pins_a>;
> pinctrl-names = "default";
>
Applied on stm32-dt-for-v4.11
Thanks
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-01-16 14:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-16 13:29 [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 Amelie Delaunay
2017-01-16 13:29 ` [PATCHv3 RESEND 4/8] ARM: dts: stm32: Add RTC support for STM32F429 MCU Amelie Delaunay
2017-01-16 14:39 ` Alexandre Torgue
2017-01-16 13:29 ` [PATCHv3 RESEND 5/8] ARM: dts: stm32: enable RTC on stm32f429-disco Amelie Delaunay
2017-01-16 14:39 ` Alexandre Torgue
2017-01-16 13:29 ` [PATCHv3 RESEND 6/8] ARM: dts: stm32: enable RTC on stm32f469-disco Amelie Delaunay
2017-01-16 14:39 ` Alexandre Torgue
2017-01-16 13:29 ` [PATCHv3 RESEND 7/8] ARM: dts: stm32: enable RTC on stm32429i-eval Amelie Delaunay
2017-01-16 14:40 ` Alexandre Torgue
2017-01-16 14:39 ` [PATCHv3 RESEND 1/8] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f429 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).