blob: 195365580a7a785fac05370ccf547fc536459f9d [file] [log] [blame]
Simon Glass7dcc2f72021-08-18 21:40:25 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Main sandbox64 devicetree
4 */
Mario Sixc6b89f32018-02-12 08:05:57 +01005/dts-v1/;
6
Simon Glasse676f432019-05-18 11:59:48 -06007#include <config.h>
8
Mario Sixc6b89f32018-02-12 08:05:57 +01009/ {
10 #address-cells = <2>;
11 #size-cells = <2>;
12 model = "sandbox";
Heinrich Schuchardt15ab77c2019-11-09 09:39:01 +010013 compatible = "sandbox";
Mario Sixc6b89f32018-02-12 08:05:57 +010014
15 aliases {
Mario Sixc6b89f32018-02-12 08:05:57 +010016 i2c0 = &i2c_0;
Tom Rini42c64d12020-02-11 12:41:23 -050017 pci0 = &pcic;
Mario Sixc6b89f32018-02-12 08:05:57 +010018 rtc0 = &rtc_0;
Simon Glasse8726da2019-05-18 11:59:40 -060019 axi0 = &axi;
Simon Glass87dac6b2019-05-18 11:59:42 -060020 spi0 = &spi;
Mario Sixc6b89f32018-02-12 08:05:57 +010021 };
22
Simon Glasse676f432019-05-18 11:59:48 -060023 memory {
Tom Riniaa6e94d2022-11-16 13:10:37 -050024 reg = /bits/ 64 <0 CFG_SYS_SDRAM_SIZE>;
Simon Glasse676f432019-05-18 11:59:48 -060025 };
26
Heinrich Schuchardt1ecea742020-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 Glasse6c5c942018-10-01 12:22:08 -060047 cros_ec: cros-ec {
Mario Sixc6b89f32018-02-12 08:05:57 +010048 reg = <0 0 0 0>;
Simon Glass8c103c32023-02-13 08:56:33 -070049 bootph-all;
Mario Sixc6b89f32018-02-12 08:05:57 +010050 compatible = "google,cros-ec-sandbox";
Mario Sixc6b89f32018-02-12 08:05:57 +010051 };
52
Joe Hershbergerf40a31e2018-07-02 14:47:54 -050053 ethrawbus {
54 compatible = "sandbox,eth-raw-bus";
55 skip-localhost = <1>;
56 };
57
Mario Sixc6b89f32018-02-12 08:05:57 +010058 eth@10002000 {
59 compatible = "sandbox,eth";
60 reg = <0x0 0x10002000 0x0 0x1000>;
Mario Sixc6b89f32018-02-12 08:05:57 +010061 };
62
Mario Sixc6b89f32018-02-12 08:05:57 +010063 i2c_0: i2c@0 {
64 #address-cells = <1>;
65 #size-cells = <0>;
66 reg = <0 0 0 0>;
67 compatible = "sandbox,i2c";
68 clock-frequency = <400000>;
69 pinctrl-names = "default";
70 pinctrl-0 = <&pinctrl_i2c0>;
Mario Sixc6b89f32018-02-12 08:05:57 +010071 };
72
Tom Rini42c64d12020-02-11 12:41:23 -050073 pcic: pci@0 {
Mario Sixc6b89f32018-02-12 08:05:57 +010074 compatible = "sandbox,pci";
75 device_type = "pci";
Tom Rini42c64d12020-02-11 12:41:23 -050076 bus-range = <0x00 0xff>;
Mario Sixc6b89f32018-02-12 08:05:57 +010077 #address-cells = <3>;
78 #size-cells = <2>;
79 ranges = <0x02000000 0 0x10000000 0 0x10000000 0 0x2000
80 0x01000000 0 0x20000000 0 0x20000000 0 0x2000>;
Simon Glasse8726da2019-05-18 11:59:40 -060081 };
82
Simon Glass87dac6b2019-05-18 11:59:42 -060083 spi: spi@0 {
Simon Glass8c103c32023-02-13 08:56:33 -070084 bootph-all;
Mario Sixc6b89f32018-02-12 08:05:57 +010085 #address-cells = <1>;
86 #size-cells = <0>;
87 reg = <0 0 0 0>;
88 compatible = "sandbox,spi";
89 cs-gpios = <0>, <&gpio_a 0>;
Mario Sixc6b89f32018-02-12 08:05:57 +010090 };
91
Abdellatif El Khlificc89b7c2023-04-17 10:11:55 +010092 nvmxip-qspi1@08000000 {
93 compatible = "nvmxip,qspi";
94 reg = /bits/ 64 <0x08000000 0x00200000>;
95 lba_shift = <9>;
96 lba = <4096>;
97 };
98
99 nvmxip-qspi2@08200000 {
100 compatible = "nvmxip,qspi";
101 reg = /bits/ 64 <0x08200000 0x00100000>;
102 lba_shift = <9>;
103 lba = <2048>;
104 };
Mario Sixc6b89f32018-02-12 08:05:57 +0100105};
106
Simon Glassdc8c91a2019-05-18 11:59:41 -0600107#include "sandbox.dtsi"
Mario Sixc6b89f32018-02-12 08:05:57 +0100108#include "cros-ec-keyboard.dtsi"
109#include "sandbox_pmic.dtsi"