Simon Glass | 4cc43bf | 2021-08-18 21:40:25 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Main sandbox devicetree |
| 4 | */ |
| 5 | |
Simon Glass | 66c164b | 2014-02-26 15:59:14 -0700 | [diff] [blame] | 6 | /dts-v1/; |
| 7 | |
Simon Glass | 07bb5e7 | 2019-05-18 11:59:48 -0600 | [diff] [blame] | 8 | #include <config.h> |
| 9 | |
Simon Glass | 66c164b | 2014-02-26 15:59:14 -0700 | [diff] [blame] | 10 | / { |
Simon Glass | fd91fc9 | 2014-10-13 23:41:48 -0600 | [diff] [blame] | 11 | #address-cells = <1>; |
Simon Glass | f905be8 | 2015-03-05 12:25:13 -0700 | [diff] [blame] | 12 | #size-cells = <1>; |
Simon Glass | 00c34d5b | 2017-06-15 21:37:53 -0600 | [diff] [blame] | 13 | model = "sandbox"; |
Heinrich Schuchardt | deaf297 | 2019-11-09 09:39:01 +0100 | [diff] [blame] | 14 | compatible = "sandbox"; |
Simon Glass | fd91fc9 | 2014-10-13 23:41:48 -0600 | [diff] [blame] | 15 | |
Simon Glass | 70778bc | 2015-03-05 12:25:26 -0700 | [diff] [blame] | 16 | aliases { |
Simon Glass | 72138b9 | 2015-04-20 12:37:28 -0600 | [diff] [blame] | 17 | i2c0 = &i2c_0; |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 18 | pci0 = &pcic; |
Simon Glass | 72138b9 | 2015-04-20 12:37:28 -0600 | [diff] [blame] | 19 | rtc0 = &rtc_0; |
Mario Six | 9592215 | 2018-08-09 14:51:19 +0200 | [diff] [blame] | 20 | axi0 = &axi; |
Simon Glass | ed3698a | 2019-05-18 11:59:42 -0600 | [diff] [blame] | 21 | spi0 = &spi; |
Simon Glass | 70778bc | 2015-03-05 12:25:26 -0700 | [diff] [blame] | 22 | }; |
| 23 | |
Simon Glass | 07bb5e7 | 2019-05-18 11:59:48 -0600 | [diff] [blame] | 24 | memory { |
| 25 | reg = <0 CONFIG_SYS_SDRAM_SIZE>; |
| 26 | }; |
| 27 | |
Heinrich Schuchardt | ad93570 | 2020-03-14 12:13:39 +0100 | [diff] [blame] | 28 | 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 Glass | 699c9ca | 2018-10-01 12:22:08 -0600 | [diff] [blame] | 47 | cros_ec: cros-ec { |
Simon Glass | 73f220c | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 48 | reg = <0 0>; |
Simon Glass | e98524a | 2020-12-19 10:39:56 -0700 | [diff] [blame] | 49 | u-boot,dm-pre-proper; |
Simon Glass | 73f220c | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 50 | compatible = "google,cros-ec-sandbox"; |
Simon Glass | 1f6acb5 | 2014-02-27 13:25:59 -0700 | [diff] [blame] | 51 | }; |
| 52 | |
Yannick Fertré | 9712c82 | 2019-10-07 15:29:05 +0200 | [diff] [blame] | 53 | dsi_host: dsi_host { |
| 54 | compatible = "sandbox,dsi-host"; |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
Joe Hershberger | 89590c8 | 2018-07-02 14:47:54 -0500 | [diff] [blame] | 58 | ethrawbus { |
| 59 | compatible = "sandbox,eth-raw-bus"; |
| 60 | skip-localhost = <0>; |
| 61 | }; |
| 62 | |
Simon Glass | 45ab008 | 2015-05-22 15:42:16 -0600 | [diff] [blame] | 63 | eth@10002000 { |
| 64 | compatible = "sandbox,eth"; |
| 65 | reg = <0x10002000 0x1000>; |
Simon Glass | 45ab008 | 2015-05-22 15:42:16 -0600 | [diff] [blame] | 66 | }; |
| 67 | |
Simon Glass | 1b4bc15 | 2022-04-24 23:31:21 -0600 | [diff] [blame] | 68 | host-fs { |
| 69 | compatible = "sandbox,bootdev-host"; |
| 70 | }; |
| 71 | |
Simon Glass | 72138b9 | 2015-04-20 12:37:28 -0600 | [diff] [blame] | 72 | i2c_0: i2c@0 { |
Simon Glass | 4f46a59 | 2014-12-10 08:55:53 -0700 | [diff] [blame] | 73 | #address-cells = <1>; |
| 74 | #size-cells = <0>; |
Simon Glass | f905be8 | 2015-03-05 12:25:13 -0700 | [diff] [blame] | 75 | reg = <0 0>; |
Simon Glass | 4f46a59 | 2014-12-10 08:55:53 -0700 | [diff] [blame] | 76 | compatible = "sandbox,i2c"; |
| 77 | clock-frequency = <400000>; |
Masahiro Yamada | 0b53a75 | 2015-08-27 12:44:30 +0900 | [diff] [blame] | 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&pinctrl_i2c0>; |
Simon Glass | 4d4558e | 2020-10-03 11:31:36 -0600 | [diff] [blame] | 80 | u-boot,dm-pre-reloc; |
Simon Glass | fefc7ba | 2017-04-10 11:34:51 -0600 | [diff] [blame] | 81 | }; |
| 82 | |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 83 | pcic: pci@0 { |
Simon Glass | 70778bc | 2015-03-05 12:25:26 -0700 | [diff] [blame] | 84 | compatible = "sandbox,pci"; |
| 85 | device_type = "pci"; |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 86 | bus-range = <0x00 0xff>; |
Simon Glass | 70778bc | 2015-03-05 12:25:26 -0700 | [diff] [blame] | 87 | #address-cells = <3>; |
| 88 | #size-cells = <2>; |
| 89 | ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 |
| 90 | 0x01000000 0 0x20000000 0x20000000 0 0x2000>; |
Simon Glass | 70778bc | 2015-03-05 12:25:26 -0700 | [diff] [blame] | 91 | }; |
| 92 | |
Simon Glass | ed3698a | 2019-05-18 11:59:42 -0600 | [diff] [blame] | 93 | spi: spi@0 { |
Simon Glass | e98524a | 2020-12-19 10:39:56 -0700 | [diff] [blame] | 94 | u-boot,dm-pre-proper; |
Simon Glass | 45ab008 | 2015-05-22 15:42:16 -0600 | [diff] [blame] | 95 | #address-cells = <1>; |
| 96 | #size-cells = <0>; |
| 97 | reg = <0 0>; |
| 98 | compatible = "sandbox,spi"; |
| 99 | cs-gpios = <0>, <&gpio_a 0>; |
Joe Hershberger | 6ab7699 | 2015-03-22 17:09:13 -0500 | [diff] [blame] | 100 | }; |
Simon Glass | 66c164b | 2014-02-26 15:59:14 -0700 | [diff] [blame] | 101 | }; |
Simon Glass | 73f220c | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 102 | |
Simon Glass | 28db469 | 2019-05-18 11:59:41 -0600 | [diff] [blame] | 103 | #include "sandbox.dtsi" |
Simon Glass | 73f220c | 2015-03-26 09:29:39 -0600 | [diff] [blame] | 104 | #include "cros-ec-keyboard.dtsi" |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 105 | #include "sandbox_pmic.dtsi" |