Skip to content

Commit 6b681fd

Browse files
plappermaulrobimarko
authored andcommitted
realtek: dts: add pcs-handle to switch ports
For all switch ports where the assigned SerDes is known, add the new pcs-handle to the dts. Leave the existing <sds> assignments to the PHYs as is because the driver has not yet been updated. Signed-off-by: Markus Stockhausen <[email protected]> Link: openwrt/openwrt#20111 Signed-off-by: Robert Marko <[email protected]>
1 parent c8c187f commit 6b681fd

25 files changed

+120
-28
lines changed

target/linux/realtek/dts/rtl8380_d-link_dgs-1210-10mp-f.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
port@24 {
107107
reg = <24>;
108108
label = "lan9";
109+
pcs-handle = <&serdes4>;
109110
phy-handle = <&phy24>;
110111
phy-mode = "1000base-x";
111112
managed = "in-band-status";
@@ -115,6 +116,7 @@
115116
port@26 {
116117
reg = <26>;
117118
label = "lan10";
119+
pcs-handle = <&serdes5>;
118120
phy-handle = <&phy26>;
119121
phy-mode = "1000base-x";
120122
managed = "in-band-status";

target/linux/realtek/dts/rtl8380_engenius_ews2910p.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,13 @@
202202
SWITCH_PORT(14, 7, internal)
203203
SWITCH_PORT(15, 8, internal)
204204

205+
/* TODO: fixed link SFP is not right */
205206
SWITCH_SFP_PORT(24, 9, 1000base-x)
206207

207208
port@26 {
208209
reg = <26>;
209210
label = "lan10";
211+
pcs-handle = <&serdes5>;
210212
phy-mode = "1000base-x";
211213
phy-handle = <&phy26>;
212214
managed = "in-band-status";

target/linux/realtek/dts/rtl8380_hpe_1920-8g.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
port@24 {
8989
reg = <24>;
9090
label = "lan9";
91+
pcs-handle = <&serdes4>;
9192
phy-handle = <&phy24>;
9293
phy-mode = "1000base-x";
9394
managed = "in-band-status";
@@ -97,6 +98,7 @@
9798
port@26 {
9899
reg = <26>;
99100
label = "lan10";
101+
pcs-handle = <&serdes5>;
100102
phy-handle = <&phy26>;
101103
phy-mode = "1000base-x";
102104
managed = "in-band-status";

target/linux/realtek/dts/rtl8380_linksys_lgs310c.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
port@24 {
179179
reg = <24>;
180180
label = "lan9";
181+
pcs-handle = <&serdes4>;
181182
phy-handle = <&phy24>;
182183
phy-mode = "1000base-x";
183184
managed = "in-band-status";
@@ -187,6 +188,7 @@
187188
port@26 {
188189
reg = <26>;
189190
label = "lan10";
191+
pcs-handle = <&serdes5>;
190192
phy-handle = <&phy26>;
191193
phy-mode = "1000base-x";
192194
managed = "in-band-status";

target/linux/realtek/dts/rtl8380_netgear_gs110tup-v1.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
&switch0 {
5454
ports {
5555
SWITCH_PORT(16, 9, qsgmii)
56+
/* TODO: fixed link SFP is not right */
5657
SWITCH_SFP_PORT(24, 10, rgmii-id)
5758
};
5859
};

target/linux/realtek/dts/rtl8380_netgear_gs310tp-v1.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
&switch0 {
5858
ports {
59+
/* TODO: fixed link SFP is not right */
5960
SWITCH_SFP_PORT(24, 9, 1000base-x)
6061
SWITCH_SFP_PORT(26, 10, 1000base-x)
6162
};

target/linux/realtek/dts/rtl8380_panasonic_m8eg-pn28080k.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@
104104
port@24 {
105105
reg = <24>;
106106
label = "lan9";
107-
phy-mode = "1000base-x";
107+
pcs-handle = <&serdes4>;
108108
phy-handle = <&phy24>;
109+
phy-mode = "1000base-x";
109110
managed = "in-band-status";
110111
sfp = <&sfp0>;
111112
};

target/linux/realtek/dts/rtl8380_tplink_sg2xxx.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
SWITCH_PORT(9, 7, internal)
172172
SWITCH_PORT(8, 8, internal)
173173

174+
/* TODO: fixed link SFP is not right */
174175
SWITCH_SFP_PORT(24, 9, 1000base-x)
175176
SWITCH_SFP_PORT(26, 10, 1000base-x)
176177

target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
port@24 {
6363
reg = <24>;
6464
label = "lan9";
65+
pcs-handle = <&serdes4>;
6566
phy-mode = "1000base-x";
6667
managed = "in-band-status";
6768
sfp = <&sfp0>;
@@ -70,6 +71,7 @@
7071
port@26 {
7172
reg = <26>;
7273
label = "lan10";
74+
pcs-handle = <&serdes5>;
7375
phy-mode = "1000base-x";
7476
managed = "in-band-status";
7577
sfp = <&sfp1>;

target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
port@24 {
106106
reg = <24>;
107107
label = "lan9";
108+
pcs-handle = <&serdes4>;
108109
phy-handle = <&phy24>;
109110
phy-mode = "1000base-x";
110111
managed = "in-band-status";
@@ -114,6 +115,7 @@
114115
port@26 {
115116
reg = <26>;
116117
label = "lan10";
118+
pcs-handle = <&serdes5>;
117119
phy-handle = <&phy26>;
118120
phy-mode = "1000base-x";
119121
managed = "in-band-status";

0 commit comments

Comments
 (0)