OSDN Git Service

ARM: dts: vf610-zii-dev-rev-c: add support for one SFF module
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 2 Sep 2018 16:29:12 +0000 (18:29 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Sep 2018 00:33:17 +0000 (08:33 +0800)
The board typically has 2 populated SFF interfaces. The mv88e6xxx
driver currently supports SFF modules connected to ports 9 and 10 of
the mv88e6390. Add support for sff2, which is connected to port 9.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/vf610-zii-dev-rev-c.dts

index 0b1e94c..6f4a560 100644 (file)
                                                phy-handle = <&switch1phy4>;
                                        };
 
+                                       port@9 {
+                                               reg = <9>;
+                                               label = "sff2";
+                                               phy-mode = "sgmii";
+                                               managed = "in-band-status";
+                                               sfp = <&sff2>;
+                                       };
 
                                        switch1port10: port@10 {
                                                reg = <10>;
                        #size-cells = <0>;
                };
        };
+
+       sff2: sff2 {
+               /* lower */
+               compatible = "sff,sff";
+               i2c-bus = <&sff2_i2c>;
+               los-gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
+               tx-disable-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
+       };
+
+       sff3: sff3 {
+               /* upper */
+               compatible = "sff,sff";
+               i2c-bus = <&sff3_i2c>;
+               los-gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
+               tx-disable-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
+       };
 };
 
 &dspi0 {
                interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
                gpio-controller;
                interrupt-controller;
-
-               enet_swr_en {
-                       gpio-hog;
-                       gpios = <0 GPIO_ACTIVE_HIGH>;
-                       output-high;
-                       line-name = "enet-swr-en";
-               };
        };
 
        /*
                        reg = <0>;
                };
 
-               i2c@1 {
+               sff2_i2c: i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <1>;
-
-                       sfp2: at24c04@50 {
-                               compatible = "atmel,24c02";
-                               reg = <0x50>;
-                       };
                };
 
-               i2c@2 {
+               sff3_i2c: i2c@2 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <2>;
-
-                       sfp3: at24c04@50 {
-                               compatible = "atmel,24c02";
-                               reg = <0x50>;
-                       };
                };
 
                i2c@3 {