Skip to content

Commit 5b653a7

Browse files
committed
realtek: dts: convert DGS-1250-28X to SWITCH_PORT_SFP()
Use the new macro for the SFP ports. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
1 parent e77670e commit 5b653a7

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

target/linux/realtek/dts/rtl9301_d-link_dgs-1250-28x.dts

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -288,42 +288,10 @@
288288
SWITCH_PORT_LED(22, 23, 3, 0, usxgmii)
289289
SWITCH_PORT_LED(23, 24, 3, 0, usxgmii)
290290

291-
port@24 {
292-
reg = <24>;
293-
label = "lan25";
294-
led-set = <1>;
295-
pcs-handle = <&serdes4>;
296-
phy-mode = "1000base-x";
297-
managed = "in-band-status";
298-
sfp = <&sfp0>;
299-
};
300-
port@25 {
301-
reg = <25>;
302-
label = "lan26";
303-
led-set = <1>;
304-
pcs-handle = <&serdes6>;
305-
phy-mode = "1000base-x";
306-
managed = "in-band-status";
307-
sfp = <&sfp1>;
308-
};
309-
port@26 {
310-
reg = <26>;
311-
label = "lan27";
312-
led-set = <1>;
313-
pcs-handle = <&serdes8>;
314-
phy-mode = "1000base-x";
315-
managed = "in-band-status";
316-
sfp = <&sfp2>;
317-
};
318-
port@27 {
319-
reg = <27>;
320-
label = "lan28";
321-
led-set = <1>;
322-
pcs-handle = <&serdes9>;
323-
phy-mode = "1000base-x";
324-
managed = "in-band-status";
325-
sfp = <&sfp3>;
326-
};
291+
SWITCH_PORT_SFP(24, 25, 4, 1, 0)
292+
SWITCH_PORT_SFP(25, 26, 6, 1, 1)
293+
SWITCH_PORT_SFP(26, 27, 8, 1, 2)
294+
SWITCH_PORT_SFP(27, 28, 9, 1, 3)
327295

328296
port@28 {
329297
reg = <28>;

0 commit comments

Comments
 (0)