ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX
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.
--- 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
@@ -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
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.
--- 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
@@ -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
Alexandre TORGUE
maintainerHi Marek
Quoted 21 lines · Marek Vasut
The GPIO hog flags are ignored by
gpiolib-of.cnow, set the flags to 0. Due to a change ingpiolib-of.c, setting flags toGPIO_ACTIVE_LOWand using output-low DT property leads to the GPIO being set high instead.Fixes ac68793f49de ("ARM: dts: stm32: Add DHCOM based PicoITX board")Signed-off-by Marek Vasut <[email protected]>Cc Alexandre Torgue <[email protected]>Cc Maxime Coquelin <[email protected]>Cc Patrice Chotard <[email protected]>Cc Patrick Delaunay <[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
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
-1gpio-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
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@@ -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
Alexandre TORGUE
maintainerQuoted 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@@ -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
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@@ -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
Alexandre TORGUE
maintainerQuoted 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@@ -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