]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/sandbox/dts/sandbox.dts
Merge branch 'master' of git://git.denx.de/u-boot-video
[people/ms/u-boot.git] / arch / sandbox / dts / sandbox.dts
CommitLineData
714a5621
SG
1/dts-v1/;
2
4c3db41a
SG
3#define USB_CLASS_HUB 9
4
714a5621 5/ {
0b304a24 6 #address-cells = <1>;
20806e74 7 #size-cells = <1>;
0b304a24 8
9569c406 9 aliases {
22f68524 10 eth5 = "/eth@90000000";
46af3608 11 i2c0 = &i2c_0;
9569c406 12 pci0 = &pci;
46af3608 13 rtc0 = &rtc_0;
9569c406
SG
14 };
15
2a9ae6e0
SG
16 chosen {
17 stdout-path = "/serial";
18 };
19
3fbb7871
SG
20 cros_ec: cros-ec@0 {
21 reg = <0 0>;
22 compatible = "google,cros-ec-sandbox";
39741c01 23
3fbb7871
SG
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>;
39741c01
SG
33 #address-cells = <1>;
34 #size-cells = <1>;
3fbb7871
SG
35
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>;
39741c01
SG
45 };
46 };
47 };
48
f4d84576
SG
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";
39741c01
SG
65 };
66
a02af4ae 67 gpio_a: gpios@0 {
4bc9a193
SG
68 gpio-controller;
69 compatible = "sandbox,gpio";
70 #gpio-cells = <1>;
71 gpio-bank-name = "a";
72 num-gpios = <20>;
73 };
74
a02af4ae
SG
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
f4d84576
SG
83 hexagon {
84 compatible = "demo-simple";
85 colour = "white";
86 sides = <6>;
87 };
88
46af3608 89 i2c_0: i2c@0 {
776f96f5
SG
90 #address-cells = <1>;
91 #size-cells = <0>;
20806e74 92 reg = <0 0>;
776f96f5
SG
93 compatible = "sandbox,i2c";
94 clock-frequency = <400000>;
9c6a3c67
MY
95 pinctrl-names = "default";
96 pinctrl-0 = <&pinctrl_i2c0>;
776f96f5
SG
97 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 };
46af3608
SG
106
107 rtc_0: rtc@43 {
108 reg = <0x43>;
109 compatible = "sandbox-rtc";
110 emul {
111 compatible = "sandbox,i2c-rtc";
112 };
113 };
9038cd53
PM
114 sandbox_pmic: sandbox_pmic {
115 reg = <0x40>;
116 };
776f96f5
SG
117 };
118
f4d84576
SG
119 lcd {
120 compatible = "sandbox,lcd-sdl";
121 xres = <1366>;
122 yres = <768>;
0b304a24
SG
123 };
124
9569c406
SG
125 pci: pci-controller {
126 compatible = "sandbox,pci";
127 device_type = "pci";
128 #address-cells = <3>;
129 #size-cells = <2>;
130 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
131 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
132 pci@1f,0 {
133 compatible = "pci-generic";
134 reg = <0xf800 0 0 0 0>;
135 emul@1f,0 {
136 compatible = "sandbox,swap-case";
137 };
138 };
139 };
140
9c6a3c67
MY
141 pinctrl {
142 compatible = "sandbox,pinctrl";
143
144 pinctrl_i2c0: i2c0 {
145 groups = "i2c";
146 function = "i2c";
147 bias-pull-up;
148 };
149
150 pinctrl_serial0: uart0 {
151 groups = "serial_a";
152 function = "serial";
153 };
154 };
155
7bb91dd1
SG
156 reset@1 {
157 compatible = "sandbox,reset";
158 };
159
f4d84576
SG
160 spi@0 {
161 #address-cells = <1>;
162 #size-cells = <0>;
163 reg = <0 0>;
164 compatible = "sandbox,spi";
165 cs-gpios = <0>, <&gpio_a 0>;
166 firmware_storage_spi: flash@0 {
167 reg = <0>;
168 compatible = "spansion,m25p16", "sandbox,spi-flash";
169 spi-max-frequency = <40000000>;
170 sandbox,filename = "spi.bin";
171 };
3ea143ab 172 };
a346ca79 173
f4d84576
SG
174 square {
175 compatible = "demo-shape";
176 colour = "blue";
177 sides = <4>;
a346ca79 178 };
22f68524 179
9961a0b6
TC
180 timer {
181 compatible = "sandbox,timer";
182 };
183
21baf15b
SG
184 tpm {
185 compatible = "google,sandbox-tpm";
186 };
187
f4d84576
SG
188 triangle {
189 compatible = "demo-shape";
190 colour = "cyan";
191 sides = <3>;
192 character = <83>;
193 light-gpios = <&gpio_a 2>, <&gpio_b 6 0>;
194 };
195
196 /* Needs to be available prior to relocation */
197 uart0: serial {
198 compatible = "sandbox,serial";
199 sandbox,text-colour = "cyan";
9c6a3c67
MY
200 pinctrl-names = "default";
201 pinctrl-0 = <&pinctrl_serial0>;
22f68524 202 };
4c3db41a
SG
203
204 usb@0 {
205 compatible = "sandbox,usb";
206 status = "disabled";
207 hub {
208 compatible = "sandbox,usb-hub";
209 #address-cells = <1>;
210 #size-cells = <0>;
211 flash-stick {
212 reg = <0>;
213 compatible = "sandbox,usb-flash";
214 };
215 };
216 };
217
218 usb@1 {
219 compatible = "sandbox,usb";
220 hub {
221 compatible = "usb-hub";
222 usb,device-class = <USB_CLASS_HUB>;
223 hub-emul {
224 compatible = "sandbox,usb-hub";
225 #address-cells = <1>;
226 #size-cells = <0>;
227 flash-stick {
228 reg = <0>;
229 compatible = "sandbox,usb-flash";
230 sandbox,filepath = "flash.bin";
231 };
232 };
233 };
234 };
235
236 usb@2 {
237 compatible = "sandbox,usb";
238 status = "disabled";
239 };
240
714a5621 241};
3fbb7871
SG
242
243#include "cros-ec-keyboard.dtsi"
9038cd53 244#include "sandbox_pmic.dtsi"