[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52b71fe7-d10a-4680-9549-ca55fd2e2864@lunn.ch>
Date: Tue, 8 Jul 2025 19:34:07 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Lizhe <sensor1010@....com>
Cc: 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, rmk+kernel@...linux.org.uk,
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: [PATCH] net: stmmac: Support gpio high-level reset for devices
requiring it
On Tue, Jul 08, 2025 at 09:50:44AM -0700, Lizhe wrote:
> some devices only reset when the GPIO is at a high level, but the
> current function lacks support for such devices. add high-level
> reset functionality to the function to support devices that require
> high-level triggering for reset
You can probably specify this in DT:
reset-gpios = <&qe_pio_e 18 GPIO_ACTIVE_LOW>;
The gpio core will then flip the meaning of
gpiod_set_value_cansleep(reset_gpio, 1);
such that a value of 1 will become low, 0 will become high.
Andrew
Powered by blists - more mailing lists