On Fri, Jan 8, 2021 at 12:40 PM Flavio Suligoi <f.suligoi@xxxxxxx> wrote: > > Hi Andy, > > > Flavio, perhaps one more rule to the gpio-line-names property has to > > be added into documentation (Bart, same to DT docs?): > > - names inside one chip must be unique > > Just a question: why "inside one chip" only? > The name should be unique for all gpiochips, since "gpiofind" > stops at the first name match, and doesn't show other gpios > names, even if they exist, with the same name, in other gpiochip. > > I think that a rule as: > > - names must be unique (avoid duplicates in any gpiochips) Definitely "no". Simple case: you have 2+ chips of the same functionality. You want to use PinX of each of them. You always don't know ahead of time how many of them you will have at runtime. -- With Best Regards, Andy Shevchenko