Skip to contentSkip to conversation

arm: dts: update arm sfp bindings to use -gpios

PATCH In review Russell King (Oracle) 2 participants 2 messages May 16, 2023 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: update arm sfp bindings to use -gpios

It was decided that SFP should use the -gpios suffix rather than -gpio. Update various boards to follow this.

---
 arch/arm/boot/dts/armada-385-clearfog-gtr.dtsi | 6 +++---
 arch/arm/boot/dts/armada-388-clearfog.dtsi     | 8 ++++----
 arch/arm/boot/dts/vf610-zii-cfu1.dts           | 4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)
arch/arm/boot/dts/armada-385-clearfog-gtr.dtsi +3 -3
index d1452a04e904..dc625adb2979 100644
@@ -246,9 +246,9 @@ pcie@3,0 {
 	sfp0: sfp {
 		compatible = "sff,sfp";
 		i2c-bus = <&i2c1>;
-		los-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
-		mod-def0-gpio = <&gpio0 25 GPIO_ACTIVE_LOW>;
-		tx-disable-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
+		los-gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
+		mod-def0-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
+		tx-disable-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
 	};
 
 	gpio-keys {
arch/arm/boot/dts/armada-388-clearfog.dtsi +4 -4
index 3c1771903191..093b7646d42e 100644
@@ -80,10 +80,10 @@ pcie@2,0 {
 	sfp: sfp {
 		compatible = "sff,sfp";
 		i2c-bus = <&i2c1>;
-		los-gpio = <&expander0 12 GPIO_ACTIVE_HIGH>;
-		mod-def0-gpio = <&expander0 15 GPIO_ACTIVE_LOW>;
-		tx-disable-gpio = <&expander0 14 GPIO_ACTIVE_HIGH>;
-		tx-fault-gpio = <&expander0 13 GPIO_ACTIVE_HIGH>;
+		los-gpios = <&expander0 12 GPIO_ACTIVE_HIGH>;
+		mod-def0-gpios = <&expander0 15 GPIO_ACTIVE_LOW>;
+		tx-disable-gpios = <&expander0 14 GPIO_ACTIVE_HIGH>;
+		tx-fault-gpios = <&expander0 13 GPIO_ACTIVE_HIGH>;
 		maximum-power-milliwatt = <2000>;
 	};
 };
arch/arm/boot/dts/vf610-zii-cfu1.dts +2 -2
index 96495d965163..67f1f35a5e40 100644
@@ -68,8 +68,8 @@ sff: sfp {
 		pinctrl-0 = <&pinctrl_optical>;
 		pinctrl-names = "default";
 		i2c-bus = <&i2c0>;
-		los-gpio = <&gpio4 4 GPIO_ACTIVE_HIGH>;
-		tx-disable-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
+		los-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
+		tx-disable-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
 	};
 
 	supply-voltage-monitor {
Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Russell King (Oracle)

It was decided that SFP should use the -gpios suffix rather than -gpio. Update various boards to follow this.

---
 arch/arm/boot/dts/armada-385-clearfog-gtr.dtsi | 6 +++---
 arch/arm/boot/dts/armada-388-clearfog.dtsi     | 8 ++++----
 arch/arm/boot/dts/vf610-zii-cfu1.dts           | 4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

Hi Russell

We probably want two patches, since there are two Maintainers involved.

Andrew