aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-5.4/302-dts-0051-arm64-dts-fsl-layerscape-fix-warnings-when-compiling.patch
blob: 2e68b8edbe4b3ae1c5078176a861a9a19a87c143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
From d949248dccef18f7257d8de0adfd67244955e7b7 Mon Sep 17 00:00:00 2001
From: Pankaj Bansal <pankaj.bansal@nxp.com>
Date: Mon, 22 Apr 2019 16:22:49 +0530
Subject: [PATCH] arm64: dts: fsl: layerscape: fix warnings when compiling dts
 files

when compiling dts file using DTC_FLAG='-@', the device tree compiler
reports these warnings:

Warning (simple_bus_reg): /soc/mdio@0x8c0b000: simple-bus unit address
format error, expected "8c0b000"
Warning (unit_address_format): /pfe@04000000: unit name should not have
leading 0s

Fixed the node names to silence these warnings.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi |  3 ++-
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 14 +++++++-------
 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 22 +++++++++++-----------
 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 18 +++++++++---------
 4 files changed, 29 insertions(+), 28 deletions(-)

--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
@@ -3,6 +3,7 @@
  * Device Tree Include file for Freescale Layerscape-1012A family SoC.
  *
  * Copyright 2016 Freescale Semiconductor, Inc.
+ * Copyright 2019 NXP
  *
  */
 
@@ -513,7 +514,7 @@
 		};
 	};
 
