Re: [PATCH] nvmem: core: Mark nWP GPIO as non-exclusive
Marek Vasut <[email protected]> Fri, 24 Jul 2026 14:51:08 +0200
| Newsgroups | org.kernel.vger.linux-i2c,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 7/24/26 9:30 AM, Bartosz Golaszewski wrote:
Hello Bartosz,
>> 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.
Ah, HAVE_SHARED_GPIOS is what I did not have enabled. Is there any
reason why this is not enabled by default ?
Thank you !