2021-01-27 11:00:00 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+ OR X11
|
|
|
|
/*
|
|
|
|
* NXP LS1028A-QDS device tree fragment for RCW 9999
|
|
|
|
*
|
2021-09-17 11:27:13 +00:00
|
|
|
* Copyright 2019-2021 NXP
|
2021-01-27 11:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This setup is using SCH-24801 cards with VSC8234 quad SGMII PHY.
|
|
|
|
* LS1028A QDS boards with lane B rework require two cards for the 4 switch
|
|
|
|
* ports, QDS boards without the lane B rework only require one card.
|
|
|
|
*
|
|
|
|
* Switch ports are routed as follows:
|
|
|
|
* Port 0 goes to 1st port of VSC8234 quad card in slot 1,
|
|
|
|
* Port 1:
|
|
|
|
* - if the QDS has had lane B rework, it is 1st port in slot 2,
|
|
|
|
* - otherwise it is 2nd port in slot 1.
|
|
|
|
* Port 2:
|
|
|
|
* - if DIP SW5[1] = 0 it is 3rd port in slot 1,
|
|
|
|
* - otherwise it is 1st port in slot 3.
|
|
|
|
* Port 3:
|
|
|
|
* - if DIP SW5[2-3] = 00b it is 4th port in slot 1,
|
|
|
|
* - if DIP SW5[2-3] = 01b it is 2nd port in slot 3,
|
|
|
|
* - if DIP SW5[2-3] = 11b it is 1st port in slot 4.
|
|
|
|
*
|
|
|
|
* The following DTS assumes QDS lane B rework and DIP SW5[1-3] = 000b. Two
|
|
|
|
* SCH-24801 cards are required in slots 1 and 2.
|
|
|
|
*/
|
|
|
|
&slot1 {
|
|
|
|
#include "fsl-sch-24801.dtsi"
|
|
|
|
};
|
|
|
|
|
|
|
|
&slot2 {
|
|
|
|
#include "fsl-sch-24801.dtsi"
|
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:15 +00:00
|
|
|
&enetc_port2 {
|
2021-06-29 17:53:11 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-27 11:00:00 +00:00
|
|
|
&mscc_felix {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix_port0 {
|
|
|
|
status = "okay";
|
2022-01-03 12:47:37 +00:00
|
|
|
managed = "in-band-status";
|
2021-01-27 11:00:00 +00:00
|
|
|
phy-mode = "sgmii";
|
2021-10-13 16:14:05 +00:00
|
|
|
phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1c}>;
|
2021-01-27 11:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix_port1 {
|
|
|
|
status = "okay";
|
2022-01-03 12:47:37 +00:00
|
|
|
managed = "in-band-status";
|
2021-01-27 11:00:00 +00:00
|
|
|
phy-mode = "sgmii";
|
2021-10-13 16:14:05 +00:00
|
|
|
phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@50/phy@1c}>;
|
2021-01-27 11:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix_port2 {
|
|
|
|
status = "okay";
|
2022-01-03 12:47:37 +00:00
|
|
|
managed = "in-band-status";
|
2021-01-27 11:00:00 +00:00
|
|
|
phy-mode = "sgmii";
|
2021-10-13 16:14:05 +00:00
|
|
|
phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1e}>;
|
2021-01-27 11:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&mscc_felix_port3 {
|
|
|
|
status = "okay";
|
2022-01-03 12:47:37 +00:00
|
|
|
managed = "in-band-status";
|
2021-01-27 11:00:00 +00:00
|
|
|
phy-mode = "sgmii";
|
2021-10-13 16:14:05 +00:00
|
|
|
phy-handle = <&{/soc/i2c@2000000/fpga@66/mux-mdio@54/mdio@40/phy@1f}>;
|
2021-01-27 11:00:00 +00:00
|
|
|
};
|
2021-06-29 17:53:11 +00:00
|
|
|
|
|
|
|
&mscc_felix_port4 {
|
2021-10-13 16:14:15 +00:00
|
|
|
ethernet = <&enetc_port2>;
|
2021-06-29 17:53:11 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|