sandbox: Add an image for VPL
[platform/kernel/u-boot.git] / arch / sandbox / dts / sandbox.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  *  Main sandbox devicetree
4  */
5
6 /dts-v1/;
7
8 #include <config.h>
9
10 / {
11         #address-cells = <1>;
12         #size-cells = <1>;
13         model = "sandbox";
14         compatible = "sandbox";
15
16         aliases {
17                 i2c0 = &i2c_0;
18                 pci0 = &pcic;
19                 rtc0 = &rtc_0;
20                 axi0 = &axi;
21                 spi0 = &spi;
22         };
23
24         binman: binman {
25         };
26
27         memory {
28                 reg = <0 CONFIG_SYS_SDRAM_SIZE>;
29         };
30
31         reserved-memory {
32                 #address-cells = <1>;
33                 #size-cells = <1>;
34                 ranges;
35
36                 reservation_test0 {
37                         size = <0x4000>;
38                         alignment = <0x2000>;
39                 };
40
41                 reservation_test1: restest@a000 {
42                         reg = <0x00d0a000 0x2000>;
43                 };
44
45                 reservation_test2: restest@7000 {
46                         reg = <0x00d07000 0x1000>;
47                 };
48         };
49
50         cros_ec: cros-ec {
51                 reg = <0 0>;
52                 u-boot,dm-pre-proper;
53                 compatible = "google,cros-ec-sandbox";
54         };
55
56         dsi_host: dsi_host {
57                 compatible = "sandbox,dsi-host";
58                 status = "okay";
59         };
60
61         ethrawbus {
62                 compatible = "sandbox,eth-raw-bus";
63                 skip-localhost = <0>;
64         };
65
66         eth@10002000 {
67                 compatible = "sandbox,eth";
68                 reg = <0x10002000 0x1000>;
69         };
70
71         host-fs {
72                 compatible = "sandbox,bootdev-host";
73         };
74
75         i2c_0: i2c@0 {
76                 #address-cells = <1>;
77                 #size-cells = <0>;
78                 reg = <0 0>;
79                 compatible = "sandbox,i2c";
80                 clock-frequency = <400000>;
81                 pinctrl-names = "default";
82                 pinctrl-0 = <&pinctrl_i2c0>;
83                 u-boot,dm-pre-reloc;
84         };
85
86         pcic: pci@0 {
87                 compatible = "sandbox,pci";
88                 device_type = "pci";
89                 bus-range = <0x00 0xff>;
90                 #address-cells = <3>;
91                 #size-cells = <2>;
92                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
93                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
94         };
95
96         spi: spi@0 {
97                 u-boot,dm-pre-proper;
98                 #address-cells = <1>;
99                 #size-cells = <0>;
100                 reg = <0 0>;
101                 compatible = "sandbox,spi";
102                 cs-gpios = <0>, <&gpio_a 0>;
103         };
104 };
105
106 #include "sandbox.dtsi"
107 #include "cros-ec-keyboard.dtsi"
108 #include "sandbox_pmic.dtsi"
109
110 #ifdef CONFIG_SANDBOX_VPL
111 #include "sandbox_vpl.dtsi"
112 #endif