[PATCH 0/3] gpio: Add AST2[456]00 GPIO driver

Andrew Jeffery andrew at aj.id.au
Wed Feb 16 00:56:55 CET 2022


Hello,

This series adds support for the GPIO controller found in Aspeed's
AST2400, AST2500 and AST2600 BMC SoCs.

By and large I've just extracted the work from Aspeed's SDK and
submitted it. However, the driver as found in the SDK was in-turn
extracted from Linux, cut down and adapted to u-boot. I've adjusted the
copyright to reflect this (as found in Linux) after discussion with Troy
and Ryan.

>From there I've polished the patch in accordance with checkpatch and
done some tweaks to improve consistency with the kernel driver (mainly
the file name).

I've lightly tested the driver as-presented under qemu. That said, as
the code has been lifted from Aspeed's SDK (and in-turn from Linux) the
implementation has seen much wider testing.

Please review!

Andrew

Andrew Jeffery (3):
  gpio: Add Aspeed GPIO driver
  ARM: dts: ast2500: Add ngpios property to GPIO node
  configs: evb-ast2[56]00: Enable GPIO control

 arch/arm/dts/ast2500.dtsi     |   1 +
 configs/evb-ast2500_defconfig |   3 +
 configs/evb-ast2600_defconfig |   3 +
 drivers/gpio/Kconfig          |   7 +
 drivers/gpio/Makefile         |   1 +
 drivers/gpio/gpio-aspeed.c    | 299 ++++++++++++++++++++++++++++++++++
 6 files changed, 314 insertions(+)
 create mode 100644 drivers/gpio/gpio-aspeed.c

-- 
2.32.0



More information about the U-Boot mailing list