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 <[email protected]>
---
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


Reply via email to