ppc/pnv: Test pnv i2c master and connected devices
commit4d2cd2d8697164927620fe31f46f4a67e86c4f5f
authorGlenn Miles <milesg@linux.vnet.ibm.com>
Mon, 5 Feb 2024 07:40:17 +0000 (5 17:40 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Fri, 23 Feb 2024 13:24:42 +0000 (23 23:24 +1000)
tree01c913e3c91bc580b0d4a93f00fd6f041574eb37
parent6aa4ef32cc06e3846cb1b81d98211ceb96bdfea6
ppc/pnv: Test pnv i2c master and connected devices

Tests the following for both P9 and P10:
  - I2C master POR status
  - I2C master status after immediate reset

Tests the following for powernv10-ranier only:
  - Config pca9552 hotplug device pins as inputs then
    Read the INPUT0/1 registers to verify all pins are high
  - Connected GPIO pin tests of P10 PCA9552 device.  Tests
    output of pins 0-4 affect input of pins 5-9 respectively.
  - PCA9554 GPIO pins test.  Tests input and ouput functionality.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Glenn Miles <milesg@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv_i2c.c
include/hw/i2c/pnv_i2c_regs.h [new file with mode: 0644]
tests/qtest/meson.build
tests/qtest/pnv-host-i2c-test.c [new file with mode: 0644]
tests/qtest/pnv-xscom-test.c
tests/qtest/pnv-xscom.h [new file with mode: 0644]