blob: 9a949791a0eba7eadaaf57461a6260738ea0bcc1 [file] [log] [blame]
Simon Glass714a5622014-02-26 15:59:14 -07001/dts-v1/;
2
3/ {
Simon Glass0b304a22014-10-13 23:41:48 -06004 #address-cells = <1>;
Simon Glass20806e72015-03-05 12:25:13 -07005 #size-cells = <1>;
Simon Glassd63b5b42017-06-15 21:37:53 -06006 model = "sandbox";
Simon Glass0b304a22014-10-13 23:41:48 -06007
Simon Glass9569c402015-03-05 12:25:26 -07008 aliases {
Simon Glass46af3602015-04-20 12:37:28 -06009 i2c0 = &i2c_0;
Simon Glass9569c402015-03-05 12:25:26 -070010 pci0 = &pci;
Simon Glass46af3602015-04-20 12:37:28 -060011 rtc0 = &rtc_0;
Mario Six957983e2018-08-09 14:51:19 +020012 axi0 = &axi;
Simon Glass87dac6b2019-05-18 11:59:42 -060013 spi0 = &spi;
Simon Glass9569c402015-03-05 12:25:26 -070014 };
15
Simon Glasse6c5c942018-10-01 12:22:08 -060016 cros_ec: cros-ec {
Simon Glass3fbb7872015-03-26 09:29:39 -060017 reg = <0 0>;
Simon Glass4a5b5e12018-11-06 15:21:27 -070018 u-boot,dm-pre-reloc;
Simon Glass3fbb7872015-03-26 09:29:39 -060019 compatible = "google,cros-ec-sandbox";
Simon Glass39741c02014-02-27 13:25:59 -070020 };
21
Joe Hershbergerf40a31e2018-07-02 14:47:54 -050022 ethrawbus {
23 compatible = "sandbox,eth-raw-bus";
24 skip-localhost = <0>;
25 };
26
Simon Glassf4d84572015-05-22 15:42:16 -060027 eth@10002000 {
28 compatible = "sandbox,eth";
29 reg = <0x10002000 0x1000>;
30 fake-host-hwaddr = [00 00 66 44 22 00];
31 };
32
Simon Glass46af3602015-04-20 12:37:28 -060033 i2c_0: i2c@0 {
Simon Glass776f96f2014-12-10 08:55:53 -070034 #address-cells = <1>;
35 #size-cells = <0>;
Simon Glass20806e72015-03-05 12:25:13 -070036 reg = <0 0>;
Simon Glass776f96f2014-12-10 08:55:53 -070037 compatible = "sandbox,i2c";
38 clock-frequency = <400000>;
Masahiro Yamada9c6a3c62015-08-27 12:44:30 +090039 pinctrl-names = "default";
40 pinctrl-0 = <&pinctrl_i2c0>;
Simon Glassa89c3a02017-04-10 11:34:51 -060041 };
42
Simon Glass9569c402015-03-05 12:25:26 -070043 pci: pci-controller {
44 compatible = "sandbox,pci";
45 device_type = "pci";
46 #address-cells = <3>;
47 #size-cells = <2>;
48 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
49 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
Simon Glass282e29e2018-12-10 10:37:45 -070050 };
51
Simon Glass87dac6b2019-05-18 11:59:42 -060052 spi: spi@0 {
Simon Glass4a5b5e12018-11-06 15:21:27 -070053 u-boot,dm-pre-reloc;
Simon Glassf4d84572015-05-22 15:42:16 -060054 #address-cells = <1>;
55 #size-cells = <0>;
56 reg = <0 0>;
57 compatible = "sandbox,spi";
58 cs-gpios = <0>, <&gpio_a 0>;
Joe Hershberger3ea143a2015-03-22 17:09:13 -050059 };
Joe Hershbergera346ca72015-03-22 17:09:21 -050060
Simon Glass714a5622014-02-26 15:59:14 -070061};
Simon Glass3fbb7872015-03-26 09:29:39 -060062
Simon Glassdc8c91a2019-05-18 11:59:41 -060063#include "sandbox.dtsi"
Simon Glass3fbb7872015-03-26 09:29:39 -060064#include "cros-ec-keyboard.dtsi"
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +020065#include "sandbox_pmic.dtsi"