Re: [PATCH 2/2] docs: gpio-sim device-tree example with gpio-base

From: Linus Walleij
Date: Tue Jun 28 2022 - 09:01:30 EST


On Wed, Jun 22, 2022 at 5:54 PM Menglong Wu <menglongwoo@xxxxxxxxxx> wrote:

> Update gpio-sim module device-tree example with property
> 'gpio-base'
>
> Signed-off-by: Menglong Wu <menglongwoo@xxxxxxxxxx>

Linux-internal global GPIO numbers has no business in device tree
since other operating systems have no use for it.

Also Linux don't really want to use these bases either but want to
move away from it, see:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/TODO

Yours,
Linus Walleij