1 From 0c767bcfe1b4d940f2889820f12d278cbba764b5 Mon Sep 17 00:00:00 2001
2 From: Alex Marginean <alexandru.marginean@nxp.com>
3 Date: Tue, 27 Aug 2019 15:12:00 +0300
4 Subject: [PATCH] arm64: dts: ls1028a: define networking options for QDS
6 Defines connectivity for a few serdes protocol combinations (85xx, 65xx,
9 Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
11 .../boot/dts/freescale/fsl-ls1028a-qds-1xxx.dtsi | 20 ++++++++
12 .../boot/dts/freescale/fsl-ls1028a-qds-6xxx.dtsi | 20 ++++++++
13 .../boot/dts/freescale/fsl-ls1028a-qds-7777.dtsi | 56 ++++++++++++++++++++
14 .../boot/dts/freescale/fsl-ls1028a-qds-8xxx.dtsi | 19 +++++++
15 .../boot/dts/freescale/fsl-ls1028a-qds-9999.dtsi | 60 ++++++++++++++++++++++
16 .../boot/dts/freescale/fsl-ls1028a-qds-x3xx.dtsi | 48 +++++++++++++++++
17 .../boot/dts/freescale/fsl-ls1028a-qds-x5xx.dtsi | 44 ++++++++++++++++
18 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 27 ++++++++++
19 8 files changed, 294 insertions(+)
20 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-1xxx.dtsi
21 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-6xxx.dtsi
22 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-7777.dtsi
23 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-8xxx.dtsi
24 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-9999.dtsi
25 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-x3xx.dtsi
26 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-x5xx.dtsi
29 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-1xxx.dtsi
31 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
33 + * Device Tree Include file for LS1028A QDS board, serdes 1xxx
35 + * Copyright 2019 NXP
40 + slot1_sgmii: ethernet-phy@2 {
43 + compatible = "ethernet-phy-ieee802.3-c45";
48 + phy-handle = <&slot1_sgmii>;
49 + phy-connection-type = "usxgmii";
52 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-6xxx.dtsi
54 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
56 + * Device Tree Include file for LS1028A QDS board, serdes 6xxx
58 + * Copyright 2019 NXP
63 + slot1_sgmii: ethernet-phy@2 {
66 + compatible = "ethernet-phy-ieee802.3-c45";
71 + phy-handle = <&slot1_sgmii>;
72 + phy-connection-type = "2500base-x";
75 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-7777.dtsi
77 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
79 + * Device Tree Include file for LS1028A QDS board, serdes 9999
81 + * Copyright 2019 NXP
86 + /* two ports on AQR412 */
87 + slot1_sxgmii2: ethernet-phy@2 {
89 + compatible = "ethernet-phy-ieee802.3-c45";
91 + slot1_sxgmii3: ethernet-phy@3 {
93 + compatible = "ethernet-phy-ieee802.3-c45";
98 + slot2_sxgmii0: ethernet-phy@2 {
101 + compatible = "ethernet-phy-ieee802.3-c45";
106 + slot3_sxgmii0: ethernet-phy@2 {
109 + compatible = "ethernet-phy-ieee802.3-c45";
113 +/* l2switch ports */
115 + phy-handle = <&slot1_sxgmii2>;
116 + phy-connection-type = "2500base-x";
120 + phy-handle = <&slot2_sxgmii0>;
121 + phy-connection-type = "2500base-x";
125 + phy-handle = <&slot3_sxgmii0>;
126 + phy-connection-type = "2500base-x";
130 + phy-handle = <&slot1_sxgmii3>;
131 + phy-connection-type = "2500base-x";
134 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-8xxx.dtsi
136 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
138 + * Device Tree Include file for LS1028A QDS board, serdes 8xxx
140 + * Copyright 2019 NXP
145 + slot1_sgmii: ethernet-phy@1c {
146 + /* 1st port on VSC8234 */
152 + phy-handle = <&slot1_sgmii>;
153 + phy-connection-type = "sgmii";
156 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-9999.dtsi
158 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
160 + * Device Tree Include file for LS1028A QDS board, serdes 9999
162 + * Copyright 2019 NXP
168 + slot1_sgmii0: ethernet-phy@1c {
171 + slot1_sgmii1: ethernet-phy@1d {
174 + slot1_sgmii2: ethernet-phy@1e {
177 + slot1_sgmii3: ethernet-phy@1f {
184 + slot2_sgmii0: ethernet-phy@1c {
187 + slot2_sgmii1: ethernet-phy@1d {
190 + slot2_sgmii2: ethernet-phy@1e {
193 + slot2_sgmii3: ethernet-phy@1f {
198 +/* l2switch ports */
200 + phy-handle = <&slot1_sgmii0>;
201 + phy-connection-type = "sgmii";
205 + phy-handle = <&slot2_sgmii0>;
206 + phy-connection-type = "sgmii";
210 + phy-handle = <&slot1_sgmii2>;
211 + phy-connection-type = "sgmii";
215 + phy-handle = <&slot1_sgmii3>;
216 + phy-connection-type = "sgmii";
219 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-x3xx.dtsi
221 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
223 + * Device Tree Include file for LS1028A QDS board, serdes x3xx
225 + * Copyright 2019 NXP
230 + /* 4 ports on AQR412 */
231 + slot2_qsgmii0: ethernet-phy@0 {
233 + compatible = "ethernet-phy-ieee802.3-c45";
235 + slot2_qsgmii1: ethernet-phy@1 {
237 + compatible = "ethernet-phy-ieee802.3-c45";
239 + slot2_qsgmii2: ethernet-phy@2 {
241 + compatible = "ethernet-phy-ieee802.3-c45";
243 + slot2_qsgmii3: ethernet-phy@3 {
245 + compatible = "ethernet-phy-ieee802.3-c45";
249 +/* l2switch ports */
251 + phy-handle = <&slot2_qsgmii0>;
252 + phy-connection-type = "usxgmii";
256 + phy-handle = <&slot2_qsgmii1>;
257 + phy-connection-type = "usxgmii";
261 + phy-handle = <&slot2_qsgmii2>;
262 + phy-connection-type = "usxgmii";
266 + phy-handle = <&slot2_qsgmii3>;
267 + phy-connection-type = "usxgmii";
270 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-x5xx.dtsi
272 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
274 + * Device Tree Include file for LS1028A QDS board, serdes x5xx
276 + * Copyright 2019 NXP
281 + /* 4 ports on VSC8514 */
282 + slot2_qsgmii0: ethernet-phy@8 {
285 + slot2_qsgmii1: ethernet-phy@9 {
288 + slot2_qsgmii2: ethernet-phy@a {
291 + slot2_qsgmii3: ethernet-phy@b {
296 +/* l2switch ports */
298 + phy-handle = <&slot2_qsgmii0>;
299 + phy-connection-type = "qsgmii";
303 + phy-handle = <&slot2_qsgmii1>;
304 + phy-connection-type = "qsgmii";
308 + phy-handle = <&slot2_qsgmii2>;
309 + phy-connection-type = "qsgmii";
313 + phy-handle = <&slot2_qsgmii3>;
314 + phy-connection-type = "qsgmii";
316 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
317 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
323 + mdio_slot1: mdio@4 {
324 + #address-cells = <1>;
329 + mdio_slot2: mdio@5 {
330 + #address-cells = <1>;
335 + mdio_slot3: mdio@6 {
336 + #address-cells = <1>;
341 + mdio_slot4: mdio@7 {
342 + #address-cells = <1>;
350 edp_num_lanes = <0x4>;
354 +#include "fsl-ls1028a-qds-8xxx.dtsi"
355 +#include "fsl-ls1028a-qds-x5xx.dtsi"