blob: 94b5e765aedbcd83ae7c270e4323645bc7254958 [file] [log] [blame]
Alex Margineana7fdac72021-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 Oltean66fd01f2021-09-17 14:27:13 +03005 * Copyright 2019-2021 NXP
Alex Margineana7fdac72021-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
Michael Wallec816dd02021-10-13 18:14:15 +020037&enetc_port2 {
Vladimir Oltean39dca762021-06-29 20:53:11 +030038 status = "okay";
39};
40
Alex Margineana7fdac72021-01-27 13:00:00 +020041&mscc_felix {
42 status = "okay";
43};
44
45&mscc_felix_port0 {
46 status = "okay";
Vladimir Oltean681adaa2022-01-03 14:47:37 +020047 managed = "in-band-status";
Alex Margineana7fdac72021-01-27 13:00:00 +020048 phy-mode = "sgmii";
Michael Wallefb19c6b2021-10-13 18:14:05 +020049 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1c}>;
Alex Margineana7fdac72021-01-27 13:00:00 +020050};
51
52&mscc_felix_port1 {
53 status = "okay";
Vladimir Oltean681adaa2022-01-03 14:47:37 +020054 managed = "in-band-status";
Alex Margineana7fdac72021-01-27 13:00:00 +020055 phy-mode = "sgmii";
Michael Wallefb19c6b2021-10-13 18:14:05 +020056 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@50/phy@1c}>;
Alex Margineana7fdac72021-01-27 13:00:00 +020057};
58
59&mscc_felix_port2 {
60 status = "okay";
Vladimir Oltean681adaa2022-01-03 14:47:37 +020061 managed = "in-band-status";
Alex Margineana7fdac72021-01-27 13:00:00 +020062 phy-mode = "sgmii";
Michael Wallefb19c6b2021-10-13 18:14:05 +020063 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1e}>;
Alex Margineana7fdac72021-01-27 13:00:00 +020064};
65
66&mscc_felix_port3 {
67 status = "okay";
Vladimir Oltean681adaa2022-01-03 14:47:37 +020068 managed = "in-band-status";
Alex Margineana7fdac72021-01-27 13:00:00 +020069 phy-mode = "sgmii";
Michael Wallefb19c6b2021-10-13 18:14:05 +020070 phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1f}>;
Alex Margineana7fdac72021-01-27 13:00:00 +020071};
Vladimir Oltean39dca762021-06-29 20:53:11 +030072
73&mscc_felix_port4 {
Michael Wallec816dd02021-10-13 18:14:15 +020074 ethernet = <&enetc_port2>;
Vladimir Oltean39dca762021-06-29 20:53:11 +030075 status = "okay";
76};