]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: tqmls10xxa: Move SFP cage definition to common place
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 1 Jul 2025 06:24:52 +0000 (08:24 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 11 Jul 2025 08:34:32 +0000 (16:34 +0800)
SFP is placed on mainboard, available to TQMLS1043A/1046A/1088A.
Provide it in a common place, disabled by default.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1088a-tqmls1088a-mbls10xxa.dts
arch/arm64/boot/dts/freescale/tqmls1088a-mbls10xxa-mc.dtsi
arch/arm64/boot/dts/freescale/tqmls10xxa-mbls10xxa.dtsi

index e567918f6afc6c83af86669e9c4a4c952df11401..181eeab55aa07aea636bf541e56fd43f9a6ced5c 100644 (file)
        wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
 };
 
+&sfp1 {
+       status = "okay";
+};
+
+&sfp2 {
+       status = "okay";
+};
+
 &sfp1_i2c {
        status = "okay";
 };
index 2471bb109e8e511c542ae020d6a872e49ff83547..9d44f488c0836ff8dfe3e40004b7e1ee8ea5e972 100644 (file)
 #include <dt-bindings/net/ti-dp83867.h>
 
 / {
-       sfp1: sfp1 {
-               compatible = "sff,sfp";
-               i2c-bus = <&sfp1_i2c>;
-               mod-def0-gpios = <&gpioexp2 2 GPIO_ACTIVE_LOW>;
-               los-gpios = <&gpioexp2 3 GPIO_ACTIVE_HIGH>;
-               tx-fault-gpios = <&gpioexp2 0 GPIO_ACTIVE_HIGH>;
-               tx-disable-gpios = <&gpioexp2 1 GPIO_ACTIVE_HIGH>;
-       };
 
-       sfp2: sfp2 {
-               compatible = "sff,sfp";
-               i2c-bus = <&sfp2_i2c>;
-               mod-def0-gpios = <&gpioexp2 10 GPIO_ACTIVE_LOW>;
-               los-gpios = <&gpioexp2 11 GPIO_ACTIVE_HIGH>;
-               tx-fault-gpios = <&gpioexp2 8 GPIO_ACTIVE_HIGH>;
-               tx-disable-gpios = <&gpioexp2 9 GPIO_ACTIVE_HIGH>;
-       };
 };
 
 &dpmac1 {
index 65b4ed28a3d4c2531126a32cd6334225a5a162b6..40fa41eadd836810905169d5b285a525605bb4b7 100644 (file)
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
        };
+
+       sfp1: sfp1 {
+               compatible = "sff,sfp";
+               i2c-bus = <&sfp1_i2c>;
+               mod-def0-gpios = <&gpioexp2 2 GPIO_ACTIVE_LOW>;
+               los-gpios = <&gpioexp2 3 GPIO_ACTIVE_HIGH>;
+               tx-fault-gpios = <&gpioexp2 0 GPIO_ACTIVE_HIGH>;
+               tx-disable-gpios = <&gpioexp2 1 GPIO_ACTIVE_HIGH>;
+               status = "disabled";
+       };
+
+       sfp2: sfp2 {
+               compatible = "sff,sfp";
+               i2c-bus = <&sfp2_i2c>;
+               mod-def0-gpios = <&gpioexp2 10 GPIO_ACTIVE_LOW>;
+               los-gpios = <&gpioexp2 11 GPIO_ACTIVE_HIGH>;
+               tx-fault-gpios = <&gpioexp2 8 GPIO_ACTIVE_HIGH>;
+               tx-disable-gpios = <&gpioexp2 9 GPIO_ACTIVE_HIGH>;
+               status = "disabled";
+       };
 };
 
 &duart0 {