blob: 0630f1206932457764c1fdf2e424b27c31b4a6b2 [file] [log] [blame]
Alex Marginean72f3aa52021-01-27 13:00:00 +02001// SPDX-License-Identifier: GPL-2.0+ OR X11
2/*
3 * NXP LS1028A-QDS device tree fragment for RCW 9999
4 *
Vladimir Oltean5041e422021-09-17 14:27:13 +03005 * Copyright 2019-2021 NXP
Alex Marginean72f3aa52021-01-27 13:00:00 +02006 */
7
8/*
9 * This setup is using SCH-24801 cards with VSC8234 quad SGMII PHY.
10 * LS1028A QDS boards with lane B rework require two cards for the 4 switch
11 * ports, QDS boards without the lane B rework only require one card.
12 *
13 * Switch ports are routed as follows:
14 * Port 0 goes to 1st port of VSC8234 quad card in slot 1,
15 * Port 1:
16 * - if the QDS has had lane B rework, it is 1st port in slot 2,
17 * - otherwise it is 2nd port in slot 1.
18 * Port 2:
19 * - if DIP SW5[1] = 0 it is 3rd port in slot 1,
20 * - otherwise it is 1st port in slot 3.
21 * Port 3:
22 * - if DIP SW5[2-3] = 00b it is 4th port in slot 1,
23 * - if DIP SW5[2-3] = 01b it is 2nd port in slot 3,
24 * - if DIP SW5[2-3] = 11b it is 1st port in slot 4.
25 *
26 * The following DTS assumes QDS lane B rework and DIP SW5[1-3] = 000b. Two
27 * SCH-24801 cards are required in slots 1 and 2.
28 */
29&slot1 {
30 #include "fsl-sch-24801.dtsi"
31};
32
33&slot2 {
34 #include "fsl-sch-24801.dtsi"
35};
36
Vladimir Olteanc32039a2021-06-29 20:53:11 +030037&enetc2 {
38 status = "okay";
39};
40
Alex Marginean72f3aa52021-01-27 13:00:00 +020041&mscc_felix {
42 status = "okay";
43};
44
45&mscc_felix_port0 {
46 status = "okay";
47 phy-mode = "sgmii";
Michael Walle2da16cd2021-10-13 18:14:05 +020048 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1c}>;
Alex Marginean72f3aa52021-01-27 13:00:00 +020049};
50
51&mscc_felix_port1 {
52 status = "okay";
53 phy-mode = "sgmii";
Michael Walle2da16cd2021-10-13 18:14:05 +020054 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@50/phy@1c}>;
Alex Marginean72f3aa52021-01-27 13:00:00 +020055};
56
57&mscc_felix_port2 {
58 status = "okay";
59 phy-mode = "sgmii";
Michael Walle2da16cd2021-10-13 18:14:05 +020060 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1e}>;
Alex Marginean72f3aa52021-01-27 13:00:00 +020061};
62
63&mscc_felix_port3 {
64 status = "okay";
65 phy-mode = "sgmii";
Michael Walle2da16cd2021-10-13 18:14:05 +020066 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1f}>;
Alex Marginean72f3aa52021-01-27 13:00:00 +020067};
Vladimir Olteanc32039a2021-06-29 20:53:11 +030068
69&mscc_felix_port4 {
70 ethernet = <&enetc2>;
71 status = "okay";
72};