diff options
author | John Crispin <john@phrozen.org> | 2020-12-02 10:41:19 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2020-12-02 10:43:45 +0100 |
commit | 9aabd934a98ca894dc178d875f6ca6ea14ce427d (patch) | |
tree | 4f7da5cb69c7bcf23218d7eb40087c1b421f6195 /target/linux/realtek/dts/rtl838x.dtsi | |
parent | cfbda6627956af0cab380d03fd9275574e67921e (diff) | |
download | openwrt-9aabd934a98ca894dc178d875f6ca6ea14ce427d.tar.gz openwrt-9aabd934a98ca894dc178d875f6ca6ea14ce427d.tar.bz2 openwrt-9aabd934a98ca894dc178d875f6ca6ea14ce427d.zip |
realtek: fix SFP ports on the dlink 10port switch
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/realtek/dts/rtl838x.dtsi')
-rw-r--r-- | target/linux/realtek/dts/rtl838x.dtsi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/realtek/dts/rtl838x.dtsi b/target/linux/realtek/dts/rtl838x.dtsi index f48d759a10..15d518578b 100644 --- a/target/linux/realtek/dts/rtl838x.dtsi +++ b/target/linux/realtek/dts/rtl838x.dtsi @@ -35,6 +35,18 @@ phy-mode = #m ; \ }; +#define SWITCH_SFP_PORT(n, s, m) \ + port@##n { \ + reg = <##n>; \ + label = SWITCH_PORT_LABEL(s) ; \ + phy-handle = <&phy##n>; \ + phy-mode = #m ; \ + fixed-link { \ + speed = <1000>; \ + full-duplex; \ + }; \ + }; + / { #address-cells = <1>; #size-cells = <1>; |