sandbox: Add an alias for SPI
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 17:59:42 +0000 (11:59 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
At present 'sf probe' does not work since it cannot find SPI bus 0. Add
an alias to correct this, now that we no-longer have the --spi_sf option.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/sandbox.dts
arch/sandbox/dts/sandbox64.dts

index c0bdba94a7310174a4ed8efd0ec6a774c76d5f38..9a949791a0eba7eadaaf57461a6260738ea0bcc1 100644 (file)
@@ -10,6 +10,7 @@
                pci0 = &pci;
                rtc0 = &rtc_0;
                axi0 = &axi;
+               spi0 = &spi;
        };
 
        cros_ec: cros-ec {
@@ -48,7 +49,7 @@
                                0x01000000 0 0x20000000 0x20000000 0 0x2000>;
        };
 
-       spi@0 {
+       spi: spi@0 {
                u-boot,dm-pre-reloc;
                #address-cells = <1>;
                #size-cells = <0>;
index a263f78c957d83a605ed8627a1603842c5c0f8ce..da2b4423fdcccf4a95e56518dd2d9da5aebced1c 100644 (file)
@@ -10,6 +10,7 @@
                pci0 = &pci;
                rtc0 = &rtc_0;
                axi0 = &axi;
+               spi0 = &spi;
        };
 
        cros_ec: cros-ec {
@@ -48,7 +49,7 @@
                                0x01000000 0 0x20000000 0 0x20000000 0 0x2000>;
        };
 
-       spi@0 {
+       spi: spi@0 {
                u-boot,dm-pre-reloc;
                #address-cells = <1>;
                #size-cells = <0>;