blob: ec53106af9dca8cc0d0e941e135d275248e104a7 [file] [log] [blame]
Simon Glass4cc43bf2021-08-18 21:40:25 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Main sandbox64 devicetree
4 */
Mario Six61efece2018-02-12 08:05:57 +01005/dts-v1/;
6
Simon Glass07bb5e72019-05-18 11:59:48 -06007#include <config.h>
8
Mario Six61efece2018-02-12 08:05:57 +01009/ {
10 #address-cells = <2>;
11 #size-cells = <2>;
12 model = "sandbox";
Heinrich Schuchardtdeaf2972019-11-09 09:39:01 +010013 compatible = "sandbox";
Mario Six61efece2018-02-12 08:05:57 +010014
15 aliases {
Mario Six61efece2018-02-12 08:05:57 +010016 i2c0 = &i2c_0;
Tom Rini4a3ca482020-02-11 12:41:23 -050017 pci0 = &pcic;
Mario Six61efece2018-02-12 08:05:57 +010018 rtc0 = &rtc_0;
Simon Glass8964f862019-05-18 11:59:40 -060019 axi0 = &axi;
Simon Glassed3698a2019-05-18 11:59:42 -060020 spi0 = &spi;
Mario Six61efece2018-02-12 08:05:57 +010021 };
22
Simon Glass07bb5e72019-05-18 11:59:48 -060023 memory {
24 reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
25 };
26
Heinrich Schuchardtad935702020-03-14 12:13:39 +010027 reserved-memory {
28 #address-cells = <2>;
29 #size-cells = <2>;
30 ranges;
31
32 reservation_test_size {
33 size = <0 0x4000>;
34 alignment = <0 0x2000>;
35 };
36
37 reservation_test@a000 {
38 reg = <0 0x00d0a000 0 0x2000>;
39 };
40
41 reservation_test@7000 {
42 reg = <0 0x00d07000 0 0x1000>;
43 };
44 };
45
46 /* ... */
Simon Glass699c9ca2018-10-01 12:22:08 -060047 cros_ec: cros-ec {
Mario Six61efece2018-02-12 08:05:57 +010048 reg = <0 0 0 0>;
Simon Glass8964f862019-05-18 11:59:40 -060049 u-boot,dm-pre-reloc;
Mario Six61efece2018-02-12 08:05:57 +010050 compatible = "google,cros-ec-sandbox";
Mario Six61efece2018-02-12 08:05:57 +010051 };
52
Joe Hershberger89590c82018-07-02 14:47:54 -050053 ethrawbus {
54 compatible = "sandbox,eth-raw-bus";
55 skip-localhost = <1>;
56 };
57
Mario Six61efece2018-02-12 08:05:57 +010058 eth@10002000 {
59 compatible = "sandbox,eth";
60 reg = <0x0 0x10002000 0x0 0x1000>;
61 fake-host-hwaddr = [00 00 66 44 22 00];
62 };
63
Mario Six61efece2018-02-12 08:05:57 +010064 i2c_0: i2c@0 {
65 #address-cells = <1>;
66 #size-cells = <0>;
67 reg = <0 0 0 0>;
68 compatible = "sandbox,i2c";
69 clock-frequency = <400000>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&pinctrl_i2c0>;
Mario Six61efece2018-02-12 08:05:57 +010072 };
73
Tom Rini4a3ca482020-02-11 12:41:23 -050074 pcic: pci@0 {
Mario Six61efece2018-02-12 08:05:57 +010075 compatible = "sandbox,pci";
76 device_type = "pci";
Tom Rini4a3ca482020-02-11 12:41:23 -050077 bus-range = <0x00 0xff>;
Mario Six61efece2018-02-12 08:05:57 +010078 #address-cells = <3>;
79 #size-cells = <2>;
80 ranges = <0x02000000 0 0x10000000 0 0x10000000 0 0x2000
81 0x01000000 0 0x20000000 0 0x20000000 0 0x2000>;
Mario Six61efece2018-02-12 08:05:57 +010082 };
83
Simon Glassed3698a2019-05-18 11:59:42 -060084 spi: spi@0 {
Simon Glass8964f862019-05-18 11:59:40 -060085 u-boot,dm-pre-reloc;
Mario Six61efece2018-02-12 08:05:57 +010086 #address-cells = <1>;
87 #size-cells = <0>;
88 reg = <0 0 0 0>;
89 compatible = "sandbox,spi";
90 cs-gpios = <0>, <&gpio_a 0>;
Mario Six61efece2018-02-12 08:05:57 +010091 };
92
Mario Six61efece2018-02-12 08:05:57 +010093};
94
Simon Glass28db4692019-05-18 11:59:41 -060095#include "sandbox.dtsi"
Mario Six61efece2018-02-12 08:05:57 +010096#include "cros-ec-keyboard.dtsi"
97#include "sandbox_pmic.dtsi"