linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add STM32 RTC to stm32mp157c
@ 2018-05-17 12:07 Amelie Delaunay
  2018-05-17 12:07 ` [PATCH v2 1/3] ARM: dts: stm32: add RTC support " Amelie Delaunay
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Amelie Delaunay @ 2018-05-17 12:07 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
	Russell King, Arnd Bergmann
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

This series adds support for STM32 RTC to stm32mp157c SoC and enables it
on stm32mp157c-ed1 board.

---
Changes in v2:
* Enable STM32 RTC in multi_v7_defconfig

Amelie Delaunay (3):
  ARM: dts: stm32: add RTC support to stm32mp157c
  ARM: dts: stm32: enable RTC on stm32mp157c-ed1
  ARM: multi_v7_defconfig: enable STM32 RTC

 arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 ++++
 arch/arm/boot/dts/stm32mp157c.dtsi    | 9 +++++++++
 arch/arm/configs/multi_v7_defconfig   | 1 +
 3 files changed, 14 insertions(+)

-- 
2.7.4

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

* [PATCH v2 1/3] ARM: dts: stm32: add RTC support to stm32mp157c
  2018-05-17 12:07 [PATCH v2 0/3] Add STM32 RTC to stm32mp157c Amelie Delaunay
@ 2018-05-17 12:07 ` Amelie Delaunay
  2018-05-17 12:07 ` [PATCH v2 2/3] ARM: dts: stm32: enable RTC on stm32mp157c-ed1 Amelie Delaunay
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Amelie Delaunay @ 2018-05-17 12:07 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
	Russell King, Arnd Bergmann
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

Add support for RTC (Real Time Clock) to STM32MP157C SoC.

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

diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index b66f673..df2d874 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -818,6 +818,15 @@
 			status = "disabled";
 		};
 
+		rtc: rtc@5c004000 {
+			compatible = "st,stm32mp1-rtc";
+			reg = <0x5c004000 0x400>;
+			clocks = <&rcc RTCAPB>, <&rcc RTC>;
+			clock-names = "pclk", "rtc_ck";
+			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
 		i2c6: i2c@5c009000 {
 			compatible = "st,stm32f7-i2c";
 			reg = <0x5c009000 0x400>;
-- 
2.7.4

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

* [PATCH v2 2/3] ARM: dts: stm32: enable RTC on stm32mp157c-ed1
  2018-05-17 12:07 [PATCH v2 0/3] Add STM32 RTC to stm32mp157c Amelie Delaunay
  2018-05-17 12:07 ` [PATCH v2 1/3] ARM: dts: stm32: add RTC support " Amelie Delaunay
@ 2018-05-17 12:07 ` Amelie Delaunay
  2018-05-17 12:07 ` [PATCH v2 3/3] ARM: multi_v7_defconfig: enable STM32 RTC Amelie Delaunay
  2018-06-26  7:30 ` [PATCH v2 0/3] Add STM32 RTC to stm32mp157c Alexandre Torgue
  3 siblings, 0 replies; 5+ messages in thread
From: Amelie Delaunay @ 2018-05-17 12:07 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
	Russell King, Arnd Bergmann
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

Enable RTC (Real Time Clock) on stm32mp157c-ed1 board.

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

diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
index ae33653..050c30d 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
@@ -68,6 +68,10 @@
 	status = "okay";
 };
 
+&rtc {
+	status = "okay";
+};
+
 &uart4 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart4_pins_a>;
-- 
2.7.4

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

* [PATCH v2 3/3] ARM: multi_v7_defconfig: enable STM32 RTC
  2018-05-17 12:07 [PATCH v2 0/3] Add STM32 RTC to stm32mp157c Amelie Delaunay
  2018-05-17 12:07 ` [PATCH v2 1/3] ARM: dts: stm32: add RTC support " Amelie Delaunay
  2018-05-17 12:07 ` [PATCH v2 2/3] ARM: dts: stm32: enable RTC on stm32mp157c-ed1 Amelie Delaunay
@ 2018-05-17 12:07 ` Amelie Delaunay
  2018-06-26  7:30 ` [PATCH v2 0/3] Add STM32 RTC to stm32mp157c Alexandre Torgue
  3 siblings, 0 replies; 5+ messages in thread
From: Amelie Delaunay @ 2018-05-17 12:07 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland,
	Russell King, Arnd Bergmann
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

Enable the STM32 Real Time Clock (RTC) driver, implemented on STM32MP1 SoC.

Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 89167cd..8e02f86 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -863,6 +863,7 @@ CONFIG_RTC_DRV_SUN6I=y
 CONFIG_RTC_DRV_SUNXI=y
 CONFIG_RTC_DRV_MV=y
 CONFIG_RTC_DRV_TEGRA=y
+CONFIG_RTC_DRV_STM32=y
 CONFIG_RTC_DRV_CPCAP=m
 CONFIG_DMADEVICES=y
 CONFIG_DW_DMAC=y
-- 
2.7.4

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

* Re: [PATCH v2 0/3] Add STM32 RTC to stm32mp157c
  2018-05-17 12:07 [PATCH v2 0/3] Add STM32 RTC to stm32mp157c Amelie Delaunay
                   ` (2 preceding siblings ...)
  2018-05-17 12:07 ` [PATCH v2 3/3] ARM: multi_v7_defconfig: enable STM32 RTC Amelie Delaunay
@ 2018-06-26  7:30 ` Alexandre Torgue
  3 siblings, 0 replies; 5+ messages in thread
From: Alexandre Torgue @ 2018-06-26  7:30 UTC (permalink / raw)
  To: Amelie Delaunay, Maxime Coquelin, Rob Herring, Mark Rutland,
	Russell King, Arnd Bergmann
  Cc: linux-arm-kernel, devicetree, linux-kernel

Hi Amélie,

On 05/17/2018 02:07 PM, Amelie Delaunay wrote:
> This series adds support for STM32 RTC to stm32mp157c SoC and enables it
> on stm32mp157c-ed1 board.
> 
> ---
> Changes in v2:
> * Enable STM32 RTC in multi_v7_defconfig
> 
> Amelie Delaunay (3):
>    ARM: dts: stm32: add RTC support to stm32mp157c
>    ARM: dts: stm32: enable RTC on stm32mp157c-ed1
>    ARM: multi_v7_defconfig: enable STM32 RTC
> 
>   arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 ++++
>   arch/arm/boot/dts/stm32mp157c.dtsi    | 9 +++++++++
>   arch/arm/configs/multi_v7_defconfig   | 1 +
>   3 files changed, 14 insertions(+)
> 

Series applied on stm32-next.

Regards
Alex

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

end of thread, other threads:[~2018-06-26  7:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-17 12:07 [PATCH v2 0/3] Add STM32 RTC to stm32mp157c Amelie Delaunay
2018-05-17 12:07 ` [PATCH v2 1/3] ARM: dts: stm32: add RTC support " Amelie Delaunay
2018-05-17 12:07 ` [PATCH v2 2/3] ARM: dts: stm32: enable RTC on stm32mp157c-ed1 Amelie Delaunay
2018-05-17 12:07 ` [PATCH v2 3/3] ARM: multi_v7_defconfig: enable STM32 RTC Amelie Delaunay
2018-06-26  7:30 ` [PATCH v2 0/3] Add STM32 RTC to stm32mp157c 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).