quoted
+ priv->config.reset_gpio =
+ devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
(...)
quoted
- reset_n_io = of_get_named_gpio(node, "reset-n-io", 0);
This isn't gonna work, sadly. The property is named "reset-n-io"
in the device tree, not "reset-gpios".
To handle this, add code to drivers/gpio/gpiolib-of.c in the
of_find_gpio_rename() function to make it pretend this
custom property is handled as "reset-gpios".
I see, thanks for pointing that out!
Seem that, the rename quirk for "reset-n-io" -> "reset" is already
present in gpiolib-of.c, added by commit 9c2cc7171e08 ("gpiolib:
of: add a quirk for reset line for Marvell NFC controller").
Best regards,
Jialu Xu