[PATCH v2 0/6] pinctrl: add support of Airoha SoCs
Mikhail Kshevetskiy
mikhail.kshevetskiy at iopsys.eu
Tue Apr 28 17:34:42 CEST 2026
This patch series add pin controller and gpio driver support for EN7523/
AN7581/AN7583 SoCs. The driver based on official linux airoha pinctrl and
gpio driver with Matheus Sampaio Queiroga <srherobrine20 at gmail.com> changes.
The changes:
* Separate code for each SoC and keep some of the functions in
common between them,
* Add pinctrl driver for EN7523 SoC.
The original Matheus Sampaio Queiroga driver can be taken from the repo:
https://sirherobrine23.com.br/airoha_an7523/kernel/commits/branch/airoha_an7523_pinctrl
Additionally in the EN7523 case the patches removes existing gpio dts nodes
and replaces them with pinctrl node. It should not be very dangerous, because:
* No official EN7523 gpio support present in U-Boot
* Legacy Linux EN7523 GPIO driver is mostly abandoned
* The same driver is planned for upstream linux/openwrt
The patches were tested on EN7523/AN7581/AN7583 boards.
Changes v2:
* pinctrl driver was split on common and per SoC parts
* EN7523 SoC support was added
* EN7523/AN7581 defconfigs were updated to activate
pinctrl/gpio support
* Board/SoC independent pinconf/pinctrl definitions
were moved to global includes
Mikhail Kshevetskiy (6):
pinctrl: add missed pinconf/pinctrl definitions
pinctrl: airoha: add pin controller and gpio driver for AN7581 SoC
pinctrl: airoha: add pin controller and gpio driver for AN7583 SoC
pinctrl: airoha: add pin controller and gpio driver for EN7523 SoC
configs: airoha: an7581: enable pinctrl/gpio support
configs: airoha: en7523: enable pinctrl/gpio support
arch/arm/dts/en7523-u-boot.dtsi | 21 +
configs/an7581_evb_defconfig | 1 +
configs/en7523_evb_defconfig | 1 +
drivers/pinctrl/Kconfig | 1 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/airoha/Kconfig | 26 +
drivers/pinctrl/airoha/Makefile | 7 +
drivers/pinctrl/airoha/airoha-common.h | 513 +++++++++++
drivers/pinctrl/airoha/pinctrl-airoha.c | 691 +++++++++++++++
drivers/pinctrl/airoha/pinctrl-an7581.c | 1060 +++++++++++++++++++++++
drivers/pinctrl/airoha/pinctrl-an7583.c | 966 +++++++++++++++++++++
drivers/pinctrl/airoha/pinctrl-en7523.c | 627 ++++++++++++++
include/dm/pinctrl.h | 28 +
include/linux/pinctrl/pinctrl.h | 74 ++
14 files changed, 4017 insertions(+)
create mode 100644 drivers/pinctrl/airoha/Kconfig
create mode 100644 drivers/pinctrl/airoha/Makefile
create mode 100644 drivers/pinctrl/airoha/airoha-common.h
create mode 100644 drivers/pinctrl/airoha/pinctrl-airoha.c
create mode 100644 drivers/pinctrl/airoha/pinctrl-an7581.c
create mode 100644 drivers/pinctrl/airoha/pinctrl-an7583.c
create mode 100644 drivers/pinctrl/airoha/pinctrl-en7523.c
create mode 100644 include/linux/pinctrl/pinctrl.h
--
2.53.0
More information about the U-Boot
mailing list