[PATCH v2 0/5] rsk7203: switch to using static device property, drop legacy gpio API
Dmitry Torokhov <[email protected]>
| Newsgroups | gmane.linux.kernel.renesas-soc,gmane.linux.ports.sh.devel,gmane.linux.kernel,gmane.linux.kernel.gpio |
|---|---|
| Message-ID | <[email protected]> |
This series of patches converts rsk7203 to use static device properties for its devices, including gpio-keys and gpio-leds, and removing dependency on legacy gpio API (in favor of gpiod API). To configure pin functions the board is switched to use gpio-hogs, as doing full conversion to pinmux is too challenging without access to hardware. v2: - Added a patch to isolate the function gpiochip from the parent fwnode to prevent ambiguous property lookups - Added a patch attaching a software node to the main PFC gpiochip device - Adjusted the board setup to use the PFC's software node for LEDs and GPIO keys instead of creating a standalone node - Added support to sh-pfc for configuring the secondary "function" gpiochip via a "functions" child software node. - Converted board pin configuration from legacy gpio_request() to GPIO hogs, using postcore_initcall to ensure nodes are available during driver probe. v1: http://lore.kernel.org/r/jwtdoptatzfo47mbpmmjwhhhjn4mbw6ekp4gtoopca7azbcelo@uvtz4w2ga5qn Signed-off-by: Dmitry Torokhov <[email protected]> --- Dmitry Torokhov (5): pinctrl: renesas: gpio: isolate function gpiochip from parent fwnode sh: pfc: attach software node to the GPIO chip sh: mach-rsk: rsk7203: use static device properties for LEDs and GPIO buttons pinctrl: renesas: gpio: support software nodes for function GPIOs sh: mach-rsk: rsk7203: convert pin configuration to using software nodes arch/sh/boards/mach-rsk/devices-rsk7203.c | 282 ++++++++++++++++++++++-------- arch/sh/include/cpu-common/cpu/pfc.h | 3 + arch/sh/kernel/cpu/pfc.c | 20 ++- drivers/pinctrl/renesas/gpio.c | 28 +++ 4 files changed, 254 insertions(+), 79 deletions(-) --- base-commit: 6a50ba100ace43f43c87384367eb2d2605fcc16c change-id: 20260310-rsk7203-properties-82bf2c12b985 Thanks. -- Dmitry