blob: 16a33db87d3f3d2a2e3c95017b5ba76b7a4282ba [file] [log] [blame]
Simon Glass714a5622014-02-26 15:59:14 -07001/dts-v1/;
2
Simon Glasse676f432019-05-18 11:59:48 -06003#include <config.h>
4
Simon Glass714a5622014-02-26 15:59:14 -07005/ {
Simon Glass0b304a22014-10-13 23:41:48 -06006 #address-cells = <1>;
Simon Glass20806e72015-03-05 12:25:13 -07007 #size-cells = <1>;
Simon Glassd63b5b42017-06-15 21:37:53 -06008 model = "sandbox";
Simon Glass0b304a22014-10-13 23:41:48 -06009
Simon Glass9569c402015-03-05 12:25:26 -070010 aliases {
Simon Glass46af3602015-04-20 12:37:28 -060011 i2c0 = &i2c_0;
Simon Glass9569c402015-03-05 12:25:26 -070012 pci0 = &pci;
Simon Glass46af3602015-04-20 12:37:28 -060013 rtc0 = &rtc_0;
Mario Six957983e2018-08-09 14:51:19 +020014 axi0 = &axi;
Simon Glass87dac6b2019-05-18 11:59:42 -060015 spi0 = &spi;
Simon Glass9569c402015-03-05 12:25:26 -070016 };
17
Simon Glasse676f432019-05-18 11:59:48 -060018 memory {
19 reg = <0 CONFIG_SYS_SDRAM_SIZE>;
20 };
21
Simon Glasse6c5c942018-10-01 12:22:08 -060022 cros_ec: cros-ec {
Simon Glass3fbb7872015-03-26 09:29:39 -060023 reg = <0 0>;
Simon Glass4a5b5e12018-11-06 15:21:27 -070024 u-boot,dm-pre-reloc;
Simon Glass3fbb7872015-03-26 09:29:39 -060025 compatible = "google,cros-ec-sandbox";
Simon Glass39741c02014-02-27 13:25:59 -070026 };
27
Joe Hershbergerf40a31e2018-07-02 14:47:54 -050028 ethrawbus {
29 compatible = "sandbox,eth-raw-bus";
30 skip-localhost = <0>;
31 };
32
Simon Glassf4d84572015-05-22 15:42:16 -060033 eth@10002000 {
34 compatible = "sandbox,eth";
35 reg = <0x10002000 0x1000>;
36 fake-host-hwaddr = [00 00 66 44 22 00];
37 };
38
Simon Glass46af3602015-04-20 12:37:28 -060039 i2c_0: i2c@0 {
Simon Glass776f96f2014-12-10 08:55:53 -070040 #address-cells = <1>;
41 #size-cells = <0>;
Simon Glass20806e72015-03-05 12:25:13 -070042 reg = <0 0>;
Simon Glass776f96f2014-12-10 08:55:53 -070043 compatible = "sandbox,i2c";
44 clock-frequency = <400000>;
Masahiro Yamada9c6a3c62015-08-27 12:44:30 +090045 pinctrl-names = "default";
46 pinctrl-0 = <&pinctrl_i2c0>;
Simon Glassa89c3a02017-04-10 11:34:51 -060047 };
48
Simon Glass9569c402015-03-05 12:25:26 -070049 pci: pci-controller {
50 compatible = "sandbox,pci";
51 device_type = "pci";
52 #address-cells = <3>;
53 #size-cells = <2>;
54 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
55 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
Simon Glass282e29e2018-12-10 10:37:45 -070056 };
57
Simon Glass87dac6b2019-05-18 11:59:42 -060058 spi: spi@0 {
Simon Glass4a5b5e12018-11-06 15:21:27 -070059 u-boot,dm-pre-reloc;
Simon Glassf4d84572015-05-22 15:42:16 -060060 #address-cells = <1>;
61 #size-cells = <0>;
62 reg = <0 0>;
63 compatible = "sandbox,spi";
64 cs-gpios = <0>, <&gpio_a 0>;
Joe Hershberger3ea143a2015-03-22 17:09:13 -050065 };
Joe Hershbergera346ca72015-03-22 17:09:21 -050066
Simon Glass714a5622014-02-26 15:59:14 -070067};
Simon Glass3fbb7872015-03-26 09:29:39 -060068
Simon Glassdc8c91a2019-05-18 11:59:41 -060069#include "sandbox.dtsi"
Simon Glass3fbb7872015-03-26 09:29:39 -060070#include "cros-ec-keyboard.dtsi"
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +020071#include "sandbox_pmic.dtsi"