1 From 8fd1ab38e922383fa87db60c48c44ab0d5e6f1c1 Mon Sep 17 00:00:00 2001
2 From: Li Yang <leoyang.li@nxp.com>
3 Date: Thu, 2 May 2019 15:52:49 -0500
4 Subject: [PATCH] arm64: dts: ls1012a: accumulated change for ls1012a boards
6 commit 65c558ec270003e8e99cb58c940d3b913d08fa39
7 Author: Zhang Ying-22455 <ying.zhang22455@nxp.com>
8 Date: Tue May 15 08:47:19 2018 +0800
10 arm64: dts: ls1012a: correct the register range of dcfg
12 Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
14 commit 8f7b4cded4ea1fca53516ae8f5d5bc89af291f26
15 Author: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
16 Date: Mon May 7 11:52:04 2018 +0530
18 arm64: dts: ls1012a: Add LS1012A-FRWY board support
20 LS1012A-FRWY is a different design from LS1012A-FRDM,
21 but has some common SoC features. Key feature on this
22 board is 2x1G SGMII PFE MAC, Micro SD, USB 3.0, DDR,
25 Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
27 commit 94fc77837b3b6f4213a49b29ddc3e09e38ae5fbb
28 Author: Zhang Ying-22455 <ying.zhang22455@nxp.com>
29 Date: Mon Apr 2 16:16:47 2018 +0800
31 arm64: dts: ls1012a: add dts entry for A-010650
33 Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
35 commit d4164a6d8cffd8f09c451073754834d58b7ace19
36 Author: Suresh Gupta <suresh.gupta@nxp.com>
37 Date: Thu Feb 1 23:44:15 2018 +0530
39 arm64: dts: freescale: ls1012a: Add DT nodes for qspi
41 Signed-off-by: Abhimanyu Saini <abhimanyu.saini@nxp.com>
42 Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
44 commit 4fdc98a03492b732a48426a4180f7d6a36847e71
45 Author: Zhang Ying-22455 <ying.zhang22455@nxp.com>
46 Date: Wed Nov 1 10:31:47 2017 +0800
48 arm64: dts: ls1012a: correct the i2c clock to 1/4 platform pll
50 Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
52 commit bb534725996b92aff853a4dee43738629fd4ac08
53 Author: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
54 Date: Wed Nov 29 06:31:23 2017 +0530
56 arm64: dts: freescale: ls1012a: Disable PCIe node as default
58 Keep PCIe node in "disabled" status as SoC default.
59 Only enable it for boards with PCIe circuit designed,
60 such as LS1012ARDB and LS1012AQDS.
62 Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
64 commit 6b9a3244baba2c5126f349800ecaad83ba97ee47
65 Author: Calvin Johnson <calvin.johnson@nxp.com>
66 Date: Mon Oct 16 12:25:19 2017 +0530
68 arm64: dts: freescale: ls1012a: fix RGMII tx delay issue
70 Recently logic to enable RGMII tx delay was changed by
73 https://patchwork.kernel.org/patch/9447581/
75 Based on the patch, enabling tx delay again using rgmii-txid.
77 Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
78 Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
80 commit 1e17e247088f6e2c08041559e38053b70a9d2bbe
81 Author: Calvin Johnson <calvin.johnson@nxp.com>
82 Date: Sat Sep 16 14:20:23 2017 +0530
84 arm64: dts: freescale: ls1012a: update with pppfe support
86 Update ls1012a dtsi and platform dts files with
89 Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
90 Signed-off-by: Anjaneyulu Jagarlmudi <anji.jagarlmudi@nxp.com>
92 commit e9661ed864d2a9d437057f97729410bb9af994f2
93 Author: Suresh Gupta <suresh.gupta@nxp.com>
94 Date: Tue May 16 17:17:21 2017 +0530
96 arm64: dts: ls1012a: add the DTS node for QSPI support
98 There is a s25fs512s qspi flash on QDS, RDB and FRDM board.
100 Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
102 commit ed9c51239461fe0322da2e93f50033ea0d05bc4f
103 Author: Chenhui Zhao <chenhui.zhao@nxp.com>
104 Date: Fri May 5 17:45:15 2017 +0800
106 arm64: dts: ls1012a: add ftm0 node
108 Signed-off-by: Zhang Ying-22455 <ying.zhang22455@nxp.com>
110 arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 58 ++++++++++++++++++
111 arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 62 ++++++++++++++++++++
112 arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts | 62 ++++++++++++++++++++
113 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 68 +++++++++++++++++++++-
114 4 files changed, 248 insertions(+), 2 deletions(-)
116 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
117 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
119 model = "LS1012A Freedom Board";
120 compatible = "fsl,ls1012a-frdm", "fsl,ls1012a";
123 + ethernet0 = &pfe_mac0;
124 + ethernet1 = &pfe_mac1;
127 sys_mclk: clock-mclk {
128 compatible = "fixed-clock";
136 + #address-cells = <1>;
140 + compatible = "fsl,pfe-gemac-port";
141 + #address-cells = <1>;
143 + reg = <0x0>; /* GEM_ID */
144 + fsl,gemac-bus-id = <0x0>; /* BUS_ID */
145 + fsl,gemac-phy-id = <0x2>; /* PHY_ID */
146 + fsl,mdio-mux-val = <0x0>;
147 + phy-mode = "sgmii";
148 + fsl,pfe-phy-if-flags = <0x0>;
151 + reg = <0x1>; /* enabled/disabled */
156 + compatible = "fsl,pfe-gemac-port";
157 + #address-cells = <1>;
159 + reg = <0x1>; /* GEM_ID */
160 + fsl,gemac-bus-id = <0x1>; /* BUS_ID */
161 + fsl,gemac-phy-id = <0x1>; /* PHY_ID */
162 + fsl,mdio-mux-val = <0x0>;
163 + phy-mode = "sgmii";
164 + fsl,pfe-phy-if-flags = <0x0>;
167 + reg = <0x0>; /* enabled/disabled */
182 + qflash0: s25fs512s@0 {
183 + compatible = "spansion,m25p80";
184 + #address-cells = <1>;
186 + spi-max-frequency = <20000000>;
189 + spi-rx-bus-width = <2>;
190 + spi-tx-bus-width = <2>;
194 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
195 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
197 model = "LS1012A QDS Board";
198 compatible = "fsl,ls1012a-qds", "fsl,ls1012a";
201 + ethernet0 = &pfe_mac0;
202 + ethernet1 = &pfe_mac1;
205 sys_mclk: clock-mclk {
206 compatible = "fixed-clock";
225 + #address-cells = <1>;
229 + compatible = "fsl,pfe-gemac-port";
230 + #address-cells = <1>;
232 + reg = <0x0>; /* GEM_ID */
233 + fsl,gemac-bus-id = <0x0>; /* BUS_ID */
234 + fsl,gemac-phy-id = <0x1>; /* PHY_ID */
235 + fsl,mdio-mux-val = <0x2>;
236 + phy-mode = "sgmii-2500";
237 + fsl,pfe-phy-if-flags = <0x0>;
240 + reg = <0x1>; /* enabled/disabled */
245 + compatible = "fsl,pfe-gemac-port";
246 + #address-cells = <1>;
248 + reg = <0x1>; /* GEM_ID */
249 + fsl,gemac-bus-id = <0x1>; /* BUS_ID */
250 + fsl,gemac-phy-id = <0x2>; /* PHY_ID */
251 + fsl,mdio-mux-val = <0x3>;
252 + phy-mode = "sgmii-2500";
253 + fsl,pfe-phy-if-flags = <0x0>;
256 + reg = <0x0>; /* enabled/disabled */
271 + qflash0: s25fs512s@0 {
272 + compatible = "spansion,m25p80";
273 + #address-cells = <1>;
275 + spi-max-frequency = <20000000>;
278 + spi-rx-bus-width = <2>;
279 + spi-tx-bus-width = <2>;
283 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
284 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
287 model = "LS1012A RDB Board";
288 compatible = "fsl,ls1012a-rdb", "fsl,ls1012a";
291 + ethernet0 = &pfe_mac0;
292 + ethernet1 = &pfe_mac1;
308 + #address-cells = <1>;
312 + compatible = "fsl,pfe-gemac-port";
313 + #address-cells = <1>;
315 + reg = <0x0>; /* GEM_ID */
316 + fsl,gemac-bus-id = <0x0>; /* BUS_ID */
317 + fsl,gemac-phy-id = <0x2>; /* PHY_ID */
318 + fsl,mdio-mux-val = <0x0>;
319 + phy-mode = "sgmii";
320 + fsl,pfe-phy-if-flags = <0x0>;
323 + reg = <0x1>; /* enabled/disabled */
328 + compatible = "fsl,pfe-gemac-port";
329 + #address-cells = <1>;
331 + reg = <0x1>; /* GEM_ID */
332 + fsl,gemac-bus-id = < 0x1 >; /* BUS_ID */
333 + fsl,gemac-phy-id = < 0x1 >; /* PHY_ID */
334 + fsl,mdio-mux-val = <0x0>;
335 + phy-mode = "rgmii-txid";
336 + fsl,pfe-phy-if-flags = <0x0>;
339 + reg = <0x0>; /* enabled/disabled */
346 + qflash0: s25fs512s@0 {
347 + compatible = "spansion,m25p80";
348 + #address-cells = <1>;
350 + spi-max-frequency = <20000000>;
353 + spi-rx-bus-width = <2>;
354 + spi-tx-bus-width = <2>;
358 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
359 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
362 compatible = "fsl,ls1012a-dcfg",
364 - reg = <0x0 0x1ee0000 0x0 0x10000>;
365 + reg = <0x0 0x1ee0000 0x0 0x1000>;
369 @@ -317,13 +317,23 @@
370 #thermal-sensor-cells = <1>;
373 + ftm0: ftm0@29d0000 {
374 + compatible = "fsl,ftm-alarm";
375 + reg = <0x0 0x29d0000 0x0 0x10000>,
376 + <0x0 0x1ee2140 0x0 0x4>;
377 + reg-names = "ftm", "FlexTimer1";
378 + interrupts = <0 86 0x4>;
383 - compatible = "fsl,vf610-i2c";
384 + compatible = "fsl,vf610-i2c", "fsl,ls1012a-vf610-i2c";
385 #address-cells = <1>;
387 reg = <0x0 0x2180000 0x0 0x10000>;
388 interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
389 clocks = <&clockgen 4 3>;
390 + scl-gpios = <&gpio0 13 0>;
398 + qspi: spi@1550000 {
399 + compatible = "fsl,ls1012a-qspi", "fsl,ls1021a-qspi";
400 + #address-cells = <1>;
402 + reg = <0x0 0x1550000 0x0 0x10000>,
403 + <0x0 0x40000000 0x0 0x10000000>;
404 + reg-names = "QuadSPI", "QuadSPI-memory";
405 + interrupts = <0 99 IRQ_TYPE_LEVEL_HIGH>;
406 + clock-names = "qspi_en", "qspi";
407 + clocks = <&clockgen 4 0>, <&clockgen 4 0>;
409 + status = "disabled";
413 #sound-dai-cells = <0>;
414 compatible = "fsl,vf610-sai";
416 <0000 0 0 4 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
420 + rcpm: rcpm@1ee2000 {
421 + compatible = "fsl,ls1012a-rcpm", "fsl,qoriq-rcpm-2.1";
422 + reg = <0x0 0x1ee2000 0x0 0x1000>;
423 + fsl,#rcpm-wakeup-cells = <1>;
428 + #address-cells = <2>;
432 + pfe_reserved: packetbuffer@83400000 {
433 + reg = <0 0x83400000 0 0xc00000>;
437 + pfe: pfe@04000000 {
438 + compatible = "fsl,pfe";
439 + reg = <0x0 0x04000000 0x0 0xc00000>, /* AXI 16M */
440 + <0x0 0x83400000 0x0 0xc00000>; /* PFE DDR 12M */
441 + reg-names = "pfe", "pfe-ddr";
442 + fsl,pfe-num-interfaces = <0x2>;
443 + interrupts = <0 172 0x4>, /* HIF interrupt */
444 + <0 173 0x4>, /*HIF_NOCPY interrupt */
445 + <0 174 0x4>; /* WoL interrupt */
446 + interrupt-names = "pfe_hif", "pfe_hif_nocpy", "pfe_wol";
447 + memory-region = <&pfe_reserved>;
448 + fsl,pfe-scfg = <&scfg 0>;
449 + fsl,rcpm-wakeup = <&rcpm 0xf0000020>;
450 + clocks = <&clockgen 4 0>;
451 + clock-names = "pfe";
454 + pfe_mac0: ethernet@0 {
457 + pfe_mac1: ethernet@1 {