[PATCH 0/2] hw/gpio/pca9552: add pca9535 support

Patrick Williams posted 2 patches 2 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260121-pca9535-v1-0-164640e622ff@stwcx.xyz
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Steven Lee <steven_lee@aspeedtech.com>, Troy Lee <leetroy@gmail.com>, Jamin Lin <jamin_lin@aspeedtech.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>, Glenn Miles <milesg@linux.ibm.com>
hw/arm/aspeed_ast2600_catalina.c |   4 +-
hw/gpio/pca9552.c                | 176 +++++++++++++++++++++++++++------------
include/hw/gpio/pca9552.h        |   1 +
include/hw/gpio/pca9552_regs.h   |  10 +++
4 files changed, 135 insertions(+), 56 deletions(-)
[PATCH 0/2] hw/gpio/pca9552: add pca9535 support
Posted by Patrick Williams 2 weeks, 2 days ago
Add support in the PCA9552 model for the PCA9535 and leverage it in
the catalina system model, which has a PCA9535 rather than a PCA9552.

We presently have two PCA95xx chips modelled:
    - PCA9552: A 16-bit LED + GPIO controller.
    - PCA9554: An 8-bit GPIO controller.

PCA9535 is a 16-bit GPIO controller.  I considered creating a new model,
extending PCA9552, or extending PCA9554.  The least code change seemed
to be extending PCA9552 but I could take another approach if desired.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
---
Patrick Williams (2):
      hw/gpio/pca9552: add pca9535 support
      hw/arm/aspeed: catalina: use pca9535

 hw/arm/aspeed_ast2600_catalina.c |   4 +-
 hw/gpio/pca9552.c                | 176 +++++++++++++++++++++++++++------------
 include/hw/gpio/pca9552.h        |   1 +
 include/hw/gpio/pca9552_regs.h   |  10 +++
 4 files changed, 135 insertions(+), 56 deletions(-)
---
base-commit: 2339d0a1cfac6ecc667e6e062a593865c1541c35
change-id: 20260121-pca9535-3809777826b6

Best regards,
-- 
Patrick Williams