]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: lx2160a-rdb: fully describe the two SFP+ cages
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 14 Oct 2025 15:53:57 +0000 (18:53 +0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Oct 2025 06:28:39 +0000 (14:28 +0800)
Describe the two SFP+ cages found on the LX2160ARDB board with their
respective I2C buses and GPIO lines.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts

index 15ff503dcef3db89f74f285baa5415eff3535380..935f421475acb83215445d0cc22076bfc11e6c9b 100644 (file)
                regulator-boot-on;
                regulator-always-on;
        };
+
+       sfp2: sfp-2 {
+               compatible = "sff,sfp";
+               i2c-bus = <&sfp2_i2c>;
+               maximum-power-milliwatt = <2000>;
+               /* Leave commented out if using DPMAC_LINK_TYPE_FIXED mode */
+               /* tx-disable-gpios = <&sfp2_csr 0 GPIO_ACTIVE_HIGH>; */
+               los-gpios = <&sfp2_csr 4 GPIO_ACTIVE_HIGH>;
+               tx-fault-gpios = <&sfp2_csr 5 GPIO_ACTIVE_HIGH>;
+               mod-def0-gpios = <&sfp2_csr 7 GPIO_ACTIVE_LOW>;
+       };
+
+       sfp3: sfp-3 {
+               compatible = "sff,sfp";
+               i2c-bus = <&sfp3_i2c>;
+               maximum-power-milliwatt = <2000>;
+               /* Leave commented out if using DPMAC_LINK_TYPE_FIXED mode */
+               /* tx-disable-gpios = <&sfp3_csr 0 GPIO_ACTIVE_HIGH>; */
+               los-gpios = <&sfp3_csr 4 GPIO_ACTIVE_HIGH>;
+               tx-fault-gpios = <&sfp3_csr 5 GPIO_ACTIVE_HIGH>;
+               mod-def0-gpios = <&sfp3_csr 7 GPIO_ACTIVE_LOW>;
+       };
 };
 
 &crypto {
                                vcc-supply = <&sb_3v3>;
                        };
                };
+
+               i2c@7 {
+                       reg = <0x7>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       i2c-mux@75 {
+                               compatible = "nxp,pca9547";
+                               reg = <0x75>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               sfp2_i2c: i2c@4 {
+                                       reg = <0x4>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
+
+                               sfp3_i2c: i2c@5 {
+                                       reg = <0x5>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
+                       };
+               };
        };
 };