blob: efa2097b2d67c33f68d8f70c11754fb09af3ff72 [file] [log] [blame]
Simon Glass66c164b2014-02-26 15:59:14 -07001/dts-v1/;
2
Simon Glassce3ca2e2015-03-25 12:22:42 -06003#define USB_CLASS_HUB 9
4
Simon Glass66c164b2014-02-26 15:59:14 -07005/ {
Simon Glassfd91fc92014-10-13 23:41:48 -06006 #address-cells = <1>;
Simon Glassf905be82015-03-05 12:25:13 -07007 #size-cells = <1>;
Simon Glassfd91fc92014-10-13 23:41:48 -06008
Simon Glass70778bc2015-03-05 12:25:26 -07009 aliases {
Joe Hershbergera8921922015-03-22 17:09:23 -050010 eth5 = "/eth@90000000";
Simon Glass70778bc2015-03-05 12:25:26 -070011 pci0 = &pci;
12 };
13
Simon Glasscdbbfe32014-09-04 16:27:29 -060014 chosen {
15 stdout-path = "/serial";
16 };
17
18 /* Needs to be available prior to relocation */
19 uart0: serial {
20 compatible = "sandbox,serial";
21 sandbox,text-colour = "cyan";
22 };
23
Simon Glass66c164b2014-02-26 15:59:14 -070024 triangle {
25 compatible = "demo-shape";
26 colour = "cyan";
27 sides = <3>;
28 character = <83>;
Simon Glass120834d2015-01-05 20:05:31 -070029 light-gpios = <&gpio_a 2>, <&gpio_b 6 0>;
Simon Glass66c164b2014-02-26 15:59:14 -070030 };
31 square {
32 compatible = "demo-shape";
33 colour = "blue";
34 sides = <4>;
35 };
36 hexagon {
37 compatible = "demo-simple";
38 colour = "white";
39 sides = <6>;
40 };
Simon Glass1f6acb52014-02-27 13:25:59 -070041
Simon Glass73f220c2015-03-26 09:29:39 -060042 cros_ec: cros-ec@0 {
43 reg = <0 0>;
44 compatible = "google,cros-ec-sandbox";
Simon Glass1f6acb52014-02-27 13:25:59 -070045
Simon Glass73f220c2015-03-26 09:29:39 -060046 /*
47 * This describes the flash memory within the EC. Note
48 * that the STM32L flash erases to 0, not 0xff.
49 */
50 #address-cells = <1>;
51 #size-cells = <1>;
52 flash@8000000 {
53 reg = <0x08000000 0x20000>;
54 erase-value = <0>;
Simon Glass1f6acb52014-02-27 13:25:59 -070055 #address-cells = <1>;
56 #size-cells = <1>;
Simon Glass1f6acb52014-02-27 13:25:59 -070057
Simon Glass73f220c2015-03-26 09:29:39 -060058 /* Information for sandbox */
59 ro {
60 reg = <0 0xf000>;
61 };
62 wp-ro {
63 reg = <0xf000 0x1000>;
64 };
65 rw {
66 reg = <0x10000 0x10000>;
Simon Glass1f6acb52014-02-27 13:25:59 -070067 };
68 };
69 };
70
71 lcd {
72 compatible = "sandbox,lcd-sdl";
73 xres = <800>;
74 yres = <600>;
75 };
76
Simon Glass120834d2015-01-05 20:05:31 -070077 gpio_a: gpios@0 {
Simon Glass093f3a72014-08-11 09:24:03 -060078 gpio-controller;
79 compatible = "sandbox,gpio";
80 #gpio-cells = <1>;
81 gpio-bank-name = "a";
82 num-gpios = <20>;
83 };
84
Simon Glass120834d2015-01-05 20:05:31 -070085 gpio_b: gpios@1 {
86 gpio-controller;
87 compatible = "sandbox,gpio";
88 #gpio-cells = <2>;
89 gpio-bank-name = "b";
90 num-gpios = <10>;
91 };
92
Simon Glass4f46a592014-12-10 08:55:53 -070093 i2c@0 {
94 #address-cells = <1>;
95 #size-cells = <0>;
Simon Glassf905be82015-03-05 12:25:13 -070096 reg = <0 0>;
Simon Glass4f46a592014-12-10 08:55:53 -070097 compatible = "sandbox,i2c";
98 clock-frequency = <400000>;
99 eeprom@2c {
100 reg = <0x2c>;
101 compatible = "i2c-eeprom";
102 emul {
103 compatible = "sandbox,i2c-eeprom";
104 sandbox,filename = "i2c.bin";
105 sandbox,size = <128>;
106 };
107 };
108 };
109
Simon Glassfd91fc92014-10-13 23:41:48 -0600110 spi@0 {
111 #address-cells = <1>;
112 #size-cells = <0>;
Simon Glassf905be82015-03-05 12:25:13 -0700113 reg = <0 0>;
Simon Glassfd91fc92014-10-13 23:41:48 -0600114 compatible = "sandbox,spi";
115 cs-gpios = <0>, <&gpio_a 0>;
Simon Glass73f220c2015-03-26 09:29:39 -0600116 firmware_storage_spi: flash@0 {
Simon Glassfd91fc92014-10-13 23:41:48 -0600117 reg = <0>;
118 compatible = "spansion,m25p16", "sandbox,spi-flash";
119 spi-max-frequency = <40000000>;
120 sandbox,filename = "spi.bin";
121 };
122 };
123
Simon Glass70778bc2015-03-05 12:25:26 -0700124 pci: pci-controller {
125 compatible = "sandbox,pci";
126 device_type = "pci";
127 #address-cells = <3>;
128 #size-cells = <2>;
129 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
130 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
131 pci@1f,0 {
132 compatible = "pci-generic";
133 reg = <0xf800 0 0 0 0>;
134 emul@1f,0 {
135 compatible = "sandbox,swap-case";
136 };
137 };
138 };
139
Joe Hershberger6ab76992015-03-22 17:09:13 -0500140 eth@10002000 {
141 compatible = "sandbox,eth";
142 reg = <0x10002000 0x1000>;
Joe Hershbergere4d7cb12015-03-22 17:09:14 -0500143 fake-host-hwaddr = [00 00 66 44 22 00];
Joe Hershberger6ab76992015-03-22 17:09:13 -0500144 };
Joe Hershberger586cbd12015-03-22 17:09:21 -0500145
146 eth@80000000 {
147 compatible = "sandbox,eth-raw";
148 reg = <0x80000000 0x1000>;
149 host-raw-interface = "eth0";
150 };
Joe Hershbergera8921922015-03-22 17:09:23 -0500151
152 eth@90000000 {
153 compatible = "sandbox,eth-raw";
154 reg = <0x90000000 0x1000>;
155 host-raw-interface = "lo";
156 };
Simon Glassce3ca2e2015-03-25 12:22:42 -0600157
158 usb@0 {
159 compatible = "sandbox,usb";
160 status = "disabled";
161 hub {
162 compatible = "sandbox,usb-hub";
163 #address-cells = <1>;
164 #size-cells = <0>;
165 flash-stick {
166 reg = <0>;
167 compatible = "sandbox,usb-flash";
168 };
169 };
170 };
171
172 usb@1 {
173 compatible = "sandbox,usb";
174 hub {
175 compatible = "usb-hub";
176 usb,device-class = <USB_CLASS_HUB>;
177 hub-emul {
178 compatible = "sandbox,usb-hub";
179 #address-cells = <1>;
180 #size-cells = <0>;
181 flash-stick {
182 reg = <0>;
183 compatible = "sandbox,usb-flash";
184 sandbox,filepath = "flash.bin";
185 };
186 };
187 };
188 };
189
190 usb@2 {
191 compatible = "sandbox,usb";
192 status = "disabled";
193 };
194
Simon Glass66c164b2014-02-26 15:59:14 -0700195};
Simon Glass73f220c2015-03-26 09:29:39 -0600196
197#include "cros-ec-keyboard.dtsi"