1 From c97c6ebf6fd6a6ff72bd7d58a12de0c07f14953e Mon Sep 17 00:00:00 2001
2 From: Biwen Li <biwen.li@nxp.com>
3 Date: Thu, 27 Jun 2019 15:02:44 +0800
4 Subject: [PATCH] arm64: dts: ls1012a/ls1043a/ls1046a/ls1088a/ls208xa: replace
7 The patch replaces ftm0 with ftm_alarm0 DT node
8 - replace ftm0 with ftm_alarm0
10 - remove old rcpm node
11 - aliases ftm_alarm0 as rtc1
13 Signed-off-by: Biwen Li <biwen.li@nxp.com>
15 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 23 +++++++++++----------
16 .../boot/dts/freescale/fsl-ls1043a-qds-sdk.dts | 2 +-
17 .../boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts | 2 +-
18 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 24 +++++++++++++---------
19 .../boot/dts/freescale/fsl-ls1046a-frwy-sdk.dts | 2 +-
20 .../boot/dts/freescale/fsl-ls1046a-qds-sdk.dts | 2 +-
21 .../boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts | 2 +-
22 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 24 ++++++++++++++--------
23 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 20 ++++++++++++------
24 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 12 +++++++++--
25 10 files changed, 70 insertions(+), 43 deletions(-)
27 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
28 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
38 #thermal-sensor-cells = <1>;
41 - ftm0: ftm0@29d0000 {
42 - compatible = "fsl,ftm-alarm";
43 - reg = <0x0 0x29d0000 0x0 0x10000>,
44 - <0x0 0x1ee2140 0x0 0x4>;
45 - reg-names = "ftm", "FlexTimer1";
46 + rcpm: rcpm@1ee2140 {
47 + compatible = "fsl,ls1012a-rcpm", "fsl,qoriq-rcpm-2.1+";
48 + reg = <0x0 0x1ee2140 0x0 0x4>;
49 + #fsl,rcpm-wakeup-cells = <1>;
52 + ftm_alarm0: timer@29d0000 {
53 + compatible = "fsl,ls1012a-ftm-alarm";
54 + reg = <0x0 0x29d0000 0x0 0x10000>;
55 + fsl,rcpm-wakeup = <&rcpm 0x20000>;
56 interrupts = <0 86 0x4>;
62 compatible = "fsl,vf610-i2c", "fsl,ls1012a-vf610-i2c";
65 <0000 0 0 4 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
69 - rcpm: rcpm@1ee2000 {
70 - compatible = "fsl,ls1012a-rcpm", "fsl,qoriq-rcpm-2.1";
71 - reg = <0x0 0x1ee2000 0x0 0x1000>;
72 - fsl,#rcpm-wakeup-cells = <1>;
77 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
78 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds-sdk.dts
79 @@ -226,7 +226,7 @@ pcie@3600000 {
88 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
89 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk.dts
90 @@ -221,7 +221,7 @@ pcie@3600000 {
99 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
100 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
105 + rtc1 = &ftm_alarm0;
113 - ftm0: ftm0@29d0000 {
114 - compatible = "fsl,ftm-alarm";
115 - reg = <0x0 0x29d0000 0x0 0x10000>,
116 - <0x0 0x1ee2140 0x0 0x4>;
117 - reg-names = "ftm", "FlexTimer1";
118 - interrupts = <0 86 0x4>;
123 wdog0: wdog@2ad0000 {
124 compatible = "fsl,ls1043a-wdt", "fsl,imx21-wdt";
125 reg = <0x0 0x2ad0000 0x0 0x10000>;
130 + rcpm: rcpm@1ee2140 {
131 + compatible = "fsl,ls1043a-rcpm", "fsl,qoriq-rcpm-2.1+";
132 + reg = <0x0 0x1ee2140 0x0 0x4>;
133 + #fsl,rcpm-wakeup-cells = <1>;
136 + ftm_alarm0: timer@29d0000 {
137 + compatible = "fsl,ls1043a-ftm-alarm";
138 + reg = <0x0 0x29d0000 0x0 0x10000>;
139 + fsl,rcpm-wakeup = <&rcpm 0x20000>;
140 + interrupts = <0 86 0x4>;
146 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-sdk.dts
147 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy-sdk.dts
157 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
158 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-qds-sdk.dts
159 @@ -223,7 +223,7 @@ pcie@3600000 {
168 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
169 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk.dts
170 @@ -228,7 +228,7 @@ pcie@3600000 {
179 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
180 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
185 + rtc1 = &ftm_alarm0;
193 - ftm0: ftm0@29d0000 {
194 - compatible = "fsl,ftm-alarm";
195 - reg = <0x0 0x29d0000 0x0 0x10000>,
196 - <0x0 0x1ee2140 0x0 0x4>;
197 - reg-names = "ftm", "FlexTimer1";
198 - interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
202 wdog0: watchdog@2ad0000 {
203 compatible = "fsl,imx21-wdt";
204 reg = <0x0 0x2ad0000 0x0 0x10000>;
206 queue-sizes = <64 64>;
210 + rcpm: rcpm@1ee208c {
211 + compatible = "fsl,ls1046a-rcpm", "fsl,qoriq-rcpm-2.1+";
212 + reg = <0x0 0x1ee208c 0x0 0x4>;
213 + #fsl,rcpm-wakeup-cells = <1>;
216 + ftm_alarm0: timer@29d0000 {
217 + compatible = "fsl,ls1046a-ftm-alarm";
218 + reg = <0x0 0x29d0000 0x0 0x10000>;
219 + fsl,rcpm-wakeup = <&rcpm 0x20000>;
220 + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
226 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
227 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
232 + rtc1 = &ftm_alarm0;
240 - ftm0: ftm0@2800000 {
241 - compatible = "fsl,ftm-alarm";
242 - reg = <0x0 0x2800000 0x0 0x10000>;
243 - interrupts = <0 44 4>;
247 compatible = "fsl,vf610-i2c", "fsl,ls1088a-vf610-i2c";
248 #address-cells = <1>;
254 + rcpm: rcpm@1e34040 {
255 + compatible = "fsl,ls1088a-rcpm", "fsl,qoriq-rcpm-2.1+";
256 + reg = <0x0 0x1e34040 0x0 0x18>;
257 + #fsl,rcpm-wakeup-cells = <6>;
260 + ftm_alarm0: timer@2800000 {
261 + compatible = "fsl,ls1088a-ftm-alarm";
262 + reg = <0x0 0x2800000 0x0 0x10000>;
263 + fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>;
264 + interrupts = <0 44 4>;
269 --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
270 +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
275 + rtc1 = &ftm_alarm0;
280 interrupts = <0 12 4>;
283 - ftm0: ftm0@2800000 {
284 - compatible = "fsl,ftm-alarm";
285 + rcpm: rcpm@1e34040 {
286 + compatible = "fsl,ls208xa-rcpm", "fsl,qoriq-rcpm-2.1+";
287 + reg = <0x0 0x1e34040 0x0 0x18>;
288 + #fsl,rcpm-wakeup-cells = <6>;
291 + ftm_alarm0: timer@2800000 {
292 + compatible = "fsl,ls208xa-ftm-alarm";
293 reg = <0x0 0x2800000 0x0 0x10000>;
294 + fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>;
295 interrupts = <0 44 4>;