The IO expander test only checks the I2C bus of IO expander 0. The I2C buses of IO expander 1 are not tested, so a wrong interrupt wiring for IO expander 1 can not be detected.
Add a TMP105 device on the first I2C bus of IO expander 1 and check that it can be read from firmware. Signed-off-by: Jamin Lin <[email protected]> --- tests/functional/aarch64/test_aspeed_ast2700a2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/functional/aarch64/test_aspeed_ast2700a2.py b/tests/functional/aarch64/test_aspeed_ast2700a2.py index 01c7c4fdbe..74ef93fc0d 100755 --- a/tests/functional/aarch64/test_aspeed_ast2700a2.py +++ b/tests/functional/aarch64/test_aspeed_ast2700a2.py @@ -196,10 +196,13 @@ def test_aarch64_ast2700a2_evb_ioexp_v11_03(self): self.vm.set_machine('ast2700a2-evb,fmc-model=w25q512jv') self.vm.add_args('-device', 'tmp105,bus=ioexp0.0,address=0x4d,id=tmp-test-16') + self.vm.add_args('-device', + 'tmp105,bus=ioexp1.0,address=0x4d,id=tmp-test-32') self.start_ast2700_test('ast2700-dcscm-image', 8) self.verify_openbmc_boot_and_login('ast2700-dcscm', False) self.do_ast2700_i2c_test(8) self.do_ast2700_i2c_test(16) + self.do_ast2700_i2c_test(32) if __name__ == '__main__': QemuSystemTest.main() -- 2.43.0
