blob: 97e33f110eefdfa2deca80d8c4fcd6dce05b11a2 [file] [log] [blame]
Mario Six61efece2018-02-12 08:05:57 +01001/dts-v1/;
2
Simon Glass07bb5e72019-05-18 11:59:48 -06003#include <config.h>
4
Mario Six61efece2018-02-12 08:05:57 +01005/ {
6 #address-cells = <2>;
7 #size-cells = <2>;
8 model = "sandbox";
Heinrich Schuchardtdeaf2972019-11-09 09:39:01 +01009 compatible = "sandbox";
Mario Six61efece2018-02-12 08:05:57 +010010
11 aliases {
Mario Six61efece2018-02-12 08:05:57 +010012 i2c0 = &i2c_0;
Tom Rini4a3ca482020-02-11 12:41:23 -050013 pci0 = &pcic;
Mario Six61efece2018-02-12 08:05:57 +010014 rtc0 = &rtc_0;
Simon Glass8964f862019-05-18 11:59:40 -060015 axi0 = &axi;
Simon Glassed3698a2019-05-18 11:59:42 -060016 spi0 = &spi;
Mario Six61efece2018-02-12 08:05:57 +010017 };
18
Simon Glass07bb5e72019-05-18 11:59:48 -060019 memory {
20 reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
21 };
22
Simon Glass699c9ca2018-10-01 12:22:08 -060023 cros_ec: cros-ec {
Mario Six61efece2018-02-12 08:05:57 +010024 reg = <0 0 0 0>;
Simon Glass8964f862019-05-18 11:59:40 -060025 u-boot,dm-pre-reloc;
Mario Six61efece2018-02-12 08:05:57 +010026 compatible = "google,cros-ec-sandbox";
Mario Six61efece2018-02-12 08:05:57 +010027 };
28
Joe Hershberger89590c82018-07-02 14:47:54 -050029 ethrawbus {
30 compatible = "sandbox,eth-raw-bus";
31 skip-localhost = <1>;
32 };
33
Mario Six61efece2018-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 Six61efece2018-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 Six61efece2018-02-12 08:05:57 +010048 };
49
Tom Rini4a3ca482020-02-11 12:41:23 -050050 pcic: pci@0 {
Mario Six61efece2018-02-12 08:05:57 +010051 compatible = "sandbox,pci";
52 device_type = "pci";
Tom Rini4a3ca482020-02-11 12:41:23 -050053 bus-range = <0x00 0xff>;
Mario Six61efece2018-02-12 08:05:57 +010054 #address-cells = <3>;
55 #size-cells = <2>;
56 ranges = <0x02000000 0 0x10000000 0 0x10000000 0 0x2000
57 0x01000000 0 0x20000000 0 0x20000000 0 0x2000>;
Mario Six61efece2018-02-12 08:05:57 +010058 };
59
Simon Glassed3698a2019-05-18 11:59:42 -060060 spi: spi@0 {
Simon Glass8964f862019-05-18 11:59:40 -060061 u-boot,dm-pre-reloc;
Mario Six61efece2018-02-12 08:05:57 +010062 #address-cells = <1>;
63 #size-cells = <0>;
64 reg = <0 0 0 0>;
65 compatible = "sandbox,spi";
66 cs-gpios = <0>, <&gpio_a 0>;
Mario Six61efece2018-02-12 08:05:57 +010067 };
68
Mario Six61efece2018-02-12 08:05:57 +010069};
70
Simon Glass28db4692019-05-18 11:59:41 -060071#include "sandbox.dtsi"
Mario Six61efece2018-02-12 08:05:57 +010072#include "cros-ec-keyboard.dtsi"
73#include "sandbox_pmic.dtsi"