blob: 21f00fcab5ee6ca7747e672174c616246a98a589 [file] [log] [blame]
Simon Glass7dcc2f72021-08-18 21:40:25 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Main sandbox devicetree
4 */
5
Simon Glass714a5622014-02-26 15:59:14 -07006/dts-v1/;
7
Simon Glasse676f432019-05-18 11:59:48 -06008#include <config.h>
9
Simon Glass714a5622014-02-26 15:59:14 -070010/ {
Simon Glass0b304a22014-10-13 23:41:48 -060011 #address-cells = <1>;
Simon Glass20806e72015-03-05 12:25:13 -070012 #size-cells = <1>;
Simon Glassd63b5b42017-06-15 21:37:53 -060013 model = "sandbox";
Heinrich Schuchardt15ab77c2019-11-09 09:39:01 +010014 compatible = "sandbox";
Simon Glass0b304a22014-10-13 23:41:48 -060015
Simon Glass9569c402015-03-05 12:25:26 -070016 aliases {
Simon Glass46af3602015-04-20 12:37:28 -060017 i2c0 = &i2c_0;
Tom Rini42c64d12020-02-11 12:41:23 -050018 pci0 = &pcic;
Simon Glass46af3602015-04-20 12:37:28 -060019 rtc0 = &rtc_0;
Mario Six957983e2018-08-09 14:51:19 +020020 axi0 = &axi;
Simon Glass87dac6b2019-05-18 11:59:42 -060021 spi0 = &spi;
Simon Glass9569c402015-03-05 12:25:26 -070022 };
23
Simon Glasse676f432019-05-18 11:59:48 -060024 memory {
25 reg = <0 CONFIG_SYS_SDRAM_SIZE>;
26 };
27
Heinrich Schuchardt1ecea742020-03-14 12:13:39 +010028 reserved-memory {
29 #address-cells = <1>;
30 #size-cells = <1>;
31 ranges;
32
33 reservation_test0 {
34 size = <0x4000>;
35 alignment = <0x2000>;
36 };
37
38 reservation_test1: restest@a000 {
39 reg = <0x00d0a000 0x2000>;
40 };
41
42 reservation_test2: restest@7000 {
43 reg = <0x00d07000 0x1000>;
44 };
45 };
46
Simon Glasse6c5c942018-10-01 12:22:08 -060047 cros_ec: cros-ec {
Simon Glass3fbb7872015-03-26 09:29:39 -060048 reg = <0 0>;
Simon Glass370746a2020-12-19 10:39:56 -070049 u-boot,dm-pre-proper;
Simon Glass3fbb7872015-03-26 09:29:39 -060050 compatible = "google,cros-ec-sandbox";
Simon Glass39741c02014-02-27 13:25:59 -070051 };
52
Yannick Fertré23f965a2019-10-07 15:29:05 +020053 dsi_host: dsi_host {
54 compatible = "sandbox,dsi-host";
55 status = "okay";
56 };
57
Joe Hershbergerf40a31e2018-07-02 14:47:54 -050058 ethrawbus {
59 compatible = "sandbox,eth-raw-bus";
60 skip-localhost = <0>;
61 };
62
Simon Glassf4d84572015-05-22 15:42:16 -060063 eth@10002000 {
64 compatible = "sandbox,eth";
65 reg = <0x10002000 0x1000>;
Simon Glassf4d84572015-05-22 15:42:16 -060066 };
67
Simon Glass7d0478d2022-04-24 23:31:21 -060068 host-fs {
69 compatible = "sandbox,bootdev-host";
70 };
71
Simon Glass46af3602015-04-20 12:37:28 -060072 i2c_0: i2c@0 {
Simon Glass776f96f2014-12-10 08:55:53 -070073 #address-cells = <1>;
74 #size-cells = <0>;
Simon Glass20806e72015-03-05 12:25:13 -070075 reg = <0 0>;
Simon Glass776f96f2014-12-10 08:55:53 -070076 compatible = "sandbox,i2c";
77 clock-frequency = <400000>;
Masahiro Yamada9c6a3c62015-08-27 12:44:30 +090078 pinctrl-names = "default";
79 pinctrl-0 = <&pinctrl_i2c0>;
Simon Glassfbe27a52020-10-03 11:31:36 -060080 u-boot,dm-pre-reloc;
Simon Glassa89c3a02017-04-10 11:34:51 -060081 };
82
Tom Rini42c64d12020-02-11 12:41:23 -050083 pcic: pci@0 {
Simon Glass9569c402015-03-05 12:25:26 -070084 compatible = "sandbox,pci";
85 device_type = "pci";
Tom Rini42c64d12020-02-11 12:41:23 -050086 bus-range = <0x00 0xff>;
Simon Glass9569c402015-03-05 12:25:26 -070087 #address-cells = <3>;
88 #size-cells = <2>;
89 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
90 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
Simon Glass282e29e2018-12-10 10:37:45 -070091 };
92
Simon Glass87dac6b2019-05-18 11:59:42 -060093 spi: spi@0 {
Simon Glass370746a2020-12-19 10:39:56 -070094 u-boot,dm-pre-proper;
Simon Glassf4d84572015-05-22 15:42:16 -060095 #address-cells = <1>;
96 #size-cells = <0>;
97 reg = <0 0>;
98 compatible = "sandbox,spi";
99 cs-gpios = <0>, <&gpio_a 0>;
Joe Hershberger3ea143a2015-03-22 17:09:13 -0500100 };
Simon Glass714a5622014-02-26 15:59:14 -0700101};
Simon Glass3fbb7872015-03-26 09:29:39 -0600102
Simon Glassdc8c91a2019-05-18 11:59:41 -0600103#include "sandbox.dtsi"
Simon Glass3fbb7872015-03-26 09:29:39 -0600104#include "cros-ec-keyboard.dtsi"
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +0200105#include "sandbox_pmic.dtsi"