[PATCH v5 06/11] pinctrl: airoha: add pin controller and gpio driver for AN7581 SoC

Tom Rini trini at konsulko.com
Wed May 13 15:56:06 CEST 2026


On Wed, May 13, 2026 at 01:30:47PM +0200, Benjamin Larsson wrote:
> Hi.
> 
> On 13/05/2026 01:42, David Lechner wrote:
> > On 5/9/26 6:11 AM, Mikhail Kshevetskiy wrote:
> > > This patch adds U-Boot pin controller and gpio driver for Airoha AN7581 SoC.
> > > 
> > > Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
> > > ---
> > >   drivers/pinctrl/airoha/Kconfig          |    5 +
> > >   drivers/pinctrl/airoha/Makefile         |    2 +
> > >   drivers/pinctrl/airoha/pinctrl-an7581.c | 1076 +++++++++++++++++++++++
> > >   3 files changed, 1083 insertions(+)
> > >   create mode 100644 drivers/pinctrl/airoha/pinctrl-an7581.c
> > > 
> > > diff --git a/drivers/pinctrl/airoha/Kconfig b/drivers/pinctrl/airoha/Kconfig
> > > index eb87afbb374..986d23c2e3d 100644
> > > --- a/drivers/pinctrl/airoha/Kconfig
> > > +++ b/drivers/pinctrl/airoha/Kconfig
> > > @@ -9,3 +9,8 @@ config PINCTRL_AIROHA
> > >   	select REGMAP
> > >   	select SYSCON
> > >   	bool
> > > +
> > > +config PINCTRL_AIROHA_AN7581
> > > +	tristate "AN7581 pin controller and gpio driver"
> > > +	depends on TARGET_AN7581
> > > +	select PINCTRL_AIROHA
> > > diff --git a/drivers/pinctrl/airoha/Makefile b/drivers/pinctrl/airoha/Makefile
> > > index a25b744dd7a..909bd9a04d9 100644
> > > --- a/drivers/pinctrl/airoha/Makefile
> > > +++ b/drivers/pinctrl/airoha/Makefile
> > > @@ -1,3 +1,5 @@
> > >   # SPDX-License-Identifier: GPL-2.0
> > >   obj-$(CONFIG_PINCTRL_AIROHA)		+= pinctrl-airoha.o
> > > +
> > > +obj-$(CONFIG_PINCTRL_AIROHA_AN7581)	+= pinctrl-an7581.o
> > > diff --git a/drivers/pinctrl/airoha/pinctrl-an7581.c b/drivers/pinctrl/airoha/pinctrl-an7581.c
> > > new file mode 100644
> > > index 00000000000..606e042b069
> > > --- /dev/null
> > > +++ b/drivers/pinctrl/airoha/pinctrl-an7581.c
> > > @@ -0,0 +1,1076 @@
> > > +// SPDX-License-Identifier: GPL-2.0-only
> > > +/*
> > > + * Author: Lorenzo Bianconi <lorenzo at kernel.org>
> > > + * Author: Benjamin Larsson <benjamin.larsson at genexis.eu>
> > > + * Author: Markus Gothe <markus.gothe at genexis.eu>
> > > + */
> > > +#include "airoha-common.h"
> > > +
> > It still throws me off that the en7581_ prefix is not the same
> > as the file name/driver name/config symbol name. If en7581
> > is preferred, can we change everything (an7581) to match?
> 
> The physical chip is marked AN7581 but I have seen some old EN7581 uses in
> Airoha(Econet) material. I'm not really happy with this situation but for
> some reason the en7581 name has been pushed for this SoC in mainline kernel
> code.
> 
> Ideally linux and uboot should use the same naming but I'm fine with
> whatever gets code landing upstream.

I agree consistent naming with the linux kernel is important here.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260513/13a3314b/attachment.sig>


More information about the U-Boot mailing list