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 | |
| 20 | /* Needs to be available prior to relocation */ |
| 21 | uart0: serial { |
| 22 | compatible = "sandbox,serial"; |
| 23 | sandbox,text-colour = "cyan"; |
| 24 | }; |
| 25 | |
Simon Glass | 714a562 | 2014-02-26 15:59:14 -0700 | [diff] [blame] | 26 | triangle { |
| 27 | compatible = "demo-shape"; |
| 28 | colour = "cyan"; |
| 29 | sides = <3>; |
| 30 | character = <83>; |
Simon Glass | a02af4a | 2015-01-05 20:05:31 -0700 | [diff] [blame] | 31 | light-gpios = <&gpio_a 2>, <&gpio_b 6 0>; |
Simon Glass | 714a562 | 2014-02-26 15:59:14 -0700 | [diff] [blame] | 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 | }; |
Simon Glass | 39741c0 | 2014-02-27 13:25:59 -0700 | [diff] [blame] | 43 | |
Simon Glass | 3fbb787 | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 44 | cros_ec: cros-ec@0 { |
| 45 | reg = <0 0>; |
| 46 | compatible = "google,cros-ec-sandbox"; |
Simon Glass | 39741c0 | 2014-02-27 13:25:59 -0700 | [diff] [blame] | 47 | |
Simon Glass | 3fbb787 | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 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>; |
Simon Glass | 39741c0 | 2014-02-27 13:25:59 -0700 | [diff] [blame] | 57 | #address-cells = <1>; |
| 58 | #size-cells = <1>; |
Simon Glass | 39741c0 | 2014-02-27 13:25:59 -0700 | [diff] [blame] | 59 | |
Simon Glass | 3fbb787 | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 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>; |
Simon Glass | 39741c0 | 2014-02-27 13:25:59 -0700 | [diff] [blame] | 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | lcd { |
| 74 | compatible = "sandbox,lcd-sdl"; |
Simon Glass | 3a812e7 | 2015-05-04 11:31:12 -0600 | [diff] [blame] | 75 | xres = <1366>; |
| 76 | yres = <768>; |
Simon Glass | 39741c0 | 2014-02-27 13:25:59 -0700 | [diff] [blame] | 77 | }; |
| 78 | |
Simon Glass | a02af4a | 2015-01-05 20:05:31 -0700 | [diff] [blame] | 79 | gpio_a: gpios@0 { |
Simon Glass | 4bc9a19 | 2014-08-11 09:24:03 -0600 | [diff] [blame] | 80 | gpio-controller; |
| 81 | compatible = "sandbox,gpio"; |
| 82 | #gpio-cells = <1>; |
| 83 | gpio-bank-name = "a"; |
| 84 | num-gpios = <20>; |
| 85 | }; |
| 86 | |
Simon Glass | a02af4a | 2015-01-05 20:05:31 -0700 | [diff] [blame] | 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 | |
Simon Glass | 46af360 | 2015-04-20 12:37:28 -0600 | [diff] [blame] | 95 | i2c_0: i2c@0 { |
Simon Glass | 776f96f | 2014-12-10 08:55:53 -0700 | [diff] [blame] | 96 | #address-cells = <1>; |
| 97 | #size-cells = <0>; |
Simon Glass | 20806e7 | 2015-03-05 12:25:13 -0700 | [diff] [blame] | 98 | reg = <0 0>; |
Simon Glass | 776f96f | 2014-12-10 08:55:53 -0700 | [diff] [blame] | 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 | }; |
Simon Glass | 46af360 | 2015-04-20 12:37:28 -0600 | [diff] [blame] | 110 | |
| 111 | rtc_0: rtc@43 { |
| 112 | reg = <0x43>; |
| 113 | compatible = "sandbox-rtc"; |
| 114 | emul { |
| 115 | compatible = "sandbox,i2c-rtc"; |
| 116 | }; |
| 117 | }; |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 118 | sandbox_pmic: sandbox_pmic { |
| 119 | reg = <0x40>; |
| 120 | }; |
Simon Glass | 776f96f | 2014-12-10 08:55:53 -0700 | [diff] [blame] | 121 | }; |
| 122 | |
Simon Glass | 0b304a2 | 2014-10-13 23:41:48 -0600 | [diff] [blame] | 123 | spi@0 { |
| 124 | #address-cells = <1>; |
| 125 | #size-cells = <0>; |
Simon Glass | 20806e7 | 2015-03-05 12:25:13 -0700 | [diff] [blame] | 126 | reg = <0 0>; |
Simon Glass | 0b304a2 | 2014-10-13 23:41:48 -0600 | [diff] [blame] | 127 | compatible = "sandbox,spi"; |
| 128 | cs-gpios = <0>, <&gpio_a 0>; |
Simon Glass | 3fbb787 | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 129 | firmware_storage_spi: flash@0 { |
Simon Glass | 0b304a2 | 2014-10-13 23:41:48 -0600 | [diff] [blame] | 130 | reg = <0>; |
| 131 | compatible = "spansion,m25p16", "sandbox,spi-flash"; |
| 132 | spi-max-frequency = <40000000>; |
| 133 | sandbox,filename = "spi.bin"; |
| 134 | }; |
| 135 | }; |
| 136 | |
Simon Glass | 9569c40 | 2015-03-05 12:25:26 -0700 | [diff] [blame] | 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 | |
Joe Hershberger | 3ea143a | 2015-03-22 17:09:13 -0500 | [diff] [blame] | 153 | eth@10002000 { |
| 154 | compatible = "sandbox,eth"; |
| 155 | reg = <0x10002000 0x1000>; |
Joe Hershberger | d87a457 | 2015-03-22 17:09:14 -0500 | [diff] [blame] | 156 | fake-host-hwaddr = [00 00 66 44 22 00]; |
Joe Hershberger | 3ea143a | 2015-03-22 17:09:13 -0500 | [diff] [blame] | 157 | }; |
Joe Hershberger | a346ca7 | 2015-03-22 17:09:21 -0500 | [diff] [blame] | 158 | |
| 159 | eth@80000000 { |
| 160 | compatible = "sandbox,eth-raw"; |
| 161 | reg = <0x80000000 0x1000>; |
| 162 | host-raw-interface = "eth0"; |
| 163 | }; |
Joe Hershberger | 22f6852 | 2015-03-22 17:09:23 -0500 | [diff] [blame] | 164 | |
| 165 | eth@90000000 { |
| 166 | compatible = "sandbox,eth-raw"; |
| 167 | reg = <0x90000000 0x1000>; |
| 168 | host-raw-interface = "lo"; |
| 169 | }; |
Simon Glass | 4c3db41 | 2015-03-25 12:22:42 -0600 | [diff] [blame] | 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 | |
Simon Glass | 714a562 | 2014-02-26 15:59:14 -0700 | [diff] [blame] | 208 | }; |
Simon Glass | 3fbb787 | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 209 | |
| 210 | #include "cros-ec-keyboard.dtsi" |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 211 | #include "sandbox_pmic.dtsi" |