Re: [PATCH] nvmem: core: Mark nWP GPIO as non-exclusive
From: Marek Vasut
Date: Sat Jul 25 2026 - 02:22:16 EST
On 7/24/26 9:30 AM, Bartosz Golaszewski wrote:
Hello Bartosz,
Ah, HAVE_SHARED_GPIOS is what I did not have enabled. Is there any reason why this is not enabled by default ?I tried to look into the gpio-shared* , but I couldn't figure out how to
describe it in DT. Do you have any examples?
Take for example this DT snippet:
gpio: gpio-controller { ... };
i2c {
eeprom@0 {
wp-gpios = <&gpio 0 0>;
...
};
eeprom@1 {
wp-gpios = <&gpio 0 0>;
...
};
};
I assume there has to be some new glue node between the eeproms and the
GPIO controller somewhere ?
Thank you for your help !
No, this is literally how you do it. If you enable HAVE_SHARED_GPIOs and
DEBUG_GPIO, you should see it being picked up in the kernel log.
Thank you !