linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC v2 0/3] pinctrl: add ACPI support to pin controller
@ 2022-11-15 17:54 Niyas Sait
  2022-11-15 17:54 ` [PATCH RFC v2 1/3] pinctrl: add support for ACPI PinGroup resource Niyas Sait
                   ` (4 more replies)
  0 siblings, 5 replies; 25+ messages in thread
From: Niyas Sait @ 2022-11-15 17:54 UTC (permalink / raw)
  To: linux-gpio, andriy.shevchenko, mika.westerberg, rafael,
	linus.walleij
  Cc: Niyas Sait

This is a proposal for adding ACPI support to pin controller.

The patch supports following resources introduced in ACPI from v6.2

- PinFunction
- PinConfig
- PinGroupFunction
- PinGroupConfig
- PinGroup

The patch has been tested on NXP I.MX8MP Plus platform with ACPI.

--
V2: 1, Fix styling issues pointed out by Mika Westerberg
    2, Added a new interface to free pin group descriptor
    3, Added vendor length to the descriptors
    4, Reworked map_config_acpi_to_general to pass an error value
    5, Few refactoring to keep functions shorter
    6, Dropped new generic pinconf types added in v1

Niyas Sait (3):
  pinctrl: add support for ACPI PinGroup resource
  pinconf-generic: clarify pull up and pull down config values
  pinctrl: add support for ACPI pin function and config resources

 drivers/pinctrl/Makefile                |   1 +
 drivers/pinctrl/core.c                  |  18 +-
 drivers/pinctrl/core.h                  |   3 +
 drivers/pinctrl/pinctrl-acpi.c          | 542 ++++++++++++++++++++++++
 drivers/pinctrl/pinctrl-acpi.h          |  78 ++++
 include/linux/pinctrl/pinconf-generic.h |   6 +-
 include/linux/pinctrl/pinctrl.h         |  15 +
 7 files changed, 657 insertions(+), 6 deletions(-)
 create mode 100644 drivers/pinctrl/pinctrl-acpi.c
 create mode 100644 drivers/pinctrl/pinctrl-acpi.h

-- 
2.25.1


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2022-11-17 15:13 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 17:54 [PATCH RFC v2 0/3] pinctrl: add ACPI support to pin controller Niyas Sait
2022-11-15 17:54 ` [PATCH RFC v2 1/3] pinctrl: add support for ACPI PinGroup resource Niyas Sait
2022-11-16  9:41   ` Mika Westerberg
2022-11-17 13:28     ` Niyas Sait
2022-11-17 15:08       ` Mika Westerberg
2022-11-15 17:54 ` [PATCH RFC v2 2/3] pinconf-generic: clarify pull up and pull down config values Niyas Sait
2022-11-17  9:30   ` Linus Walleij
2022-11-17 10:37     ` Andy Shevchenko
2022-11-17 10:39       ` Andy Shevchenko
2022-11-17 11:53         ` Niyas Sait
2022-11-17 12:36           ` Andy Shevchenko
2022-11-15 17:54 ` [PATCH RFC v2 3/3] pinctrl: add support for ACPI pin function and config resources Niyas Sait
2022-11-16  9:57   ` Mika Westerberg
2022-11-15 18:12 ` [PATCH RFC v2 0/3] pinctrl: add ACPI support to pin controller Andy Shevchenko
2022-11-15 18:29   ` Niyas Sait
2022-11-15 18:47     ` Andy Shevchenko
2022-11-15 19:15       ` Niyas Sait
2022-11-16 10:16         ` Andy Shevchenko
2022-11-16 10:27           ` Niyas Sait
2022-11-16  9:50       ` Niyas Sait
2022-11-16  9:56         ` Andy Shevchenko
2022-11-16 10:40           ` Niyas Sait
2022-11-16 13:27             ` Andy Shevchenko
2022-11-16 13:38               ` Andy Shevchenko
2022-11-16 10:17 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).