realtek: re-enable sfp driver for ZyXEL GS1900-10HP
authorBjørn Mork <bjorn@mork.no>
Sat, 13 Mar 2021 16:45:51 +0000 (17:45 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 17 Mar 2021 09:01:21 +0000 (10:01 +0100)
There is no need to define a static link or a phy for the sfp
ports.  Using phy-mode and managed properties to  describe the
link to the sfp phy.

We have to keep the now unconnected virtual "phys" because the
switch  driver uses their "phy-is-integrated" property to figure
out which ports to enable as fibre ports.

Acked-by: Birger Koblitz <mail@birger-koblitz.de>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts

index 92d0e25fc477e88c7a745b0a7edfe4fff3a87dac..c16028788ea4e86ace725b7dc2cedbb046b894cc 100644 (file)
@@ -17,7 +17,7 @@
        };
 
        sfp0: sfp-p9 {
-               compatible = "_sff,sfp";
+               compatible = "sff,sfp";
                i2c-bus = <&i2c0>;
                los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
                tx-fault-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
@@ -36,7 +36,7 @@
        };
 
        sfp1: sfp-p10 {
-               compatible = "_sff,sfp";
+               compatible = "sff,sfp";
                i2c-bus = <&i2c1>;
                los-gpio = <&gpio1 33 GPIO_ACTIVE_HIGH>;
                tx-fault-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
                port@24 {
                        reg = <24>;
                        label = "lan9";
-                       phy-mode = "rgmii-id";
-                       phy-handle = <&phy24>;
+                       phy-mode = "1000base-x";
+                       managed = "in-band-status";
                        sfp = <&sfp0>;
-
-                       fixed-link {
-                               speed = <1000>;
-                               full-duplex;
-                               pause;
-                       };
                };
 
                port@26 {
                        reg = <26>;
                        label = "lan10";
-                       phy-mode = "rgmii-id";
-                       phy-handle = <&phy26>;
+                       phy-mode = "1000base-x";
+                       managed = "in-band-status";
                        sfp = <&sfp1>;
-
-                       fixed-link {
-                               speed = <1000>;
-                               full-duplex;
-                               pause;
-                       };
                };
        };
 };