mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-05 18:06:12 +02:00
realtek: dts: repurpose SFP port macro
Repurpose a currently unused macro to make it usable for common SFP port definitions. Do so by changing defined properties, drop the fixed link, etc. Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22827 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
e343f3a2e2
commit
a2154c2b32
@ -74,16 +74,15 @@
|
||||
phy-mode = #m ; \
|
||||
};
|
||||
|
||||
#define SWITCH_SFP_PORT(n, s, m) \
|
||||
port##n: port@##n { \
|
||||
reg = <##n>; \
|
||||
label = SWITCH_PORT_LABEL(s) ; \
|
||||
phy-handle = <&phy##n>; \
|
||||
phy-mode = #m ; \
|
||||
fixed-link { \
|
||||
speed = <1000>; \
|
||||
full-duplex; \
|
||||
}; \
|
||||
#define SWITCH_PORT_SFP(p, l, s, c, g) \
|
||||
port##p: port@##p { \
|
||||
reg = <##p>; \
|
||||
label = SWITCH_PORT_LABEL(l) ; \
|
||||
led-set = <##c>; \
|
||||
pcs-handle = <&serdes##s>; \
|
||||
phy-mode = "1000base-x"; \
|
||||
sfp = <&sfp##g>; \
|
||||
managed = "in-band-status"; \
|
||||
};
|
||||
|
||||
// LED Set mode definitions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user