On Wed, Nov 16, 2022 at 10:40:19AM +0000, Niyas Sait wrote: > On 16/11/2022 09:56, Andy Shevchenko wrote: > > The GPIO to pin mapping is done by GPIO ranges. This can be made up in the > > driver or, IIRC, in DT (so in ACPI) by already registered properties). > > > > Not sure, why you don't use them. > > OK. I might have missed it. > > In DT, gpio-ranges property is used to describe the mapping, I could not > find equivalent property in GPIO ACPI properties - > https://www.kernel.org/doc/html/latest/firmware-guide/acpi/gpio-properties.html It's the same. You just need to check the code of GPIO library to make sure that it uses fwnode / device property APIs, so it will be parsed in ACPI case as well. -- With Best Regards, Andy Shevchenko