diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi index 8a115c503dc..02b03894eaf 100644 --- a/arch/sandbox/dts/sandbox.dtsi +++ b/arch/sandbox/dts/sandbox.dtsi @@ -135,7 +135,7 @@ sandbox,emul = <&emul0>; bootph-pre-ram; }; - sandbox_pmic: sandbox_pmic { + sandbox_pmic: sandbox_pmic@40 { reg = <0x40>; }; @@ -143,9 +143,9 @@ reg = <0x41>; }; - i2c_emul: emul { + i2c_emul: emul@7f { bootph-pre-ram; - reg = <0xff>; + reg = <0x7f>; compatible = "sandbox,i2c-emul-parent"; emul_eeprom: emul-eeprom { compatible = "sandbox,i2c-eeprom"; diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 0b3fc505e53..bb17a687862 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -947,8 +947,8 @@ sandbox,emul = <&emul1>; }; - i2c_emul: emul { - reg = <0xff>; + i2c_emul: emul@7f { + reg = <0x7f>; compatible = "sandbox,i2c-emul-parent"; emul_eeprom: emul-eeprom { compatible = "sandbox,i2c-eeprom"; @@ -963,7 +963,7 @@ }; }; - sandbox_pmic: sandbox_pmic { + sandbox_pmic: sandbox_pmic@40 { reg = <0x40>; sandbox,emul = <&emul_pmic0>; }; diff --git a/test/dm/pmic.c b/test/dm/pmic.c index 70dd18f5df0..b163b8e315d 100644 --- a/test/dm/pmic.c +++ b/test/dm/pmic.c @@ -39,7 +39,7 @@ static inline int power_pmic_get(struct unit_test_state *uts, char *name) /* Test PMIC get method */ static int dm_test_power_pmic_get(struct unit_test_state *uts) { - power_pmic_get(uts, "sandbox_pmic"); + power_pmic_get(uts, "sandbox_pmic@40"); return 0; } @@ -57,7 +57,7 @@ DM_TEST(dm_test_power_pmic_mc34708_get, UTF_SCAN_FDT); /* Test PMIC I/O */ static int dm_test_power_pmic_io(struct unit_test_state *uts) { - const char *name = "sandbox_pmic"; + const char *name = "sandbox_pmic@40"; uint8_t out_buffer, in_buffer; struct udevice *dev; int reg_count, i;