sandbox: Make sandbox,emul more conventional
authorSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 13:01:16 +0000 (06:01 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:27 +0000 (19:23 +1300)
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@chromium.org>
arch/sandbox/dts/sandbox.dtsi
doc/driver-model/pci-info.rst

index dc933f3..7455c99 100644 (file)
                };
 
                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>;
                        };
                };
        };
index 8b9faa1..251601a 100644 (file)
@@ -125,6 +125,7 @@ emulator driver. For example::
                compatible = "sandbox,pci-emul-parent";
                emul_1f: emul@1f,0 {
                        compatible = "sandbox,swap-case";
+                       #emul-cells = <0>;
                };
        };