&spi1 {
spi-num-chipselects = <1>;
#address-cells = <1>;
#size-cells = <0>;
sja1105q_A@0 {
compatible = "nxp,sja1105q";
spi-max-frequency = <0x3D0900>;
spi-cpha;
fsl,spi-cs-sck-delay = <1>;
fsl,spi-sck-cs-delay = <1>;
reg = <0>;
soft-cs-gpio = <&pcal6524B 17 0>;
reset-gpio = <&pcal6524B 16 0>;
dsa,member = < 0 0 >;
ports {
#address-cells = <1>;
#size-cells = <0>;
switchAp0: port@0 {
ethernet = <&pfe_logif1>;
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "cpu";
reg = <0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
switchAp1:port@1 {
phy-handle = <&mdio_a_phy_A1>;
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "Sw_A_p1";
reg = <1>;
};
switchAp2: port@2 {
phy-handle = <&mdio_a_phy_A2>;
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "Sw_A_p2";
reg = <2>;
};
switchAp3: port@3 {
phy-handle = <&mdio_a_phy_A3>;
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "Sw_A_p3";
reg = <3>;
};
switchAp4: port@4 {
phy-mode = "rgmii";
sja1105,role-phy;
label = "dsa";
reg = <4>;
link = <&switchBp0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
&spi5 {
spi-num-chipselects = <1>;
#address-cells = <1>;
#size-cells = <0>;
sja1105q_B@0 {
compatible = "nxp,sja1105q";
spi-max-frequency = <0x3D0900>;
spi-cpha;
fsl,spi-cs-sck-delay = <1>;
fsl,spi-sck-cs-delay = <1>;
reg = <0>;
soft-cs-gpio = <&pcal6524B 19 0>;
reset-gpio = <&pcal6524B 18 0>;
dsa,member = < 0 1 >;
ports {
#address-cells = <1>;
#size-cells = <0>;
switchBp0: port@0 {
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "dsa";
reg = <0>;
link = <&switchAp4>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
switchBp1: port@1 {
phy-handle = <&mdio_a_phy_B1>;
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "Sw_B_p1";
reg = <1>;
};
switchBp2: port@2 {
phy-handle = <&mdio_a_phy_B2>;
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "Sw_B_p2";
reg = <2>;
};
switchBp3: port@3 {
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "Sw_B_p3";
reg = <3>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
switchBp4: port@4 {
phy-mode = "rgmii-id";
sja1105,role-phy;
label = "Sw_B_p4";
reg = <4>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};