Skip to content

Commit e69eb08

Browse files
vladimirolteandavem330
authored andcommitted
powerpc: dts: t1040rdb: add ports for Seville Ethernet switch
Define the network interface names for the switch ports and hook them up to the 2 QSGMII PHYs that are onboard. A conscious decision was taken to go along with the numbers that are written on the front panel of the board and not with the hardware numbers of the switch chip ports. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Maxim Kochetkov <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent aa30986 commit e69eb08

File tree

1 file changed

+107
-0
lines changed

1 file changed

+107
-0
lines changed

arch/powerpc/boot/dts/fsl/t1040rdb.dts

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,40 @@
6464
phy_sgmii_2: ethernet-phy@3 {
6565
reg = <0x03>;
6666
};
67+
68+
/* VSC8514 QSGMII PHY */
69+
phy_qsgmii_0: ethernet-phy@4 {
70+
reg = <0x4>;
71+
};
72+
73+
phy_qsgmii_1: ethernet-phy@5 {
74+
reg = <0x5>;
75+
};
76+
77+
phy_qsgmii_2: ethernet-phy@6 {
78+
reg = <0x6>;
79+
};
80+
81+
phy_qsgmii_3: ethernet-phy@7 {
82+
reg = <0x7>;
83+
};
84+
85+
/* VSC8514 QSGMII PHY */
86+
phy_qsgmii_4: ethernet-phy@8 {
87+
reg = <0x8>;
88+
};
89+
90+
phy_qsgmii_5: ethernet-phy@9 {
91+
reg = <0x9>;
92+
};
93+
94+
phy_qsgmii_6: ethernet-phy@a {
95+
reg = <0xa>;
96+
};
97+
98+
phy_qsgmii_7: ethernet-phy@b {
99+
reg = <0xb>;
100+
};
67101
};
68102
};
69103
};
@@ -76,3 +110,76 @@
76110
};
77111

78112
#include "t1040si-post.dtsi"
113+
114+
&seville_switch {
115+
status = "okay";
116+
};
117+
118+
&seville_port0 {
119+
managed = "in-band-status";
120+
phy-handle = <&phy_qsgmii_0>;
121+
phy-mode = "qsgmii";
122+
label = "ETH5";
123+
status = "okay";
124+
};
125+
126+
&seville_port1 {
127+
managed = "in-band-status";
128+
phy-handle = <&phy_qsgmii_1>;
129+
phy-mode = "qsgmii";
130+
label = "ETH4";
131+
status = "okay";
132+
};
133+
134+
&seville_port2 {
135+
managed = "in-band-status";
136+
phy-handle = <&phy_qsgmii_2>;
137+
phy-mode = "qsgmii";
138+
label = "ETH7";
139+
status = "okay";
140+
};
141+
142+
&seville_port3 {
143+
managed = "in-band-status";
144+
phy-handle = <&phy_qsgmii_3>;
145+
phy-mode = "qsgmii";
146+
label = "ETH6";
147+
status = "okay";
148+
};
149+
150+
&seville_port4 {
151+
managed = "in-band-status";
152+
phy-handle = <&phy_qsgmii_4>;
153+
phy-mode = "qsgmii";
154+
label = "ETH9";
155+
status = "okay";
156+
};
157+
158+
&seville_port5 {
159+
managed = "in-band-status";
160+
phy-handle = <&phy_qsgmii_5>;
161+
phy-mode = "qsgmii";
162+
label = "ETH8";
163+
status = "okay";
164+
};
165+
166+
&seville_port6 {
167+
managed = "in-band-status";
168+
phy-handle = <&phy_qsgmii_6>;
169+
phy-mode = "qsgmii";
170+
label = "ETH11";
171+
status = "okay";
172+
};
173+
174+
&seville_port7 {
175+
managed = "in-band-status";
176+
phy-handle = <&phy_qsgmii_7>;
177+
phy-mode = "qsgmii";
178+
label = "ETH10";
179+
status = "okay";
180+
};
181+
182+
&seville_port8 {
183+
ethernet = <&enet0>;
184+
status = "okay";
185+
};

0 commit comments

Comments
 (0)