xref: /openbmc/u-boot/arch/sandbox/dts/sandbox.dts (revision c54473cb25968be53e6b47527d5970b03a3cf41d)
1/dts-v1/;
2
3/ {
4	#address-cells = <1>;
5	#size-cells = <1>;
6
7	aliases {
8		eth5 = "/eth@90000000";
9		pci0 = &pci;
10	};
11
12	chosen {
13		stdout-path = "/serial";
14	};
15
16	/* Needs to be available prior to relocation */
17	uart0: serial {
18		compatible = "sandbox,serial";
19		sandbox,text-colour = "cyan";
20	};
21
22	triangle {
23		compatible = "demo-shape";
24		colour = "cyan";
25		sides = <3>;
26		character = <83>;
27		light-gpios = <&gpio_a 2>, <&gpio_b 6 0>;
28	};
29	square {
30		compatible = "demo-shape";
31		colour = "blue";
32		sides = <4>;
33	};
34	hexagon {
35		compatible = "demo-simple";
36		colour = "white";
37		sides = <6>;
38	};
39
40	cros_ec: cros-ec@0 {
41		reg = <0 0>;
42		compatible = "google,cros-ec-sandbox";
43
44		/*
45		 * This describes the flash memory within the EC. Note
46		 * that the STM32L flash erases to 0, not 0xff.
47		 */
48		#address-cells = <1>;
49		#size-cells = <1>;
50		flash@8000000 {
51			reg = <0x08000000 0x20000>;
52			erase-value = <0>;
53			#address-cells = <1>;
54			#size-cells = <1>;
55
56			/* Information for sandbox */
57			ro {
58				reg = <0 0xf000>;
59			};
60			wp-ro {
61				reg = <0xf000 0x1000>;
62			};
63			rw {
64				reg = <0x10000 0x10000>;
65			};
66		};
67	};
68
69	lcd {
70		compatible = "sandbox,lcd-sdl";
71		xres = <800>;
72		yres = <600>;
73	};
74
75	gpio_a: gpios@0 {
76		gpio-controller;
77		compatible = "sandbox,gpio";
78		#gpio-cells = <1>;
79		gpio-bank-name = "a";
80		num-gpios = <20>;
81	};
82
83	gpio_b: gpios@1 {
84		gpio-controller;
85		compatible = "sandbox,gpio";
86		#gpio-cells = <2>;
87		gpio-bank-name = "b";
88		num-gpios = <10>;
89	};
90
91	i2c@0 {
92		#address-cells = <1>;
93		#size-cells = <0>;
94		reg = <0 0>;
95		compatible = "sandbox,i2c";
96		clock-frequency = <400000>;
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		};
106	};
107
108	spi@0 {
109		#address-cells = <1>;
110		#size-cells = <0>;
111		reg = <0 0>;
112		compatible = "sandbox,spi";
113		cs-gpios = <0>, <&gpio_a 0>;
114		firmware_storage_spi: flash@0 {
115			reg = <0>;
116			compatible = "spansion,m25p16", "sandbox,spi-flash";
117			spi-max-frequency = <40000000>;
118			sandbox,filename = "spi.bin";
119		};
120	};
121
122	pci: pci-controller {
123		compatible = "sandbox,pci";
124		device_type = "pci";
125		#address-cells = <3>;
126		#size-cells = <2>;
127		ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
128				0x01000000 0 0x20000000 0x20000000 0 0x2000>;
129		pci@1f,0 {
130			compatible = "pci-generic";
131			reg = <0xf800 0 0 0 0>;
132			emul@1f,0 {
133				compatible = "sandbox,swap-case";
134			};
135		};
136	};
137
138	eth@10002000 {
139		compatible = "sandbox,eth";
140		reg = <0x10002000 0x1000>;
141		fake-host-hwaddr = [00 00 66 44 22 00];
142	};
143
144	eth@80000000 {
145		compatible = "sandbox,eth-raw";
146		reg = <0x80000000 0x1000>;
147		host-raw-interface = "eth0";
148	};
149
150	eth@90000000 {
151		compatible = "sandbox,eth-raw";
152		reg = <0x90000000 0x1000>;
153		host-raw-interface = "lo";
154	};
155};
156
157#include "cros-ec-keyboard.dtsi"
158