Skip to contentSkip to conversation

ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX

PATCH In review Marek Vasut 2 participants 7 messages Dec 29, 2020 – Jan 14, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX

The GPIO hog flags are ignored by gpiolib-of.c now, set the flags to 0. Due to a change in gpiolib-of.c, setting flags to GPIO_ACTIVE_LOW and using output-low DT property leads to the GPIO being set high instead.

Fixes ac68793f49de ("ARM: dts: stm32: Add DHCOM based PicoITX board")
Cc Alexandre Torgue <[email protected]>
Cc Maxime Coquelin <[email protected]>
Cc Patrice Chotard <[email protected]>
Cc Patrick Delaunay <[email protected]>

To: [email protected]

---
 arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +1 -1
index 25528a1c096f..757707766fa0 100644
@@ -49,7 +49,7 @@ &gpioa {
 	 */
 	usb-port-power-hog {
 		gpio-hog;
-		gpios = <13 GPIO_ACTIVE_LOW>;
+		gpios = <13 0>;
 		output-low;
 		line-name = "usb-port-power";
 	};
Signature · 7 lines
2.29.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

PATCH 2/2 ARM: dts: stm32: Fix GPIO hog flags on DHCOM DRC02

The GPIO hog flags are ignored by gpiolib-of.c now, set the flags to 0. Since GPIO_ACTIVE_HIGH is defined as 0, this change only increases the correctness of the DT.

Fixes fde180f06d7b ("ARM: dts: stm32: Add DHSOM based DRC02 board")
Cc Alexandre Torgue <[email protected]>
Cc Maxime Coquelin <[email protected]>
Cc Patrice Chotard <[email protected]>
Cc Patrick Delaunay <[email protected]>

To: [email protected]

---
 arch/arm/boot/dts/stm32mp15xx-dhcom-drc02.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/stm32mp15xx-dhcom-drc02.dtsi +2 -2
index 6a2b546f6f72..8d1fea332665 100644
@@ -35,7 +35,7 @@ &gpiob {
 	 */
 	rs485-rx-en-hog {
 		gpio-hog;
-		gpios = <8 GPIO_ACTIVE_HIGH>;
+		gpios = <8 0>;
 		output-low;
 		line-name = "rs485-rx-en";
 	};
@@ -63,7 +63,7 @@ &gpioi {
 	 */
 	usb-hub-hog {
 		gpio-hog;
-		gpios = <2 GPIO_ACTIVE_HIGH>;
+		gpios = <2 0>;
 		output-high;
 		line-name = "usb-hub-reset";
 	};
Signature · 7 lines
2.29.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer
#2 lore raw
In reply to Marek Vasut

Hi Marek

Quoted 21 lines · Marek Vasut

The GPIO hog flags are ignored by gpiolib-of.c now, set the flags to 0. Due to a change in gpiolib-of.c, setting flags to GPIO_ACTIVE_LOW and using output-low DT property leads to the GPIO being set high instead.

Fixes ac68793f49de ("ARM: dts: stm32: Add DHCOM based PicoITX board")
Cc Alexandre Torgue <[email protected]>
Cc Maxime Coquelin <[email protected]>
Cc Patrice Chotard <[email protected]>
Cc Patrick Delaunay <[email protected]>

To: [email protected]

---
  arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +0 -0
index 25528a1c096f..757707766fa0 100644

arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi &gpioa { · line 50

Quoted 2 lines
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +0 -0
@@ -49,7 +49,7 @@ &gpioa {
  	 */
  	usb-port-power-hog {

On my tree this node is "usb-port-power". Do you want to update the node name too ? I can do it directly during the merge if you want. (Note, it is the case for DRC02 hog update).

regards
alex

arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi &gpioa { · line 55

Quoted 7 lines
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +1 -1
  		gpio-hog;
-		gpios = <13 GPIO_ACTIVE_LOW>;
+		gpios = <13 0>;
  		output-low;
  		line-name = "usb-port-power";
  	};

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
Quoted 1 line · Alexandre TORGUE

Hi Marek

Hi,

[...]

Quoted 10 lines

arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi &gpioa { · line 50

Quoted 7 lines
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +0 -0
index 25528a1c096f..757707766fa0 100644
@@ -49,7 +49,7 @@ &gpioa {
        */
       usb-port-power-hog {

On my tree this node is "usb-port-power". Do you want to update the node name too ? I can do it directly during the merge if you want. (Note, it is the case for DRC02 hog update).

Please pick "[PATCH] ARM: dts: stm32: Fix GPIO hog names on DHCOM" first, then this patch should apply cleanly.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#4 lore raw
Quoted 18 lines · Marek Vasut
Quoted 1 line · Alexandre TORGUE

Hi Marek

Hi,

[...]

Quoted 10 lines

arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi &gpioa { · line 50

Quoted 7 lines
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +0 -0
index 25528a1c096f..757707766fa0 100644
@@ -49,7 +49,7 @@ &gpioa {
        */
       usb-port-power-hog {

On my tree this node is "usb-port-power". Do you want to update the node name too ? I can do it directly during the merge if you want. (Note, it is the case for DRC02 hog update).

Quoted 1 line

Please pick "[PATCH] ARM: dts: stm32: Fix GPIO hog names on DHCOM" first, then this patch should apply cleanly.

Yes I just saw this one. It doesn't contain a fixes tag, I can add the same than for other hog patches ?

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#5 lore raw
Quoted 21 lines · Alexandre TORGUE
Quoted 18 lines · Marek Vasut
Quoted 1 line · Alexandre TORGUE

Hi Marek

Hi,

[...]

Quoted 10 lines

arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi &gpioa { · line 50

Quoted 7 lines
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +0 -0
index 25528a1c096f..757707766fa0 100644
@@ -49,7 +49,7 @@ &gpioa {
        */
       usb-port-power-hog {

On my tree this node is "usb-port-power". Do you want to update the node name too ? I can do it directly during the merge if you want. (Note, it is the case for DRC02 hog update).

Quoted 3 lines
Quoted 1 line

Please pick "[PATCH] ARM: dts: stm32: Fix GPIO hog names on DHCOM" first, then this patch should apply cleanly.

Yes I just saw this one. It doesn't contain a fixes tag, I can add the same than for other hog patches ?

If that is OK with you, please do. Thanks

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#6 lore raw
Quoted 22 lines · Marek Vasut
Quoted 21 lines · Alexandre TORGUE
Quoted 18 lines · Marek Vasut
Quoted 1 line · Alexandre TORGUE

Hi Marek

Hi,

[...]

Quoted 10 lines

arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi &gpioa { · line 50

Quoted 7 lines
arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi +0 -0
index 25528a1c096f..757707766fa0 100644
@@ -49,7 +49,7 @@ &gpioa {
        */
       usb-port-power-hog {

On my tree this node is "usb-port-power". Do you want to update the node name too ? I can do it directly during the merge if you want. (Note, it is the case for DRC02 hog update).

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Please pick "[PATCH] ARM: dts: stm32: Fix GPIO hog names on DHCOM" first, then this patch should apply cleanly.

Yes I just saw this one. It doesn't contain a fixes tag, I can add the same than for other hog patches ?

If that is OK with you, please do. Thanks

Done. Series applied on stm32-fixes.

Regards
Alex

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel