* [PATCH 0/2] RTC support on STM32H743
@ 2018-02-16 13:16 Amelie Delaunay
2018-02-16 13:16 ` [PATCH 1/2] ARM: dts: stm32: add " Amelie Delaunay
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Amelie Delaunay @ 2018-02-16 13:16 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 add support for RTC on STM32H743 and enables it on stm32h743i-eval.
Tested on stm32-next.
Amelie Delaunay (2):
ARM: dts: stm32: add RTC support on STM32H743
ARM: dts: stm32: enable RTC on stm32h743i-eval
arch/arm/boot/dts/stm32h743.dtsi | 15 +++++++++++++++
arch/arm/boot/dts/stm32h743i-eval.dts | 4 ++++
2 files changed, 19 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] ARM: dts: stm32: add RTC support on STM32H743
2018-02-16 13:16 [PATCH 0/2] RTC support on STM32H743 Amelie Delaunay
@ 2018-02-16 13:16 ` Amelie Delaunay
2018-02-20 0:26 ` kbuild test robot
2018-02-16 13:16 ` [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32h743i-eval Amelie Delaunay
2018-02-27 16:10 ` [PATCH 0/2] RTC support on STM32H743 Alexandre Torgue
2 siblings, 1 reply; 5+ messages in thread
From: Amelie Delaunay @ 2018-02-16 13:16 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 support for RTC on STM32H743 SoC.
It also adds dt-bindings/interrupt-controller/irq.h include and uses it to
configure RTC alarm interrupt.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32h743.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h743.dtsi
index 38d7cb8..b4487d1 100644
--- a/arch/arm/boot/dts/stm32h743.dtsi
+++ b/arch/arm/boot/dts/stm32h743.dtsi
@@ -44,6 +44,7 @@
#include "armv7-m.dtsi"
#include <dt-bindings/clock/stm32h7-clks.h>
#include <dt-bindings/mfd/stm32h7-rcc.h>
+#include <dt-bindings/interrupt-controller/irq.h>
/ {
clocks {
@@ -326,6 +327,20 @@
status = "disabled";
};
+ rtc: rtc@58004000 {
+ compatible = "st,stm32h7-rtc";
+ reg = <0x58004000 0x400>;
+ clocks = <&rcc RTCAPB_CK>, <&rcc RTC_CK>;
+ clock-names = "pclk", "rtc_ck";
+ assigned-clocks = <&rcc RTC_CK>;
+ assigned-clock-parents = <&rcc LSE_CK>;
+ interrupt-parent = <&exti>;
+ interrupts = <17 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "alarm";
+ st,syscfg = <&pwrcfg>;
+ status = "disabled";
+ };
+
rcc: reset-clock-controller@58024400 {
compatible = "st,stm32h743-rcc", "st,stm32-rcc";
reg = <0x58024400 0x400>;
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32h743i-eval
2018-02-16 13:16 [PATCH 0/2] RTC support on STM32H743 Amelie Delaunay
2018-02-16 13:16 ` [PATCH 1/2] ARM: dts: stm32: add " Amelie Delaunay
@ 2018-02-16 13:16 ` Amelie Delaunay
2018-02-27 16:10 ` [PATCH 0/2] RTC support on STM32H743 Alexandre Torgue
2 siblings, 0 replies; 5+ messages in thread
From: Amelie Delaunay @ 2018-02-16 13:16 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 stm32h743i-eval.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
---
arch/arm/boot/dts/stm32h743i-eval.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/stm32h743i-eval.dts b/arch/arm/boot/dts/stm32h743i-eval.dts
index 9f0e72c..cc8e458 100644
--- a/arch/arm/boot/dts/stm32h743i-eval.dts
+++ b/arch/arm/boot/dts/stm32h743i-eval.dts
@@ -84,6 +84,10 @@
clock-frequency = <25000000>;
};
+&rtc {
+ status = "okay";
+};
+
&usart1 {
pinctrl-0 = <&usart1_pins>;
pinctrl-names = "default";
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] ARM: dts: stm32: add RTC support on STM32H743
2018-02-16 13:16 ` [PATCH 1/2] ARM: dts: stm32: add " Amelie Delaunay
@ 2018-02-20 0:26 ` kbuild test robot
0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2018-02-20 0:26 UTC (permalink / raw)
To: Amelie Delaunay
Cc: kbuild-all, Rob Herring, Mark Rutland, Russell King,
Maxime Coquelin, Alexandre Torgue, devicetree, linux-arm-kernel,
linux-kernel, Amelie Delaunay
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
Hi Amelie,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.16-rc2 next-20180219]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Amelie-Delaunay/RTC-support-on-STM32H743/20180219-061718
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm-multi_v5_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm
All errors (new ones prefixed by >>):
>> ERROR: Input tree has errors, aborting (use -f to force output)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29970 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] RTC support on STM32H743
2018-02-16 13:16 [PATCH 0/2] RTC support on STM32H743 Amelie Delaunay
2018-02-16 13:16 ` [PATCH 1/2] ARM: dts: stm32: add " Amelie Delaunay
2018-02-16 13:16 ` [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32h743i-eval Amelie Delaunay
@ 2018-02-27 16:10 ` Alexandre Torgue
2 siblings, 0 replies; 5+ messages in thread
From: Alexandre Torgue @ 2018-02-27 16:10 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 02/16/2018 02:16 PM, Amelie Delaunay wrote:
> This patchset add support for RTC on STM32H743 and enables it on stm32h743i-eval.
> Tested on stm32-next.
>
> Amelie Delaunay (2):
> ARM: dts: stm32: add RTC support on STM32H743
> ARM: dts: stm32: enable RTC on stm32h743i-eval
>
> arch/arm/boot/dts/stm32h743.dtsi | 15 +++++++++++++++
> arch/arm/boot/dts/stm32h743i-eval.dts | 4 ++++
> 2 files changed, 19 insertions(+)
>
Kbuild issue occurs on patch1 because MAINTAINER file is not correct for
ARM/STM32. I send a patch to fix it:
https://lkml.org/lkml/2018/2/26/386. There is no Kbuild issue if patches
are applied on the correct branch:
git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git stm32-next.
So series applied on stm32-next.
regards
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-02-27 16:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 13:16 [PATCH 0/2] RTC support on STM32H743 Amelie Delaunay
2018-02-16 13:16 ` [PATCH 1/2] ARM: dts: stm32: add " Amelie Delaunay
2018-02-20 0:26 ` kbuild test robot
2018-02-16 13:16 ` [PATCH 2/2] ARM: dts: stm32: enable RTC on stm32h743i-eval Amelie Delaunay
2018-02-27 16:10 ` [PATCH 0/2] RTC support on STM32H743 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).