1 // SPDX-License-Identifier: GPL-2.0+
3 * This is the common sandbox device-tree nodes. This is shared between sandbox
4 * and sandbox64 builds.
8 #include <dt-bindings/input/input.h>
10 #define USB_CLASS_HUB 9
18 event_log: tcg_event_log {
20 reg = <(CFG_SYS_SDRAM_SIZE - 0x2000) 0x2000>;
28 stdout-path = "/serial";
31 alarm_wdt: alarm-wdt {
32 compatible = "sandbox,alarm-wdt";
38 compatible = "sandbox,audio-codec";
39 #sound-dai-cells = <1>;
43 compatible = "u-boot,boot-std";
44 filename-prefixes = "./";
54 compatible = "gpio-keys";
57 gpios = <&gpio_a 3 0>;
63 gpios = <&gpio_a 4 0>;
69 clk_fixed: clk-fixed {
71 compatible = "sandbox,fixed-clock";
73 clock-frequency = <1234>;
76 clk_sandbox: clk-sbox {
78 compatible = "sandbox,clk";
80 assigned-clocks = <&clk_sandbox 3>;
81 assigned-clock-rates = <321>;
86 compatible = "sandbox,clk-test";
87 clocks = <&clk_fixed>,
92 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
98 compatible = "sandbox,gpio";
100 gpio-bank-name = "a";
101 sandbox,gpio-count = <20>;
107 compatible = "sandbox,gpio";
109 gpio-bank-name = "b";
110 sandbox,gpio-count = <10>;
115 compatible = "sandbox,gpio-test";
116 test-gpios = <&gpio_b 3 0>;
120 compatible = "demo-simple";
128 compatible = "i2c-eeprom";
129 sandbox,emul = <&emul_eeprom>;
134 compatible = "sandbox-rtc";
135 sandbox,emul = <&emul0>;
138 sandbox_pmic: sandbox_pmic {
149 compatible = "sandbox,i2c-emul-parent";
150 emul_eeprom: emul-eeprom {
151 compatible = "sandbox,i2c-eeprom";
152 sandbox,filename = "i2c.bin";
153 sandbox,size = <256>;
158 compatible = "sandbox,i2c-rtc-emul";
165 compatible = "sandbox,i2s";
166 #sound-dai-cells = <1>;
169 irq_sandbox: irq-sbox {
171 compatible = "sandbox,irq";
172 interrupt-controller;
173 #interrupt-cells = <2>;
178 compatible = "sandbox,irq-test";
179 interrupts-extended = <&irq_sandbox 3 0>;
184 compatible = "sandbox,lcd-sdl";
191 compatible = "gpio-leds";
194 gpios = <&gpio_a 1 0>;
195 label = "sandbox:red";
199 gpios = <&gpio_a 2 0>;
200 label = "sandbox:green";
206 compatible = "sandbox,pmc";
207 reg = <0xf000 0 0 0 0>;
208 sandbox,emul = <&pmc_emul>;
209 gpe0-dwx-mask = <0xf>;
210 gpe0-dwx-shift-base = <4>;
217 compatible = "pci-generic";
218 reg = <0xf800 0 0 0 0>;
219 sandbox,emul = <&swap_case_emul>;
224 compatible = "sandbox,pci-emul-parent";
225 pmc_emul: emul@1e,0 {
226 compatible = "sandbox,pmc-emul";
228 swap_case_emul: emul@1f,0 {
229 compatible = "sandbox,swap-case";
235 compatible = "sandbox,pinctrl";
244 pinctrl_serial0: uart0 {
250 pinctrl_onewire0: onewire0 {
252 function = "ONEWIRE";
258 compatible = "sandbox,reset";
263 compatible = "sandbox,sandbox-rng";
267 compatible = "sandbox,scsi";
271 compatible = "sandbox,sound";
273 sound-dai = <&i2s 0>;
277 sound-dai = <&audio 0>;
282 firmware_storage_spi: flash@0 {
285 compatible = "spansion,m25p16", "jedec,spi-nor";
286 spi-max-frequency = <40000000>;
287 sandbox,filename = "spi.bin";
293 compatible = "sandbox,spl-test";
297 maybe-empty-int = <>;
300 longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
301 stringval = "message";
302 stringarray = "multi-word", "message";
307 compatible = "sandbox,spl-test";
311 bytearray = [01 23 34];
312 longbytearray = [09 0a 0b 0c];
313 stringval = "message2";
314 stringarray = "another", "multi-word", "message";
319 compatible = "sandbox,spl-test";
321 maybe-empty-int = <1>;
326 compatible = "sandbox,spl-test";
332 compatible = "sandbox,spl-test";
333 stringarray = "pre-proper";
338 compatible = "sandbox,spl-test";
343 compatible = "demo-shape";
349 compatible = "sandbox,timer";
350 clock-frequency = <1000000>;
354 compatible = "google,sandbox-tpm";
358 compatible = "sandbox,tpm2";
359 memory-region = <&event_log>;
363 compatible = "demo-shape";
367 light-gpios = <&gpio_a 2>, <&gpio_b 6 0>;
370 /* Needs to be available prior to relocation */
375 compatible = "sandbox,serial";
376 sandbox,text-colour = "cyan";
377 pinctrl-names = "default";
378 pinctrl-0 = <&pinctrl_serial0>;
382 compatible = "sandbox,usb";
385 compatible = "sandbox,usb-hub";
386 #address-cells = <1>;
390 compatible = "sandbox,usb-flash";
396 compatible = "sandbox,usb";
398 compatible = "usb-hub";
399 usb,device-class = <USB_CLASS_HUB>;
401 compatible = "sandbox,usb-hub";
402 #address-cells = <1>;
406 compatible = "sandbox,usb-flash";
407 sandbox,filepath = "flash.bin";
414 compatible = "sandbox,usb";
419 compatible = "sandbox,spmi";
420 #address-cells = <0x1>;
423 compatible = "qcom,spmi-pmic";
425 #address-cells = <0x1>;
428 spmi_gpios: gpios@c000 {
429 compatible = "qcom,pm8916-gpio";
432 gpio-ranges = <&spmi_gpios 0 0 4>;
439 compatible = "sandbox,axi";
440 #address-cells = <0x1>;
443 compatible = "sandbox,sandbox_store";
449 compatible = "w1-gpio";
451 pinctrl-names = "default";
452 pinctrl-0 = <&pinctrl_onewire0>;
455 sandbox_eeprom0: sandbox_eeprom@0 {
456 compatible = "sandbox,w1-eeprom";
462 compatible = "sandbox,tee";
466 compatible = "sandbox,thermal";
470 compatible = "sandbox,arm-ffa-emul";
473 compatible = "sandbox,arm-ffa";
481 * This describes the flash memory within the EC. Note
482 * that the STM32L flash erases to 0, not 0xff.
485 image-pos = <0x08000000>;
489 /* Information for sandbox */
495 image-pos = <0xf000>;
499 image-pos = <0x10000>;
504 keyboard-controller {