Re: [PATCH v2 1/1] gpio-f7188x: fix base values conflicts with other gpio pins
From: Linus Walleij
Date: Tue May 30 2023 - 07:41:07 EST
On Mon, May 29, 2023 at 3:56 PM <simon.guinot@xxxxxxxxxxxx> wrote:
> This way the assignation would be dynamic and the pin numbers found in
> controller datasheet would be meaningful as well.
I always had in my mind that this is what you should use the
.dbg_show() callback in struct gpio_chip for.
It is for debugging, not ABI and cross-referencing datasheets is definitely
debugging, so use that and look in /proc/sys/kernel/debug/gpio
for the data you want for cross-referencing.
Yours,
Linus Walleij