blob: 5c95cee9d7a9fc5c79a269130525b430f795b029 [file] [log] [blame]
Mario Sixc6b89f32018-02-12 08:05:57 +01001/dts-v1/;
2
Simon Glasse676f432019-05-18 11:59:48 -06003#include <config.h>
4
Mario Sixc6b89f32018-02-12 08:05:57 +01005/ {
6 #address-cells = <2>;
7 #size-cells = <2>;
8 model = "sandbox";
Heinrich Schuchardt15ab77c2019-11-09 09:39:01 +01009 compatible = "sandbox";
Mario Sixc6b89f32018-02-12 08:05:57 +010010
11 aliases {
Mario Sixc6b89f32018-02-12 08:05:57 +010012 i2c0 = &i2c_0;
13 pci0 = &pci;
14 rtc0 = &rtc_0;
Simon Glasse8726da2019-05-18 11:59:40 -060015 axi0 = &axi;
Simon Glass87dac6b2019-05-18 11:59:42 -060016 spi0 = &spi;
Mario Sixc6b89f32018-02-12 08:05:57 +010017 };
18
Simon Glasse676f432019-05-18 11:59:48 -060019 memory {
20 reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
21 };
22
Simon Glasse6c5c942018-10-01 12:22:08 -060023 cros_ec: cros-ec {
Mario Sixc6b89f32018-02-12 08:05:57 +010024 reg = <0 0 0 0>;
Simon Glasse8726da2019-05-18 11:59:40 -060025 u-boot,dm-pre-reloc;
Mario Sixc6b89f32018-02-12 08:05:57 +010026 compatible = "google,cros-ec-sandbox";
Mario Sixc6b89f32018-02-12 08:05:57 +010027 };
28
Joe Hershbergerf40a31e2018-07-02 14:47:54 -050029 ethrawbus {
30 compatible = "sandbox,eth-raw-bus";
31 skip-localhost = <1>;
32 };
33
Mario Sixc6b89f32018-02-12 08:05:57 +010034 eth@10002000 {
35 compatible = "sandbox,eth";
36 reg = <0x0 0x10002000 0x0 0x1000>;
37 fake-host-hwaddr = [00 00 66 44 22 00];
38 };
39
Mario Sixc6b89f32018-02-12 08:05:57 +010040 i2c_0: i2c@0 {
41 #address-cells = <1>;
42 #size-cells = <0>;
43 reg = <0 0 0 0>;
44 compatible = "sandbox,i2c";
45 clock-frequency = <400000>;
46 pinctrl-names = "default";
47 pinctrl-0 = <&pinctrl_i2c0>;
Mario Sixc6b89f32018-02-12 08:05:57 +010048 };
49
50 pci: pci-controller {
51 compatible = "sandbox,pci";
52 device_type = "pci";
53 #address-cells = <3>;
54 #size-cells = <2>;
55 ranges = <0x02000000 0 0x10000000 0 0x10000000 0 0x2000
56 0x01000000 0 0x20000000 0 0x20000000 0 0x2000>;
Simon Glasse8726da2019-05-18 11:59:40 -060057 };
58
Simon Glass87dac6b2019-05-18 11:59:42 -060059 spi: spi@0 {
Simon Glasse8726da2019-05-18 11:59:40 -060060 u-boot,dm-pre-reloc;
Mario Sixc6b89f32018-02-12 08:05:57 +010061 #address-cells = <1>;
62 #size-cells = <0>;
63 reg = <0 0 0 0>;
64 compatible = "sandbox,spi";
65 cs-gpios = <0>, <&gpio_a 0>;
Mario Sixc6b89f32018-02-12 08:05:57 +010066 };
67
Mario Sixc6b89f32018-02-12 08:05:57 +010068};
69
Simon Glassdc8c91a2019-05-18 11:59:41 -060070#include "sandbox.dtsi"
Mario Sixc6b89f32018-02-12 08:05:57 +010071#include "cros-ec-keyboard.dtsi"
72#include "sandbox_pmic.dtsi"