[PATCH] net: stmmac: Support gpio high-level reset for devices requiring it
Russell King (Oracle)
linux at armlinux.org.uk
Wed Jul 9 07:29:46 PDT 2025
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.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list