]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sandbox/dts/sandbox.dts
sandbox: dts: Add a SPI device and cros_ec device
[karo-tx-uboot.git] / arch / sandbox / dts / sandbox.dts
index 797478a2c7f661294bb462d56d71048459652cd7..76147154c22366b7f70e5a95e83c8ea8ee3dfbe1 100644 (file)
@@ -1,6 +1,9 @@
 /dts-v1/;
 
 / {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
        chosen {
                stdout-path = "/serial";
        };
                num-gpios = <20>;
        };
 
+       spi@0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0>;
+               compatible = "sandbox,spi";
+               cs-gpios = <0>, <&gpio_a 0>;
+               flash@0 {
+                       reg = <0>;
+                       compatible = "spansion,m25p16", "sandbox,spi-flash";
+                       spi-max-frequency = <40000000>;
+                       sandbox,filename = "spi.bin";
+               };
+       };
+
+       cros-ec@0 {
+               compatible = "google,cros-ec";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               firmware_storage_spi: flash@0 {
+                       reg = <0 0x400000>;
+               };
+       };
+
 };