[<prev] [next>] [day] [month] [year] [list]
Message-ID: <05cd64a0-ec24-4ea0-9f57-8d8542563a51@lunn.ch>
Date: Wed, 9 Jul 2025 19:01:34 +0200
From: Andrew Lunn <andrew@...n.ch>
To: lizhe <sensor1010@....com>
Cc: "Russell King (Oracle)" <linux@...linux.org.uk>, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, mcoquelin.stm32@...il.com,
alexandre.torgue@...s.st.com, vladimir.oltean@....com,
maxime.chevallier@...tlin.com, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: Re: Re: Re: Re: [PATCH] net: stmmac: Support gpio high-level
reset for devices requiring it
On Thu, Jul 10, 2025 at 12:05:05AM +0800, lizhe wrote:
> Hi,
Please don't top post.
> snps, reset-gpio = <&gpioX RK_PXX GPIO_ACTIVE_HIGH>;
> All of them correctly parse the GPIO pin's state are described in the DTS
>
>
>
> Thx !
>
> Lizhe
>
>
>
>
> At 2025-07-09 22:29:46, "Russell King (Oracle)" <linux@...linux.org.uk> wrote:
> >On Wed, Jul 09, 2025 at 07:42:55PM +0800, lizhe wrote:
> >> Hi,
> >> i have already declared it in the DTS.
> >>
> >> &gmac {
> >> snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>;
> >> };
> >
> >Active high means that the reset is in effect when the output is at the
> >logic '1' state. So, gpiod_get_value*() will return the same as
> >gpiod_get_raw_value*().
> >
> >Active low means that the reset is in effect when the output is at the
> >logic '0' state, and in that case the return value of
> >gpiod_get_value*() will return true when the reset is active (at logic
> >'0' state) whereas gpiod_get_raw_value*() will return zero.
Did you read what Russell said? If so, why are you using
GPIO_ACTIVE_HIGH?
Andrew
Powered by blists - more mailing lists