LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/2] Add STM32 RTC to stm32mp157c
@ 2018-04-19 14:35 Amelie Delaunay
  2018-04-19 14:35 ` [PATCH 1/2] ARM: dts: stm32: add RTC support " Amelie Delaunay
  2018-04-19 14:35 ` [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32mp157c-ed1 Amelie Delaunay
  0 siblings, 2 replies; 3+ messages in thread
From: Amelie Delaunay @ 2018-04-19 14:35 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
  Cc: linux-arm-kernel, devicetree, linux-kernel, Amelie Delaunay

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

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

 arch/arm/boot/dts/stm32mp157c-ed1.dts | 4 ++++
 arch/arm/boot/dts/stm32mp157c.dtsi    | 9 +++++++++
 2 files changed, 13 insertions(+)

-- 
2.7.4

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

* [PATCH 1/2] ARM: dts: stm32: add RTC support to stm32mp157c
  2018-04-19 14:35 [PATCH 0/2] Add STM32 RTC to stm32mp157c Amelie Delaunay
@ 2018-04-19 14:35 ` Amelie Delaunay
  2018-04-19 14:35 ` [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32mp157c-ed1 Amelie Delaunay
  1 sibling, 0 replies; 3+ messages in thread
From: Amelie Delaunay @ 2018-04-19 14:35 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
  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 bc3eddc..3333954 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -174,5 +174,14 @@
 			clocks = <&rcc USART1_K>;
 			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_HIGH_LEVEL>;
+			status = "disabled";
+		};
 	};
 };
-- 
2.7.4

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

* [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32mp157c-ed1
  2018-04-19 14:35 [PATCH 0/2] Add STM32 RTC to stm32mp157c Amelie Delaunay
  2018-04-19 14:35 ` [PATCH 1/2] ARM: dts: stm32: add RTC support " Amelie Delaunay
@ 2018-04-19 14:35 ` Amelie Delaunay
  1 sibling, 0 replies; 3+ messages in thread
From: Amelie Delaunay @ 2018-04-19 14:35 UTC (permalink / raw)
  To: Maxime Coquelin, Alexandre Torgue, Rob Herring, Mark Rutland
  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 9f90337a..f9c4f8f 100644
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
@@ -25,6 +25,10 @@
 	};
 };
 
+&rtc {
+	status = "okay";
+};
+
 &uart4 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart4_pins_a>;
-- 
2.7.4

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

end of thread, other threads:[~2018-04-19 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 14:35 [PATCH 0/2] Add STM32 RTC to stm32mp157c Amelie Delaunay
2018-04-19 14:35 ` [PATCH 1/2] ARM: dts: stm32: add RTC support " Amelie Delaunay
2018-04-19 14:35 ` [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32mp157c-ed1 Amelie Delaunay

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).