1/dts-v1/; 2 3#define USB_CLASS_HUB 9 4 5/ { 6 #address-cells = <1>; 7 #size-cells = <1>; 8 9 aliases { 10 eth5 = "/eth@90000000"; 11 i2c0 = &i2c_0; 12 pci0 = &pci; 13 rtc0 = &rtc_0; 14 }; 15 16 chosen { 17 stdout-path = "/serial"; 18 }; 19 20 /* Needs to be available prior to relocation */ 21 uart0: serial { 22 compatible = "sandbox,serial"; 23 sandbox,text-colour = "cyan"; 24 }; 25 26 triangle { 27 compatible = "demo-shape"; 28 colour = "cyan"; 29 sides = <3>; 30 character = <83>; 31 light-gpios = <&gpio_a 2>, <&gpio_b 6 0>; 32 }; 33 square { 34 compatible = "demo-shape"; 35 colour = "blue"; 36 sides = <4>; 37 }; 38 hexagon { 39 compatible = "demo-simple"; 40 colour = "white"; 41 sides = <6>; 42 }; 43 44 cros_ec: cros-ec@0 { 45 reg = <0 0>; 46 compatible = "google,cros-ec-sandbox"; 47 48 /* 49 * This describes the flash memory within the EC. Note 50 * that the STM32L flash erases to 0, not 0xff. 51 */ 52 #address-cells = <1>; 53 #size-cells = <1>; 54 flash@8000000 { 55 reg = <0x08000000 0x20000>; 56 erase-value = <0>; 57 #address-cells = <1>; 58 #size-cells = <1>; 59 60 /* Information for sandbox */ 61 ro { 62 reg = <0 0xf000>; 63 }; 64 wp-ro { 65 reg = <0xf000 0x1000>; 66 }; 67 rw { 68 reg = <0x10000 0x10000>; 69 }; 70 }; 71 }; 72 73 lcd { 74 compatible = "sandbox,lcd-sdl"; 75 xres = <1366>; 76 yres = <768>; 77 }; 78 79 gpio_a: gpios@0 { 80 gpio-controller; 81 compatible = "sandbox,gpio"; 82 #gpio-cells = <1>; 83 gpio-bank-name = "a"; 84 num-gpios = <20>; 85 }; 86 87 gpio_b: gpios@1 { 88 gpio-controller; 89 compatible = "sandbox,gpio"; 90 #gpio-cells = <2>; 91 gpio-bank-name = "b"; 92 num-gpios = <10>; 93 }; 94 95 i2c_0: i2c@0 { 96 #address-cells = <1>; 97 #size-cells = <0>; 98 reg = <0 0>; 99 compatible = "sandbox,i2c"; 100 clock-frequency = <400000>; 101 eeprom@2c { 102 reg = <0x2c>; 103 compatible = "i2c-eeprom"; 104 emul { 105 compatible = "sandbox,i2c-eeprom"; 106 sandbox,filename = "i2c.bin"; 107 sandbox,size = <128>; 108 }; 109 }; 110 111 rtc_0: rtc@43 { 112 reg = <0x43>; 113 compatible = "sandbox-rtc"; 114 emul { 115 compatible = "sandbox,i2c-rtc"; 116 }; 117 }; 118 sandbox_pmic: sandbox_pmic { 119 reg = <0x40>; 120 }; 121 }; 122 123 spi@0 { 124 #address-cells = <1>; 125 #size-cells = <0>; 126 reg = <0 0>; 127 compatible = "sandbox,spi"; 128 cs-gpios = <0>, <&gpio_a 0>; 129 firmware_storage_spi: flash@0 { 130 reg = <0>; 131 compatible = "spansion,m25p16", "sandbox,spi-flash"; 132 spi-max-frequency = <40000000>; 133 sandbox,filename = "spi.bin"; 134 }; 135 }; 136 137 pci: pci-controller { 138 compatible = "sandbox,pci"; 139 device_type = "pci"; 140 #address-cells = <3>; 141 #size-cells = <2>; 142 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 143 0x01000000 0 0x20000000 0x20000000 0 0x2000>; 144 pci@1f,0 { 145 compatible = "pci-generic"; 146 reg = <0xf800 0 0 0 0>; 147 emul@1f,0 { 148 compatible = "sandbox,swap-case"; 149 }; 150 }; 151 }; 152 153 eth@10002000 { 154 compatible = "sandbox,eth"; 155 reg = <0x10002000 0x1000>; 156 fake-host-hwaddr = [00 00 66 44 22 00]; 157 }; 158 159 eth@80000000 { 160 compatible = "sandbox,eth-raw"; 161 reg = <0x80000000 0x1000>; 162 host-raw-interface = "eth0"; 163 }; 164 165 eth@90000000 { 166 compatible = "sandbox,eth-raw"; 167 reg = <0x90000000 0x1000>; 168 host-raw-interface = "lo"; 169 }; 170 171 usb@0 { 172 compatible = "sandbox,usb"; 173 status = "disabled"; 174 hub { 175 compatible = "sandbox,usb-hub"; 176 #address-cells = <1>; 177 #size-cells = <0>; 178 flash-stick { 179 reg = <0>; 180 compatible = "sandbox,usb-flash"; 181 }; 182 }; 183 }; 184 185 usb@1 { 186 compatible = "sandbox,usb"; 187 hub { 188 compatible = "usb-hub"; 189 usb,device-class = <USB_CLASS_HUB>; 190 hub-emul { 191 compatible = "sandbox,usb-hub"; 192 #address-cells = <1>; 193 #size-cells = <0>; 194 flash-stick { 195 reg = <0>; 196 compatible = "sandbox,usb-flash"; 197 sandbox,filepath = "flash.bin"; 198 }; 199 }; 200 }; 201 }; 202 203 usb@2 { 204 compatible = "sandbox,usb"; 205 status = "disabled"; 206 }; 207 208}; 209 210#include "cros-ec-keyboard.dtsi" 211#include "sandbox_pmic.dtsi" 212