[PATCH v2 28/33] sandbox: Make sandbox,emul more conventional
Simon Glass
sjg at chromium.org
Wed Feb 3 14:01:16 CET 2021
At present this property is a phandle but does not have a #xxx-cells
property to match it. Add one so that is works the same as gpio and clock
phandles.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
arch/sandbox/dts/sandbox.dtsi | 6 +++++-
doc/driver-model/pci-info.rst | 1 +
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi
index dc933f3bfc7..7455c99a739 100644
--- a/arch/sandbox/dts/sandbox.dtsi
+++ b/arch/sandbox/dts/sandbox.dtsi
@@ -101,15 +101,19 @@
};
i2c_emul: emul {
+ u-boot,dm-pre-reloc;
reg = <0xff>;
compatible = "sandbox,i2c-emul-parent";
emul_eeprom: emul-eeprom {
compatible = "sandbox,i2c-eeprom";
sandbox,filename = "i2c.bin";
sandbox,size = <256>;
+ #emul-cells = <0>;
};
emul0: emul0 {
- compatible = "sandbox,i2c-rtc";
+ u-boot,dm-pre-reloc;
+ compatible = "sandbox,i2c-rtc-emul";
+ #emul-cells = <0>;
};
};
};
diff --git a/doc/driver-model/pci-info.rst b/doc/driver-model/pci-info.rst
index 8b9faa10663..251601a51e3 100644
--- a/doc/driver-model/pci-info.rst
+++ b/doc/driver-model/pci-info.rst
@@ -125,6 +125,7 @@ emulator driver. For example::
compatible = "sandbox,pci-emul-parent";
emul_1f: emul at 1f,0 {
compatible = "sandbox,swap-case";
+ #emul-cells = <0>;
};
};
--
2.30.0.365.g02bc693789-goog
More information about the U-Boot
mailing list