linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Add RTC support on STM32F746
@ 2017-01-19 13:45 Amelie Delaunay
  2017-01-19 13:45 ` [PATCH 1/3] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746 Amelie Delaunay
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Amelie Delaunay @ 2017-01-19 13:45 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
	Alexandre Torgue
  Cc: devicetree, linux-arm-kernel, linux-kernel, Amelie Delaunay

This patchset enables STM32 RTC on STM32F746 MCU.

Amelie Delaunay (3):
  ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746
  ARM: dts: stm32: Add RTC support for STM32F746 MCU
  ARM: dts: stm32: enable RTC on stm32746g-eval

 arch/arm/boot/dts/stm32746g-eval.dts |  4 ++++
 arch/arm/boot/dts/stm32f746.dtsi     | 16 ++++++++++++++++
 2 files changed, 20 insertions(+)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746
  2017-01-19 13:45 [PATCH 0/3] Add RTC support on STM32F746 Amelie Delaunay
@ 2017-01-19 13:45 ` Amelie Delaunay
  2017-01-19 13:45 ` [PATCH 2/3] ARM: dts: stm32: Add RTC support for STM32F746 MCU Amelie Delaunay
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Amelie Delaunay @ 2017-01-19 13:45 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/stm32f746.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi
index 5bbee56..b42f23d 100644
--- a/arch/arm/boot/dts/stm32f746.dtsi
+++ b/arch/arm/boot/dts/stm32f746.dtsi
@@ -343,6 +343,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] 6+ messages in thread

* [PATCH 2/3] ARM: dts: stm32: Add RTC support for STM32F746 MCU
  2017-01-19 13:45 [PATCH 0/3] Add RTC support on STM32F746 Amelie Delaunay
  2017-01-19 13:45 ` [PATCH 1/3] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746 Amelie Delaunay
@ 2017-01-19 13:45 ` Amelie Delaunay
  2017-01-19 13:45 ` [PATCH 3/3] ARM: dts: stm32: enable RTC on stm32746g-eval Amelie Delaunay
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Amelie Delaunay @ 2017-01-19 13:45 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 STM32F746.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
 arch/arm/boot/dts/stm32f746.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi
index b42f23d..c57d265 100644
--- a/arch/arm/boot/dts/stm32f746.dtsi
+++ b/arch/arm/boot/dts/stm32f746.dtsi
@@ -121,6 +121,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,stm32f7-usart", "st,stm32f7-uart";
 			reg = <0x40004400 0x400>;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] ARM: dts: stm32: enable RTC on stm32746g-eval
  2017-01-19 13:45 [PATCH 0/3] Add RTC support on STM32F746 Amelie Delaunay
  2017-01-19 13:45 ` [PATCH 1/3] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746 Amelie Delaunay
  2017-01-19 13:45 ` [PATCH 2/3] ARM: dts: stm32: Add RTC support for STM32F746 MCU Amelie Delaunay
@ 2017-01-19 13:45 ` Amelie Delaunay
  2017-03-09  9:14 ` [PATCH 0/3] Add RTC support on STM32F746 Alexandre Torgue
  2017-04-03 14:51 ` Alexandre Torgue
  4 siblings, 0 replies; 6+ messages in thread
From: Amelie Delaunay @ 2017-01-19 13:45 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 stm32746g-eval with default LSE clock source.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
 arch/arm/boot/dts/stm32746g-eval.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/stm32746g-eval.dts
index 58d5393..ae64ea4 100644
--- a/arch/arm/boot/dts/stm32746g-eval.dts
+++ b/arch/arm/boot/dts/stm32746g-eval.dts
@@ -82,6 +82,10 @@
 	};
 };
 
+&rtc {
+	status = "okay";
+};
+
 &usart1 {
 	pinctrl-0 = <&usart1_pins_a>;
 	pinctrl-names = "default";
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] Add RTC support on STM32F746
  2017-01-19 13:45 [PATCH 0/3] Add RTC support on STM32F746 Amelie Delaunay
                   ` (2 preceding siblings ...)
  2017-01-19 13:45 ` [PATCH 3/3] ARM: dts: stm32: enable RTC on stm32746g-eval Amelie Delaunay
@ 2017-03-09  9:14 ` Alexandre Torgue
  2017-04-03 14:51 ` Alexandre Torgue
  4 siblings, 0 replies; 6+ messages in thread
From: Alexandre Torgue @ 2017-03-09  9:14 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/19/2017 02:45 PM, Amelie Delaunay wrote:
> This patchset enables STM32 RTC on STM32F746 MCU.
>
> Amelie Delaunay (3):
>   ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746
>   ARM: dts: stm32: Add RTC support for STM32F746 MCU
>   ARM: dts: stm32: enable RTC on stm32746g-eval
>

Can you please rebase this series on 4.11-rc1 and resend ?

Thanks in advance


>  arch/arm/boot/dts/stm32746g-eval.dts |  4 ++++
>  arch/arm/boot/dts/stm32f746.dtsi     | 16 ++++++++++++++++
>  2 files changed, 20 insertions(+)
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] Add RTC support on STM32F746
  2017-01-19 13:45 [PATCH 0/3] Add RTC support on STM32F746 Amelie Delaunay
                   ` (3 preceding siblings ...)
  2017-03-09  9:14 ` [PATCH 0/3] Add RTC support on STM32F746 Alexandre Torgue
@ 2017-04-03 14:51 ` Alexandre Torgue
  4 siblings, 0 replies; 6+ messages in thread
From: Alexandre Torgue @ 2017-04-03 14:51 UTC (permalink / raw)
  To: Amelie Delaunay, Rob Herring, Mark Rutland, Russell King,
	Maxime Coquelin
  Cc: devicetree, linux-arm-kernel, linux-kernel

Hi

On 01/19/2017 02:45 PM, Amelie Delaunay wrote:
> This patchset enables STM32 RTC on STM32F746 MCU.
>
> Amelie Delaunay (3):
>   ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746
>   ARM: dts: stm32: Add RTC support for STM32F746 MCU
>   ARM: dts: stm32: enable RTC on stm32746g-eval
>
>  arch/arm/boot/dts/stm32746g-eval.dts |  4 ++++
>  arch/arm/boot/dts/stm32f746.dtsi     | 16 ++++++++++++++++
>  2 files changed, 20 insertions(+)
>

Series applied on stm32-dt-for-v4.12

regards
Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-03 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19 13:45 [PATCH 0/3] Add RTC support on STM32F746 Amelie Delaunay
2017-01-19 13:45 ` [PATCH 1/3] ARM: dts: stm32: set HSE_RTC clock frequency to 1 MHz on stm32f746 Amelie Delaunay
2017-01-19 13:45 ` [PATCH 2/3] ARM: dts: stm32: Add RTC support for STM32F746 MCU Amelie Delaunay
2017-01-19 13:45 ` [PATCH 3/3] ARM: dts: stm32: enable RTC on stm32746g-eval Amelie Delaunay
2017-03-09  9:14 ` [PATCH 0/3] Add RTC support on STM32F746 Alexandre Torgue
2017-04-03 14:51 ` 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).