blob: 2ae40148b09a3976f488b39a0df503ace67ab21f [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 Glass72138b92015-04-20 12:37:28 -060011 i2c0 = &i2c_0;
Simon Glass70778bc2015-03-05 12:25:26 -070012 pci0 = &pci;
Simon Glass72138b92015-04-20 12:37:28 -060013 rtc0 = &rtc_0;
Simon Glass70778bc2015-03-05 12:25:26 -070014 };
15
Simon Glasscdbbfe32014-09-04 16:27:29 -060016 chosen {
17 stdout-path = "/serial";
18 };
19
Simon Glass73f220c2015-03-26 09:29:39 -060020 cros_ec: cros-ec@0 {
21 reg = <0 0>;
22 compatible = "google,cros-ec-sandbox";
Simon Glass1f6acb52014-02-27 13:25:59 -070023
Simon Glass73f220c2015-03-26 09:29:39 -060024 /*
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 Glass1f6acb52014-02-27 13:25:59 -070033 #address-cells = <1>;
34 #size-cells = <1>;
Simon Glass1f6acb52014-02-27 13:25:59 -070035
Simon Glass73f220c2015-03-26 09:29:39 -060036 /* 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 Glass1f6acb52014-02-27 13:25:59 -070045 };
46 };
47 };
48
Simon Glass45ab0082015-05-22 15:42:16 -060049 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 Glass1f6acb52014-02-27 13:25:59 -070065 };
66
Simon Glass120834d2015-01-05 20:05:31 -070067 gpio_a: gpios@0 {
Simon Glass093f3a72014-08-11 09:24:03 -060068 gpio-controller;
69 compatible = "sandbox,gpio";
70 #gpio-cells = <1>;
71 gpio-bank-name = "a";
72 num-gpios = <20>;
73 };
74
Simon Glass120834d2015-01-05 20:05:31 -070075 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 Glass45ab0082015-05-22 15:42:16 -060083 hexagon {
84 compatible = "demo-simple";
85 colour = "white";
86 sides = <6>;
87 };
88
Simon Glass72138b92015-04-20 12:37:28 -060089 i2c_0: i2c@0 {
Simon Glass4f46a592014-12-10 08:55:53 -070090 #address-cells = <1>;
91 #size-cells = <0>;
Simon Glassf905be82015-03-05 12:25:13 -070092 reg = <0 0>;
Simon Glass4f46a592014-12-10 08:55:53 -070093 compatible = "sandbox,i2c";
94 clock-frequency = <400000>;
Masahiro Yamada0b53a752015-08-27 12:44:30 +090095 pinctrl-names = "default";
96 pinctrl-0 = <&pinctrl_i2c0>;
Simon Glass4f46a592014-12-10 08:55:53 -070097 eeprom@2c {
98 reg = <0x2c>;
99 compatible = "i2c-eeprom";
100 emul {
101 compatible = "sandbox,i2c-eeprom";
102 sandbox,filename = "i2c.bin";
103 sandbox,size = <128>;
104 };
105 };
Simon Glass72138b92015-04-20 12:37:28 -0600106
107 rtc_0: rtc@43 {
108 reg = <0x43>;
109 compatible = "sandbox-rtc";
110 emul {
111 compatible = "sandbox,i2c-rtc";
112 };
113 };
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200114 sandbox_pmic: sandbox_pmic {
115 reg = <0x40>;
116 };
Simon Glass4f46a592014-12-10 08:55:53 -0700117 };
118
Simon Glass45ab0082015-05-22 15:42:16 -0600119 lcd {
Simon Glass38a2ae22016-01-18 19:52:25 -0700120 u-boot,dm-pre-reloc;
Simon Glass45ab0082015-05-22 15:42:16 -0600121 compatible = "sandbox,lcd-sdl";
122 xres = <1366>;
123 yres = <768>;
Simon Glassfd91fc92014-10-13 23:41:48 -0600124 };
125
Simon Glass70778bc2015-03-05 12:25:26 -0700126 pci: pci-controller {
127 compatible = "sandbox,pci";
128 device_type = "pci";
129 #address-cells = <3>;
130 #size-cells = <2>;
131 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
132 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
133 pci@1f,0 {
134 compatible = "pci-generic";
135 reg = <0xf800 0 0 0 0>;
136 emul@1f,0 {
137 compatible = "sandbox,swap-case";
138 };
139 };
140 };
141
Masahiro Yamada0b53a752015-08-27 12:44:30 +0900142 pinctrl {
143 compatible = "sandbox,pinctrl";
144
145 pinctrl_i2c0: i2c0 {
146 groups = "i2c";
147 function = "i2c";
148 bias-pull-up;
149 };
150
151 pinctrl_serial0: uart0 {
152 groups = "serial_a";
153 function = "serial";
154 };
155 };
156
Simon Glass68a3d492015-10-03 11:21:16 -0600157 reset@1 {
158 compatible = "sandbox,reset";
159 };
160
Simon Glass45ab0082015-05-22 15:42:16 -0600161 spi@0 {
162 #address-cells = <1>;
163 #size-cells = <0>;
164 reg = <0 0>;
165 compatible = "sandbox,spi";
166 cs-gpios = <0>, <&gpio_a 0>;
167 firmware_storage_spi: flash@0 {
168 reg = <0>;
169 compatible = "spansion,m25p16", "sandbox,spi-flash";
170 spi-max-frequency = <40000000>;
171 sandbox,filename = "spi.bin";
172 };
Joe Hershberger6ab76992015-03-22 17:09:13 -0500173 };
Joe Hershberger586cbd12015-03-22 17:09:21 -0500174
Simon Glass45ab0082015-05-22 15:42:16 -0600175 square {
176 compatible = "demo-shape";
177 colour = "blue";
178 sides = <4>;
Joe Hershberger586cbd12015-03-22 17:09:21 -0500179 };
Joe Hershbergera8921922015-03-22 17:09:23 -0500180
Thomas Chou7b059dc2015-10-30 15:35:52 +0800181 timer {
182 compatible = "sandbox,timer";
Bin Mengd041c422015-11-13 00:11:17 -0800183 clock-frequency = <1000000>;
Thomas Chou7b059dc2015-10-30 15:35:52 +0800184 };
185
Simon Glassa425f762015-08-22 18:31:35 -0600186 tpm {
187 compatible = "google,sandbox-tpm";
188 };
189
Simon Glass45ab0082015-05-22 15:42:16 -0600190 triangle {
191 compatible = "demo-shape";
192 colour = "cyan";
193 sides = <3>;
194 character = <83>;
195 light-gpios = <&gpio_a 2>, <&gpio_b 6 0>;
196 };
197
198 /* Needs to be available prior to relocation */
199 uart0: serial {
200 compatible = "sandbox,serial";
201 sandbox,text-colour = "cyan";
Masahiro Yamada0b53a752015-08-27 12:44:30 +0900202 pinctrl-names = "default";
203 pinctrl-0 = <&pinctrl_serial0>;
Joe Hershbergera8921922015-03-22 17:09:23 -0500204 };
Simon Glassce3ca2e2015-03-25 12:22:42 -0600205
206 usb@0 {
207 compatible = "sandbox,usb";
208 status = "disabled";
209 hub {
210 compatible = "sandbox,usb-hub";
211 #address-cells = <1>;
212 #size-cells = <0>;
213 flash-stick {
214 reg = <0>;
215 compatible = "sandbox,usb-flash";
216 };
217 };
218 };
219
220 usb@1 {
221 compatible = "sandbox,usb";
222 hub {
223 compatible = "usb-hub";
224 usb,device-class = <USB_CLASS_HUB>;
225 hub-emul {
226 compatible = "sandbox,usb-hub";
227 #address-cells = <1>;
228 #size-cells = <0>;
229 flash-stick {
230 reg = <0>;
231 compatible = "sandbox,usb-flash";
232 sandbox,filepath = "flash.bin";
233 };
234 };
235 };
236 };
237
238 usb@2 {
239 compatible = "sandbox,usb";
240 status = "disabled";
241 };
242
Mateusz Kulikowskic7e4fbb2016-03-31 23:12:28 +0200243 spmi: spmi@0 {
244 compatible = "sandbox,spmi";
245 #address-cells = <0x1>;
246 #size-cells = <0x1>;
247 pm8916@0 {
248 compatible = "qcom,spmi-pmic";
249 reg = <0x0 0x1>;
250 #address-cells = <0x1>;
251 #size-cells = <0x1>;
252
253 spmi_gpios: gpios@c000 {
254 compatible = "qcom,pm8916-gpio";
255 reg = <0xc000 0x400>;
256 gpio-controller;
257 gpio-count = <4>;
258 #gpio-cells = <2>;
259 gpio-bank-name="spmi";
260 };
261 };
262 };
Simon Glass66c164b2014-02-26 15:59:14 -0700263};
Simon Glass73f220c2015-03-26 09:29:39 -0600264
265#include "cros-ec-keyboard.dtsi"
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200266#include "sandbox_pmic.dtsi"