diff mbox series

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

Message ID 20201229175521.268234-1-marex@denx.de (mailing list archive)
State New, archived
Headers show
Series [1/2] ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX | expand

Commit Message

Marek Vasut Dec. 29, 2020, 5:55 p.m. UTC
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")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
---
 arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexandre TORGUE Jan. 14, 2021, 3:11 p.m. UTC | #1
Hi Marek

On 12/29/20 6:55 PM, Marek Vasut wrote:
> 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")
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Alexandre Torgue <alexandre.torgue@st.com>
> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
> Cc: Patrice Chotard <patrice.chotard@st.com>
> Cc: Patrick Delaunay <patrick.delaunay@st.com>
> Cc: linux-stm32@st-md-mailman.stormreply.com
> To: linux-arm-kernel@lists.infradead.org
> ---
>   arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
> index 25528a1c096f..757707766fa0 100644
> --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
> +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
> @@ -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

>   		gpio-hog;
> -		gpios = <13 GPIO_ACTIVE_LOW>;
> +		gpios = <13 0>;
>   		output-low;
>   		line-name = "usb-port-power";
>   	};
>
Marek Vasut Jan. 14, 2021, 5:08 p.m. UTC | #2
On 1/14/21 4:11 PM, Alexandre TORGUE wrote:
> Hi Marek

Hi,

[...]

>> diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi 
>> b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>> index 25528a1c096f..757707766fa0 100644
>> --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>> +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>> @@ -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.
Alexandre TORGUE Jan. 14, 2021, 5:11 p.m. UTC | #3
On 1/14/21 6:08 PM, Marek Vasut wrote:
> On 1/14/21 4:11 PM, Alexandre TORGUE wrote:
>> Hi Marek
> 
> Hi,
> 
> [...]
> 
>>> diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi 
>>> b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>> index 25528a1c096f..757707766fa0 100644
>>> --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>> +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>> @@ -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.

Yes I just saw this one. It doesn't contain a fixes tag, I can add the 
same than for other hog patches ?
Marek Vasut Jan. 14, 2021, 5:13 p.m. UTC | #4
On 1/14/21 6:11 PM, Alexandre TORGUE wrote:
> 
> 
> On 1/14/21 6:08 PM, Marek Vasut wrote:
>> On 1/14/21 4:11 PM, Alexandre TORGUE wrote:
>>> Hi Marek
>>
>> Hi,
>>
>> [...]
>>
>>>> diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi 
>>>> b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>>> index 25528a1c096f..757707766fa0 100644
>>>> --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>>> +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>>> @@ -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.
> 
> 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
Alexandre TORGUE Jan. 14, 2021, 5:37 p.m. UTC | #5
On 1/14/21 6:13 PM, Marek Vasut wrote:
> On 1/14/21 6:11 PM, Alexandre TORGUE wrote:
>>
>>
>> On 1/14/21 6:08 PM, Marek Vasut wrote:
>>> On 1/14/21 4:11 PM, Alexandre TORGUE wrote:
>>>> Hi Marek
>>>
>>> Hi,
>>>
>>> [...]
>>>
>>>>> diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi 
>>>>> b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>>>> index 25528a1c096f..757707766fa0 100644
>>>>> --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>>>> +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
>>>>> @@ -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.
>>
>> 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
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
index 25528a1c096f..757707766fa0 100644
--- a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
+++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi
@@ -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";
 	};