blob: a3ebd80dd8ce8fda45fe20c4add79c48f5f23667 [file] [log] [blame]
Simon Glass714a5622014-02-26 15:59:14 -07001/dts-v1/;
2
Simon Glass4c3db412015-03-25 12:22:42 -06003#define USB_CLASS_HUB 9
4
Simon Glass714a5622014-02-26 15:59:14 -07005/ {
Simon Glass0b304a22014-10-13 23:41:48 -06006 #address-cells = <1>;
Simon Glass20806e72015-03-05 12:25:13 -07007 #size-cells = <1>;
Simon Glass0b304a22014-10-13 23:41:48 -06008
Simon Glass9569c402015-03-05 12:25:26 -07009 aliases {
Joe Hershberger22f68522015-03-22 17:09:23 -050010 eth5 = "/eth@90000000";
Simon Glass46af3602015-04-20 12:37:28 -060011 i2c0 = &i2c_0;
Simon Glass9569c402015-03-05 12:25:26 -070012 pci0 = &pci;
Simon Glass46af3602015-04-20 12:37:28 -060013 rtc0 = &rtc_0;
Simon Glass9569c402015-03-05 12:25:26 -070014 };
15
Simon Glass2a9ae6e2014-09-04 16:27:29 -060016 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 Glass714a5622014-02-26 15:59:14 -070026 triangle {
27 compatible = "demo-shape";
28 colour = "cyan";
29 sides = <3>;
30 character = <83>;
Simon Glassa02af4a2015-01-05 20:05:31 -070031 light-gpios = <&gpio_a 2>, <&gpio_b 6 0>;
Simon Glass714a5622014-02-26 15:59:14 -070032 };
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 Glass39741c02014-02-27 13:25:59 -070043
Simon Glass3fbb7872015-03-26 09:29:39 -060044 cros_ec: cros-ec@0 {
45 reg = <0 0>;
46 compatible = "google,cros-ec-sandbox";
Simon Glass39741c02014-02-27 13:25:59 -070047
Simon Glass3fbb7872015-03-26 09:29:39 -060048 /*
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 Glass39741c02014-02-27 13:25:59 -070057 #address-cells = <1>;
58 #size-cells = <1>;
Simon Glass39741c02014-02-27 13:25:59 -070059
Simon Glass3fbb7872015-03-26 09:29:39 -060060 /* 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 Glass39741c02014-02-27 13:25:59 -070069 };
70 };
71 };
72
73 lcd {
74 compatible = "sandbox,lcd-sdl";
Simon Glass3a812e72015-05-04 11:31:12 -060075 xres = <1366>;
76 yres = <768>;
Simon Glass39741c02014-02-27 13:25:59 -070077 };
78
Simon Glassa02af4a2015-01-05 20:05:31 -070079 gpio_a: gpios@0 {
Simon Glass4bc9a192014-08-11 09:24:03 -060080 gpio-controller;
81 compatible = "sandbox,gpio";
82 #gpio-cells = <1>;
83 gpio-bank-name = "a";
84 num-gpios = <20>;
85 };
86
Simon Glassa02af4a2015-01-05 20:05:31 -070087 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 Glass46af3602015-04-20 12:37:28 -060095 i2c_0: i2c@0 {
Simon Glass776f96f2014-12-10 08:55:53 -070096 #address-cells = <1>;
97 #size-cells = <0>;
Simon Glass20806e72015-03-05 12:25:13 -070098 reg = <0 0>;
Simon Glass776f96f2014-12-10 08:55:53 -070099 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 Glass46af3602015-04-20 12:37:28 -0600110
111 rtc_0: rtc@43 {
112 reg = <0x43>;
113 compatible = "sandbox-rtc";
114 emul {
115 compatible = "sandbox,i2c-rtc";
116 };
117 };
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +0200118 sandbox_pmic: sandbox_pmic {
119 reg = <0x40>;
120 };
Simon Glass776f96f2014-12-10 08:55:53 -0700121 };
122
Simon Glass0b304a22014-10-13 23:41:48 -0600123 spi@0 {
124 #address-cells = <1>;
125 #size-cells = <0>;
Simon Glass20806e72015-03-05 12:25:13 -0700126 reg = <0 0>;
Simon Glass0b304a22014-10-13 23:41:48 -0600127 compatible = "sandbox,spi";
128 cs-gpios = <0>, <&gpio_a 0>;
Simon Glass3fbb7872015-03-26 09:29:39 -0600129 firmware_storage_spi: flash@0 {
Simon Glass0b304a22014-10-13 23:41:48 -0600130 reg = <0>;
131 compatible = "spansion,m25p16", "sandbox,spi-flash";
132 spi-max-frequency = <40000000>;
133 sandbox,filename = "spi.bin";
134 };
135 };
136
Simon Glass9569c402015-03-05 12:25:26 -0700137 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 Hershberger3ea143a2015-03-22 17:09:13 -0500153 eth@10002000 {
154 compatible = "sandbox,eth";
155 reg = <0x10002000 0x1000>;
Joe Hershbergerd87a4572015-03-22 17:09:14 -0500156 fake-host-hwaddr = [00 00 66 44 22 00];
Joe Hershberger3ea143a2015-03-22 17:09:13 -0500157 };
Joe Hershbergera346ca72015-03-22 17:09:21 -0500158
159 eth@80000000 {
160 compatible = "sandbox,eth-raw";
161 reg = <0x80000000 0x1000>;
162 host-raw-interface = "eth0";
163 };
Joe Hershberger22f68522015-03-22 17:09:23 -0500164
165 eth@90000000 {
166 compatible = "sandbox,eth-raw";
167 reg = <0x90000000 0x1000>;
168 host-raw-interface = "lo";
169 };
Simon Glass4c3db412015-03-25 12:22:42 -0600170
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 Glass714a5622014-02-26 15:59:14 -0700208};
Simon Glass3fbb7872015-03-26 09:29:39 -0600209
210#include "cros-ec-keyboard.dtsi"
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +0200211#include "sandbox_pmic.dtsi"