R: [PATCH v2] gpiolib: Disallow identical line names in the same chip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andy,

> On Thu, Jan 7, 2021 at 12:03 PM Flavio Suligoi <f.suligoi@xxxxxxx> wrote:
> 
> > > 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
> >
> > ok, I'll add this rule
> 
> Thanks!
> 
> Main point for calling you is that you may tell that what you also
> assumed when assigned line names in your case(s).

in the BIOS of some of our boards, I've added some gpio names
(using the ACPI tables) using only the existing rules written in:

Documentation/firmware-guide/acpi/gpio-properties.rst

and taking care not to duplicate the assigned name.

About the names used, I've created a "grammar" to describe,
using the 32 chars of the name, the user-space purpose of each gpio,
such as:

- use (button, generic in or out, etc.)
- polarity (active low/high)
- mode (level or edge)
- hw sharing (a gpio can be simultaneously used both from a user
              application and from an hw function)

> With Best Regards,
> Andy Shevchenko

Best regards,
Flavio Suligoi




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux