d8412c2b50d2d8cbbbe404bdc10f9a8d16b2f1fa
[openwrt/staging/hauke.git] /
1 From f3a115bd1372e774979ecb81919664279b81810e Mon Sep 17 00:00:00 2001
2 From: Biwen Li <biwen.li@nxp.com>
3 Date: Fri, 28 Jun 2019 16:36:20 +0800
4 Subject: [PATCH] arm: dts: ls1021a: replace ftm0 with ftm_alarm0 DT node
5
6 The patch replaces ftm0 with ftm_alarm0 DT node
7 - remove old ftm0 node
8 - add rcpm node
9 - add ftm_alarm0 node
10 - aliases ftm_alarm0 as rtc1
11
12 Signed-off-by: Biwen Li <biwen.li@nxp.com>
13 ---
14 arch/arm/boot/dts/ls1021a.dtsi | 24 ++++++++++++++----------
15 1 file changed, 14 insertions(+), 10 deletions(-)
16
17 --- a/arch/arm/boot/dts/ls1021a.dtsi
18 +++ b/arch/arm/boot/dts/ls1021a.dtsi
19 @@ -66,6 +66,7 @@
20 serial4 = &lpuart4;
21 serial5 = &lpuart5;
22 sysclk = &sysclk;
23 + rtc1 = &ftm_alarm0;
24 };
25
26 cpus {
27 @@ -582,16 +583,6 @@
28 status = "disabled";
29 };
30
31 - ftm0: ftm0@29d0000 {
32 - compatible = "fsl,ftm-alarm";
33 - reg = <0x0 0x29d0000 0x0 0x10000>,
34 - <0x0 0x1ee2140 0x0 0x4>;
35 - reg-names = "ftm", "FlexTimer1";
36 - interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
37 - big-endian;
38 - status = "okay";
39 - };
40 -
41 pwm1: pwm@29e0000 {
42 compatible = "fsl,vf610-ftm-pwm";
43 #pwm-cells = <3>;
44 @@ -1003,5 +994,18 @@
45 big-endian;
46 };
47
48 + rcpm: rcpm@1ee2140 {
49 + compatible = "fsl,ls1021a-rcpm", "fsl,qoriq-rcpm-2.1+";
50 + reg = <0x0 0x1ee2140 0x0 0x8>;
51 + #fsl,rcpm-wakeup-cells = <2>;
52 + };
53 +
54 + ftm_alarm0: timer0@29d0000 {
55 + compatible = "fsl,ls1021a-ftm-alarm";
56 + reg = <0x0 0x29d0000 0x0 0x10000>;
57 + fsl,rcpm-wakeup = <&rcpm 0x0 0x20000000>;
58 + interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
59 + big-endian;
60 + };
61 };
62 };