-	pfe: pfe@04000000 {
+	pfe: pfe@4000000 {
 		compatible = "fsl,pfe";
 		reg =   <0x0 0x04000000 0x0 0xc00000>,	/* AXI 16M */
 			<0x0 0x83400000 0x0 0xc00000>;  /* PFE DDR 12M */
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
@@ -2,7 +2,7 @@
 /*
  * Device Tree Include file for NXP Layerscape-1088A family SoC.
  *
- * Copyright 2017 NXP
+ * Copyright 2017-2019 NXP
  *
  * Harninder Rai <harninder.rai@nxp.com>
  *
@@ -310,7 +310,7 @@
 		};
 
 		/* TODO: WRIOP (CCSR?) */
-		emdio1: mdio@0x8B96000 { /* WRIOP0: 0x8B8_0000,
+		emdio1: mdio@8B96000 { /* WRIOP0: 0x8B8_0000,
 					  * E-MDIO1: 0x1_6000
 					  */
 			compatible = "fsl,fman-memac-mdio";
@@ -323,7 +323,7 @@
 			#size-cells = <0>;
 		};
 
-		emdio2: mdio@0x8B97000 { /* WRIOP0: 0x8B8_0000,
+		emdio2: mdio@8B97000 { /* WRIOP0: 0x8B8_0000,
 					  * E-MDIO2: 0x1_7000
 					  */
 			compatible = "fsl,fman-memac-mdio";
@@ -335,7 +335,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio1: mdio@0x8c07000 {
+		pcs_mdio1: mdio@8c07000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c07000 0x0 0x1000>;
 			device_type = "mdio";
@@ -345,7 +345,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio2: mdio@0x8c0b000 {
+		pcs_mdio2: mdio@8c0b000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c0b000 0x0 0x1000>;
 			device_type = "mdio";
@@ -355,7 +355,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio3: mdio@0x8c0f000 {
+		pcs_mdio3: mdio@8c0f000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c0f000 0x0 0x1000>;
 			device_type = "mdio";
@@ -365,7 +365,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio4: mdio@0x8c13000 {
+		pcs_mdio4: mdio@8c13000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c13000 0x0 0x1000>;
 			device_type = "mdio";
--- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
@@ -3,7 +3,7 @@
  * Device Tree Include file for Freescale Layerscape-2080A family SoC.
  *
  * Copyright 2016 Freescale Semiconductor, Inc.
- * Copyright 2017 NXP
+ * Copyright 2017-2019 NXP
  *
  * Abhimanyu Saini <abhimanyu.saini@nxp.com>
  *
@@ -525,7 +525,7 @@
 		};
 
 		/* TODO: WRIOP (CCSR?) */
-		emdio1: mdio@0x8B96000 { /* WRIOP0: 0x8B8_0000,
+		emdio1: mdio@8B96000 { /* WRIOP0: 0x8B8_0000,
 					  * E-MDIO1: 0x1_6000
 					  */
 			compatible = "fsl,fman-memac-mdio";
@@ -538,7 +538,7 @@
 			#size-cells = <0>;
 		};
 
-		emdio2: mdio@0x8B97000 { /* WRIOP0: 0x8B8_0000,
+		emdio2: mdio@8B97000 { /* WRIOP0: 0x8B8_0000,
 					  * E-MDIO2: 0x1_7000
 					  */
 			compatible = "fsl,fman-memac-mdio";
@@ -550,7 +550,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio1: mdio@0x8c07000 {
+		pcs_mdio1: mdio@8c07000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c07000 0x0 0x1000>;
 			device_type = "mdio";
@@ -560,7 +560,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio2: mdio@0x8c0b000 {
+		pcs_mdio2: mdio@8c0b000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c0b000 0x0 0x1000>;
 			device_type = "mdio";
@@ -570,7 +570,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio3: mdio@0x8c0f000 {
+		pcs_mdio3: mdio@8c0f000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c0f000 0x0 0x1000>;
 			device_type = "mdio";
@@ -580,7 +580,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio4: mdio@0x8c13000 {
+		pcs_mdio4: mdio@8c13000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c13000 0x0 0x1000>;
 			device_type = "mdio";
@@ -590,7 +590,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio5: mdio@0x8c17000 {
+		pcs_mdio5: mdio@8c17000 {
 			status = "disabled";
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c17000 0x0 0x1000>;
@@ -601,7 +601,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio6: mdio@0x8c1b000 {
+		pcs_mdio6: mdio@8c1b000 {
 			status = "disabled";
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c1b000 0x0 0x1000>;
@@ -612,7 +612,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio7: mdio@0x8c1f000 {
+		pcs_mdio7: mdio@8c1f000 {
 			status = "disabled";
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c1f000 0x0 0x1000>;
@@ -623,7 +623,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio8: mdio@0x8c23000 {
+		pcs_mdio8: mdio@8c23000 {
 			status = "disabled";
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c23000 0x0 0x1000>;
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
@@ -2,7 +2,7 @@
 //
 // Device Tree Include file for Layerscape-LX2160A family SoC.
 //
-// Copyright 2018 NXP
+// Copyright 2018-2019 NXP
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -500,7 +500,7 @@
 			status = "disabled";
 		};
 
-		pcs_mdio1: mdio@0x8c07000 {
+		pcs_mdio1: mdio@8c07000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c07000 0x0 0x1000>;
 			device_type = "mdio";
@@ -510,7 +510,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio2: mdio@0x8c0b000 {
+		pcs_mdio2: mdio@8c0b000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c0b000 0x0 0x1000>;
 			device_type = "mdio";
@@ -520,7 +520,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio3: mdio@0x8c0f000 {
+		pcs_mdio3: mdio@8c0f000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c0f000 0x0 0x1000>;
 			device_type = "mdio";
@@ -530,7 +530,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio4: mdio@0x8c13000 {
+		pcs_mdio4: mdio@8c13000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c13000 0x0 0x1000>;
 			device_type = "mdio";
@@ -540,7 +540,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio5: mdio@0x8c17000 {
+		pcs_mdio5: mdio@8c17000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c17000 0x0 0x1000>;
 			device_type = "mdio";
@@ -550,7 +550,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio6: mdio@0x8c1b000 {
+		pcs_mdio6: mdio@8c1b000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c1b000 0x0 0x1000>;
 			device_type = "mdio";
@@ -560,7 +560,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio7: mdio@0x8c1f000 {
+		pcs_mdio7: mdio@8c1f000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c1f000 0x0 0x1000>;
 			device_type = "mdio";
@@ -570,7 +570,7 @@
 			#size-cells = <0>;
 		};
 
-		pcs_mdio8: mdio@0x8c23000 {
+		pcs_mdio8: mdio@8c23000 {
 			compatible = "fsl,fman-memac-mdio";
 			reg = <0x0 0x8c23000 0x0 0x1000>;
 			device_type = "mdio";