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