[PATCH v2 06/10] gpio: a733: add initial support

Tom Rini trini at konsulko.com
Mon Dec 1 01:01:25 CET 2025


On Sun, Nov 30, 2025 at 09:45:15PM +0000, Yixun Lan wrote:

> In A733 SoC, the GPIO IP block has changed its arrangement, so initial
> GPIO base address and bank size need to be adjusted.
> 
> Introduce new SUNXI_NEW2_PINCTRL in order to reuse the driver in future.
> 
> There is no PA bank exist in A733, but introducing a virtual one as offset
> 0x80, and with the bank size 0x80, it will iterate other bank correctly
> starting from PB as offset 0x100.
> 
> Signed-off-by: Yixun Lan <dlan at gentoo.org>

So, looking at:

commit 452369cd0c636123321d021298b4bc35a34f4941
Author: Andre Przywara <andre.przywara at arm.com>
Date:   Tue Sep 6 12:12:50 2022 +0100

    pinctrl: sunxi: add new D1 pinctrl support
    
    For the first time since at least the Allwinner A10 SoCs, the D1 (and
    related cores) use a new pincontroller MMIO register layout, so we
    cannot use our hardcoded, fixed offsets anymore.
    Ideally this would all be handled by devicetree and DM drivers, but for
    the DT-less SPL we still need the legacy interfaces.
    
    Add a new Kconfig symbol to differenciate between the two generations of
    pincontrollers, and just use that to just switch some basic symbols.
    The rest is already abstracted enough, so works out of the box.
    
    Signed-off-by: Andre Przywara <andre.przywara at arm.com>
    Reviewed-by: Sam Edwards <CFSworks at gmail.com>
    Tested-by: Sam Edwards <CFSworks at gmail.com>
    Tested-by: Samuel Holland <samuel at sholland.org>

Is there some way to abstract things so that again, non-SPL has a single
driver, and for SPL we can just hard-code a few things?

-- 
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/20251130/88e9d0ec/attachment.sig>


More information about the U-Boot mailing list