Simon Glass | 4cc43bf | 2021-08-18 21:40:25 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Devicetree file for running sandbox tests |
| 4 | * |
| 5 | * This includes lots of extra devices used by various tests. |
| 6 | * |
| 7 | * Note that SPL use the main sandbox.dts file |
| 8 | */ |
| 9 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 10 | /dts-v1/; |
| 11 | |
Eddie James | 1a55a7a | 2023-10-24 10:43:51 -0500 | [diff] [blame] | 12 | #include <config.h> |
Patrick Delaunay | 23aee61 | 2020-01-13 11:35:13 +0100 | [diff] [blame] | 13 | #include <dt-bindings/gpio/gpio.h> |
| 14 | #include <dt-bindings/gpio/sandbox-gpio.h> |
Marek Szyprowski | ad39859 | 2021-02-18 11:33:18 +0100 | [diff] [blame] | 15 | #include <dt-bindings/input/input.h> |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 16 | #include <dt-bindings/pinctrl/sandbox-pinmux.h> |
Jean-Jacques Hiblot | a94b697 | 2020-10-16 16:16:34 +0530 | [diff] [blame] | 17 | #include <dt-bindings/mux/mux.h> |
Patrick Delaunay | 23aee61 | 2020-01-13 11:35:13 +0100 | [diff] [blame] | 18 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 19 | / { |
| 20 | model = "sandbox"; |
| 21 | compatible = "sandbox"; |
| 22 | #address-cells = <1>; |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 23 | #size-cells = <1>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 24 | |
Simon Glass | fef72b7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 25 | aliases { |
| 26 | console = &uart0; |
Michael Walle | 7efcdfd | 2021-02-25 16:51:11 +0100 | [diff] [blame] | 27 | ethernet0 = "/eth@10002000"; |
| 28 | ethernet2 = &swp_0; |
| 29 | ethernet3 = ð_3; |
| 30 | ethernet4 = &dsa_eth0; |
| 31 | ethernet5 = ð_5; |
Sean Anderson | 67d93a4 | 2022-05-05 13:11:30 -0400 | [diff] [blame] | 32 | ethernet6 = "/eth@10004000"; |
| 33 | ethernet7 = &swp_1; |
| 34 | ethernet8 = &phy_eth0; |
Simon Glass | 5620cf8 | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 35 | gpio1 = &gpio_a; |
| 36 | gpio2 = &gpio_b; |
Patrick Delaunay | 28bdaa5 | 2020-01-13 11:35:14 +0100 | [diff] [blame] | 37 | gpio3 = &gpio_c; |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 38 | i2c0 = "/i2c@0"; |
Simon Glass | e4fef74 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 39 | mmc0 = "/mmc0"; |
| 40 | mmc1 = "/mmc1"; |
Simon Glass | f1eba35 | 2022-10-20 18:23:20 -0600 | [diff] [blame] | 41 | mmc2 = "/mmc2"; |
| 42 | mmc3 = "/mmc3"; |
Simon Glass | fff928c | 2023-08-24 13:55:41 -0600 | [diff] [blame] | 43 | mmc4 = "/mmc4"; |
| 44 | mmc5 = "/mmc5"; |
Alexander Gendin | 038cb02 | 2023-10-09 01:24:36 +0000 | [diff] [blame] | 45 | mmc6 = "/mmc6"; |
Mattijs Korpershoek | d77f815 | 2024-07-10 10:40:06 +0200 | [diff] [blame] | 46 | mmc7 = "/mmc7"; |
Guillaume La Roque | 368ad9e | 2024-11-26 09:06:13 +0100 | [diff] [blame] | 47 | mmc8 = "/mmc8"; |
Bin Meng | 408e590 | 2018-08-03 01:14:41 -0700 | [diff] [blame] | 48 | pci0 = &pci0; |
| 49 | pci1 = &pci1; |
Bin Meng | 510dddb | 2018-08-03 01:14:50 -0700 | [diff] [blame] | 50 | pci2 = &pci2; |
Michael Walle | 7c41a22 | 2020-06-02 01:47:09 +0200 | [diff] [blame] | 51 | remoteproc0 = &rproc_1; |
| 52 | remoteproc1 = &rproc_2; |
Simon Glass | 336b295 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 53 | rtc0 = &rtc_0; |
| 54 | rtc1 = &rtc_1; |
Simon Glass | 5b96863 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 55 | spi0 = "/spi@0"; |
Przemyslaw Marczak | 3dbb55e | 2015-05-13 13:38:34 +0200 | [diff] [blame] | 56 | testfdt6 = "/e-test"; |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 57 | testbus3 = "/some-bus"; |
| 58 | testfdt0 = "/some-bus/c-test@0"; |
Simon Glass | 7d5e411 | 2020-12-16 21:20:26 -0700 | [diff] [blame] | 59 | testfdt12 = "/some-bus/c-test@1"; |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 60 | testfdt3 = "/b-test"; |
| 61 | testfdt5 = "/some-bus/c-test@5"; |
| 62 | testfdt8 = "/a-test"; |
Simon Glass | 791a17f | 2020-12-16 21:20:27 -0700 | [diff] [blame] | 63 | testfdtm1 = &testfdtm1; |
Eugeniu Rosca | 5ba71e5 | 2018-05-19 14:13:55 +0200 | [diff] [blame] | 64 | fdt-dummy0 = "/translation-test@8000/dev@0,0"; |
| 65 | fdt-dummy1 = "/translation-test@8000/dev@1,100"; |
| 66 | fdt-dummy2 = "/translation-test@8000/dev@2,200"; |
| 67 | fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42"; |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 68 | usb0 = &usb_0; |
| 69 | usb1 = &usb_1; |
| 70 | usb2 = &usb_2; |
Mario Six | 9592215 | 2018-08-09 14:51:19 +0200 | [diff] [blame] | 71 | axi0 = &axi; |
Mario Six | 02ad6fb | 2018-09-27 09:19:31 +0200 | [diff] [blame] | 72 | osd0 = "/osd"; |
Simon Glass | fef72b7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 73 | }; |
| 74 | |
Eddie James | 1a55a7a | 2023-10-24 10:43:51 -0500 | [diff] [blame] | 75 | reserved-memory { |
| 76 | #address-cells = <1>; |
| 77 | #size-cells = <1>; |
| 78 | ranges; |
| 79 | |
| 80 | event_log: tcg_event_log { |
| 81 | no-map; |
Sughosh Ganu | 3f76868 | 2024-08-26 17:29:32 +0530 | [diff] [blame] | 82 | reg = <(CFG_SYS_SDRAM_BASE + 0x100000) 0x2000>; |
Eddie James | 1a55a7a | 2023-10-24 10:43:51 -0500 | [diff] [blame] | 83 | }; |
| 84 | }; |
| 85 | |
Simon Glass | 5e135d3 | 2022-10-20 18:23:15 -0600 | [diff] [blame] | 86 | binman: binman { |
Philippe Reynes | 462d163 | 2022-03-28 22:56:53 +0200 | [diff] [blame] | 87 | }; |
| 88 | |
Rasmus Villemoes | 30d4d2b | 2021-04-21 11:06:55 +0200 | [diff] [blame] | 89 | config { |
Simon Glass | 0034d96 | 2021-08-07 07:24:01 -0600 | [diff] [blame] | 90 | testing-bool; |
| 91 | testing-int = <123>; |
| 92 | testing-str = "testing"; |
Rasmus Villemoes | 30d4d2b | 2021-04-21 11:06:55 +0200 | [diff] [blame] | 93 | environment { |
| 94 | from_fdt = "yes"; |
| 95 | fdt_env_path = ""; |
| 96 | }; |
| 97 | }; |
| 98 | |
Michal Simek | 43c42bd | 2023-08-31 08:59:05 +0200 | [diff] [blame] | 99 | options { |
| 100 | u-boot { |
| 101 | compatible = "u-boot,config"; |
| 102 | bootscr-ram-offset = /bits/ 64 <0x12345678>; |
Michal Simek | 6a7c1ce | 2023-08-31 09:04:27 +0200 | [diff] [blame] | 103 | bootscr-flash-offset = /bits/ 64 <0>; |
| 104 | bootscr-flash-size = /bits/ 64 <0x2000>; |
Christian Marangi | fd53ad4 | 2024-11-10 12:50:27 +0100 | [diff] [blame] | 105 | boot-led = <&sandbox_led_green>; |
| 106 | activity-led = <&sandbox_led_red>; |
Christian Marangi | cdc3815 | 2024-10-01 14:24:44 +0200 | [diff] [blame] | 107 | testing-bool; |
| 108 | testing-int = <123>; |
| 109 | testing-str = "testing"; |
Christian Marangi | 81ce47e | 2024-11-10 12:50:25 +0100 | [diff] [blame] | 110 | testing-phandle = <&phandle_node_1>; |
Michal Simek | 43c42bd | 2023-08-31 08:59:05 +0200 | [diff] [blame] | 111 | }; |
| 112 | }; |
| 113 | |
Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 114 | bootstd { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 115 | bootph-verify; |
Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 116 | compatible = "u-boot,boot-std"; |
| 117 | |
| 118 | filename-prefixes = "/", "/boot/"; |
| 119 | bootdev-order = "mmc2", "mmc1"; |
| 120 | |
Simon Glass | b71d7f7 | 2023-05-10 16:34:46 -0600 | [diff] [blame] | 121 | extlinux { |
| 122 | compatible = "u-boot,extlinux"; |
Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 123 | }; |
| 124 | |
| 125 | efi { |
| 126 | compatible = "u-boot,distro-efi"; |
| 127 | }; |
Simon Glass | a928961 | 2022-10-20 18:23:14 -0600 | [diff] [blame] | 128 | |
Simon Glass | d2bc33ed | 2023-01-06 08:52:41 -0600 | [diff] [blame] | 129 | theme { |
| 130 | font-size = <30>; |
Simon Glass | 86f1ac5 | 2023-06-01 10:23:00 -0600 | [diff] [blame] | 131 | menu-inset = <3>; |
| 132 | menuitem-gap-y = <1>; |
Simon Glass | d2bc33ed | 2023-01-06 08:52:41 -0600 | [diff] [blame] | 133 | }; |
| 134 | |
Simon Glass | 82adc29 | 2023-08-14 16:40:30 -0600 | [diff] [blame] | 135 | cedit-theme { |
| 136 | font-size = <30>; |
| 137 | menu-inset = <3>; |
| 138 | menuitem-gap-y = <1>; |
| 139 | }; |
| 140 | |
Simon Glass | f1eba35 | 2022-10-20 18:23:20 -0600 | [diff] [blame] | 141 | /* |
| 142 | * This is used for the VBE OS-request tests. A FAT filesystem |
| 143 | * created in a partition with the VBE information appearing |
Michal Simek | 3322437 | 2023-09-07 14:55:48 +0200 | [diff] [blame] | 144 | * before the partition starts |
Simon Glass | f1eba35 | 2022-10-20 18:23:20 -0600 | [diff] [blame] | 145 | */ |
Simon Glass | a928961 | 2022-10-20 18:23:14 -0600 | [diff] [blame] | 146 | firmware0 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 147 | bootph-verify; |
Simon Glass | a928961 | 2022-10-20 18:23:14 -0600 | [diff] [blame] | 148 | compatible = "fwupd,vbe-simple"; |
| 149 | storage = "mmc1"; |
| 150 | skip-offset = <0x200>; |
| 151 | area-start = <0x400>; |
| 152 | area-size = <0x1000>; |
| 153 | state-offset = <0x400>; |
| 154 | state-size = <0x40>; |
| 155 | version-offset = <0x800>; |
| 156 | version-size = <0x100>; |
| 157 | }; |
Simon Glass | f1eba35 | 2022-10-20 18:23:20 -0600 | [diff] [blame] | 158 | |
| 159 | /* |
| 160 | * This is used for the VBE VPL tests. The MMC device holds the |
| 161 | * binman image.bin file. The test progresses through each phase |
| 162 | * of U-Boot, loading each in turn from MMC. |
| 163 | * |
| 164 | * Note that the test enables this node (and mmc3) before |
| 165 | * running U-Boot |
| 166 | */ |
| 167 | firmware1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 168 | bootph-verify; |
Simon Glass | f1eba35 | 2022-10-20 18:23:20 -0600 | [diff] [blame] | 169 | status = "disabled"; |
| 170 | compatible = "fwupd,vbe-simple"; |
| 171 | storage = "mmc3"; |
Simon Glass | 9bb73e3 | 2023-04-02 14:01:24 +1200 | [diff] [blame] | 172 | skip-offset = <0x800000>; |
Simon Glass | f1eba35 | 2022-10-20 18:23:20 -0600 | [diff] [blame] | 173 | area-start = <0>; |
| 174 | area-size = <0xe00000>; |
| 175 | state-offset = <0xdffc00>; |
| 176 | state-size = <0x40>; |
| 177 | version-offset = <0xdffe00>; |
| 178 | version-size = <0x100>; |
| 179 | }; |
Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 180 | }; |
| 181 | |
Simon Glass | 6130072 | 2023-06-01 10:23:01 -0600 | [diff] [blame] | 182 | cedit: cedit { |
| 183 | }; |
| 184 | |
Andrew Scull | 451b8b1 | 2022-05-30 10:00:12 +0000 | [diff] [blame] | 185 | fuzzing-engine { |
| 186 | compatible = "sandbox,fuzzing-engine"; |
| 187 | }; |
| 188 | |
Nandor Han | 6521e5d | 2021-06-10 16:56:44 +0300 | [diff] [blame] | 189 | reboot-mode0 { |
| 190 | compatible = "reboot-mode-gpio"; |
| 191 | gpios = <&gpio_c 0 GPIO_ACTIVE_HIGH>, <&gpio_c 1 GPIO_ACTIVE_HIGH>; |
| 192 | u-boot,env-variable = "bootstatus"; |
| 193 | mode-test = <0x01>; |
| 194 | mode-download = <0x03>; |
| 195 | }; |
| 196 | |
Nandor Han | 7e4067a | 2021-06-10 16:56:45 +0300 | [diff] [blame] | 197 | reboot_mode1: reboot-mode@14 { |
| 198 | compatible = "reboot-mode-rtc"; |
| 199 | rtc = <&rtc_0>; |
| 200 | reg = <0x30 4>; |
| 201 | u-boot,env-variable = "bootstatus"; |
| 202 | big-endian; |
| 203 | mode-test = <0x21969147>; |
| 204 | mode-download = <0x51939147>; |
| 205 | }; |
| 206 | |
Simon Glass | ed96cde | 2018-12-10 10:37:33 -0700 | [diff] [blame] | 207 | audio: audio-codec { |
| 208 | compatible = "sandbox,audio-codec"; |
| 209 | #sound-dai-cells = <1>; |
| 210 | }; |
| 211 | |
Philippe Reynes | 1ee2648 | 2020-07-24 18:19:51 +0200 | [diff] [blame] | 212 | buttons { |
| 213 | compatible = "gpio-keys"; |
| 214 | |
Heinrich Schuchardt | 57c2fc6 | 2020-09-14 12:50:54 +0200 | [diff] [blame] | 215 | btn1 { |
Philippe Reynes | 1ee2648 | 2020-07-24 18:19:51 +0200 | [diff] [blame] | 216 | gpios = <&gpio_a 3 0>; |
Heinrich Schuchardt | 57c2fc6 | 2020-09-14 12:50:54 +0200 | [diff] [blame] | 217 | label = "button1"; |
Dzmitry Sankouski | 157f2c5 | 2023-01-22 18:21:24 +0300 | [diff] [blame] | 218 | linux,code = <BTN_1>; |
Philippe Reynes | 1ee2648 | 2020-07-24 18:19:51 +0200 | [diff] [blame] | 219 | }; |
| 220 | |
Heinrich Schuchardt | 57c2fc6 | 2020-09-14 12:50:54 +0200 | [diff] [blame] | 221 | btn2 { |
Philippe Reynes | 1ee2648 | 2020-07-24 18:19:51 +0200 | [diff] [blame] | 222 | gpios = <&gpio_a 4 0>; |
Heinrich Schuchardt | 57c2fc6 | 2020-09-14 12:50:54 +0200 | [diff] [blame] | 223 | label = "button2"; |
Dzmitry Sankouski | 157f2c5 | 2023-01-22 18:21:24 +0300 | [diff] [blame] | 224 | linux,code = <BTN_2>; |
Philippe Reynes | 1ee2648 | 2020-07-24 18:19:51 +0200 | [diff] [blame] | 225 | }; |
| 226 | }; |
| 227 | |
Marek Szyprowski | ad39859 | 2021-02-18 11:33:18 +0100 | [diff] [blame] | 228 | buttons2 { |
| 229 | compatible = "adc-keys"; |
| 230 | io-channels = <&adc 3>; |
| 231 | keyup-threshold-microvolt = <3000000>; |
| 232 | |
| 233 | button-up { |
| 234 | label = "button3"; |
| 235 | linux,code = <KEY_F3>; |
| 236 | press-threshold-microvolt = <1500000>; |
| 237 | }; |
| 238 | |
| 239 | button-down { |
| 240 | label = "button4"; |
| 241 | linux,code = <KEY_F4>; |
| 242 | press-threshold-microvolt = <1000000>; |
| 243 | }; |
| 244 | |
| 245 | button-enter { |
| 246 | label = "button5"; |
| 247 | linux,code = <KEY_F5>; |
| 248 | press-threshold-microvolt = <500000>; |
| 249 | }; |
| 250 | }; |
| 251 | |
Simon Glass | c953aaf | 2018-12-10 10:37:34 -0700 | [diff] [blame] | 252 | cros_ec: cros-ec { |
Simon Glass | 699c9ca | 2018-10-01 12:22:08 -0600 | [diff] [blame] | 253 | reg = <0 0>; |
| 254 | compatible = "google,cros-ec-sandbox"; |
| 255 | |
| 256 | /* |
| 257 | * This describes the flash memory within the EC. Note |
| 258 | * that the STM32L flash erases to 0, not 0xff. |
| 259 | */ |
| 260 | flash { |
| 261 | image-pos = <0x08000000>; |
| 262 | size = <0x20000>; |
| 263 | erase-value = <0>; |
| 264 | |
| 265 | /* Information for sandbox */ |
| 266 | ro { |
| 267 | image-pos = <0>; |
| 268 | size = <0xf000>; |
| 269 | }; |
| 270 | wp-ro { |
| 271 | image-pos = <0xf000>; |
| 272 | size = <0x1000>; |
Simon Glass | bf0a692 | 2021-01-21 13:57:14 -0700 | [diff] [blame] | 273 | used = <0x884>; |
| 274 | compress = "lz4"; |
| 275 | uncomp-size = <0xcf8>; |
| 276 | hash { |
| 277 | algo = "sha256"; |
| 278 | value = [00 01 02 03 04 05 06 07 |
| 279 | 08 09 0a 0b 0c 0d 0e 0f |
| 280 | 10 11 12 13 14 15 16 17 |
| 281 | 18 19 1a 1b 1c 1d 1e 1f]; |
| 282 | }; |
Simon Glass | 699c9ca | 2018-10-01 12:22:08 -0600 | [diff] [blame] | 283 | }; |
| 284 | rw { |
| 285 | image-pos = <0x10000>; |
| 286 | size = <0x10000>; |
| 287 | }; |
| 288 | }; |
Alper Nebi Yasak | 8a8cd4f | 2021-05-19 19:33:31 +0300 | [diff] [blame] | 289 | |
| 290 | cros_ec_pwm: cros-ec-pwm { |
| 291 | compatible = "google,cros-ec-pwm"; |
| 292 | #pwm-cells = <1>; |
| 293 | }; |
| 294 | |
Simon Glass | 699c9ca | 2018-10-01 12:22:08 -0600 | [diff] [blame] | 295 | }; |
| 296 | |
Yannick Fertré | 9712c82 | 2019-10-07 15:29:05 +0200 | [diff] [blame] | 297 | dsi_host: dsi_host { |
| 298 | compatible = "sandbox,dsi-host"; |
| 299 | }; |
| 300 | |
Christian Marangi | a1a1e0e | 2024-11-10 12:50:23 +0100 | [diff] [blame] | 301 | phandle_node_1: phandle-node-1 { |
| 302 | }; |
| 303 | |
| 304 | phandle_node_2: phandle-node-2 { |
| 305 | }; |
| 306 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 307 | a-test { |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 308 | reg = <0 1>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 309 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 310 | ping-expect = <0>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 311 | ping-add = <0>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 312 | bootph-all; |
Patrick Delaunay | 23aee61 | 2020-01-13 11:35:13 +0100 | [diff] [blame] | 313 | test-gpios = <&gpio_a 1>, <&gpio_a 4>, |
| 314 | <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>, |
Simon Glass | 16e1040 | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 315 | <0>, <&gpio_a 12>; |
Patrick Delaunay | 23aee61 | 2020-01-13 11:35:13 +0100 | [diff] [blame] | 316 | test2-gpios = <&gpio_a 1>, <&gpio_a 4>, |
| 317 | <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>, |
| 318 | <&gpio_b 7 GPIO_IN 3 2 1>, |
| 319 | <&gpio_b 8 GPIO_OUT 3 2 1>, |
| 320 | <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>; |
Patrick Delaunay | 28bdaa5 | 2020-01-13 11:35:14 +0100 | [diff] [blame] | 321 | test3-gpios = |
| 322 | <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>, |
| 323 | <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>, |
| 324 | <&gpio_c 2 GPIO_OUT>, |
| 325 | <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>, |
| 326 | <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>, |
Neil Armstrong | 643778b | 2020-05-05 10:43:18 +0200 | [diff] [blame] | 327 | <&gpio_c 5 GPIO_IN>, |
| 328 | <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>, |
| 329 | <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>; |
Jean-Jacques Hiblot | 7387340 | 2020-09-11 13:43:35 +0530 | [diff] [blame] | 330 | test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>; |
| 331 | test5-gpios = <&gpio_a 19>; |
| 332 | |
Simon Glass | 7302539 | 2021-10-23 17:26:04 -0600 | [diff] [blame] | 333 | bool-value; |
Stefan Herbrechtsmeier | 1b090e6 | 2022-06-14 15:21:30 +0200 | [diff] [blame] | 334 | int8-value = /bits/ 8 <0x12>; |
| 335 | int16-value = /bits/ 16 <0x1234>; |
Simon Glass | 6df01f9 | 2018-12-10 10:37:37 -0700 | [diff] [blame] | 336 | int-value = <1234>; |
| 337 | uint-value = <(-1234)>; |
Dario Binacchi | 421e81e | 2020-03-29 18:04:40 +0200 | [diff] [blame] | 338 | int64-value = /bits/ 64 <0x1111222233334444>; |
Dario Binacchi | 81d80b5 | 2020-03-29 18:04:41 +0200 | [diff] [blame] | 339 | int-array = <5678 9123 4567>; |
Michal Simek | 08a194e | 2023-08-25 11:37:46 +0200 | [diff] [blame] | 340 | int64-array = /bits/ 64 <0x1111222233334444 0x4444333322221111>; |
Simon Glass | dd0ed90 | 2020-07-07 13:11:58 -0600 | [diff] [blame] | 341 | str-value = "test string"; |
Simon Glass | 515dcff | 2020-02-06 09:55:00 -0700 | [diff] [blame] | 342 | interrupts-extended = <&irq 3 0>; |
Simon Glass | 0964239 | 2020-07-07 13:12:11 -0600 | [diff] [blame] | 343 | acpi,name = "GHIJ"; |
Patrick Delaunay | 8cd2801 | 2020-09-25 09:41:16 +0200 | [diff] [blame] | 344 | phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>; |
Christian Marangi | a1a1e0e | 2024-11-10 12:50:23 +0100 | [diff] [blame] | 345 | phandle-nodes = <&phandle_node_1>, <&phandle_node_2>; |
Jean-Jacques Hiblot | a94b697 | 2020-10-16 16:16:34 +0530 | [diff] [blame] | 346 | |
| 347 | mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>, |
| 348 | <&muxcontroller0 2>, <&muxcontroller0 3>, |
| 349 | <&muxcontroller1>; |
| 350 | mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4"; |
| 351 | mux-syscon = <&syscon3>; |
Dario Binacchi | 836cc9d | 2020-12-30 00:16:26 +0100 | [diff] [blame] | 352 | display-timings { |
| 353 | timing0: 240x320 { |
| 354 | clock-frequency = <6500000>; |
| 355 | hactive = <240>; |
| 356 | vactive = <320>; |
| 357 | hfront-porch = <6>; |
| 358 | hback-porch = <7>; |
| 359 | hsync-len = <1>; |
| 360 | vback-porch = <5>; |
| 361 | vfront-porch = <8>; |
| 362 | vsync-len = <2>; |
| 363 | hsync-active = <1>; |
| 364 | vsync-active = <0>; |
| 365 | de-active = <1>; |
| 366 | pixelclk-active = <1>; |
| 367 | interlaced; |
| 368 | doublescan; |
| 369 | doubleclk; |
| 370 | }; |
| 371 | timing1: 480x800 { |
| 372 | clock-frequency = <9000000>; |
| 373 | hactive = <480>; |
| 374 | vactive = <800>; |
| 375 | hfront-porch = <10>; |
| 376 | hback-porch = <59>; |
| 377 | hsync-len = <12>; |
| 378 | vback-porch = <15>; |
| 379 | vfront-porch = <17>; |
| 380 | vsync-len = <16>; |
| 381 | hsync-active = <0>; |
| 382 | vsync-active = <1>; |
| 383 | de-active = <0>; |
| 384 | pixelclk-active = <0>; |
| 385 | }; |
| 386 | timing2: 800x480 { |
| 387 | clock-frequency = <33500000>; |
| 388 | hactive = <800>; |
| 389 | vactive = <480>; |
| 390 | hback-porch = <89>; |
| 391 | hfront-porch = <164>; |
| 392 | vback-porch = <23>; |
| 393 | vfront-porch = <10>; |
| 394 | hsync-len = <11>; |
| 395 | vsync-len = <13>; |
| 396 | }; |
| 397 | }; |
Raphael Gallais-Pou | a853b92 | 2023-05-11 16:36:52 +0200 | [diff] [blame] | 398 | panel-timing { |
Nikhil M Jain | bb9d131 | 2023-01-31 15:35:15 +0530 | [diff] [blame] | 399 | clock-frequency = <6500000>; |
| 400 | hactive = <240>; |
| 401 | vactive = <320>; |
| 402 | hfront-porch = <6>; |
| 403 | hback-porch = <7>; |
| 404 | hsync-len = <1>; |
| 405 | vback-porch = <5>; |
| 406 | vfront-porch = <8>; |
| 407 | vsync-len = <2>; |
| 408 | hsync-active = <1>; |
| 409 | vsync-active = <0>; |
| 410 | de-active = <1>; |
| 411 | pixelclk-active = <1>; |
| 412 | interlaced; |
| 413 | doublescan; |
| 414 | doubleclk; |
| 415 | }; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 416 | }; |
| 417 | |
| 418 | junk { |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 419 | reg = <1 1>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 420 | compatible = "not,compatible"; |
| 421 | }; |
| 422 | |
| 423 | no-compatible { |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 424 | reg = <2 1>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 425 | }; |
| 426 | |
Simon Glass | 5620cf8 | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 427 | backlight: backlight { |
| 428 | compatible = "pwm-backlight"; |
| 429 | enable-gpios = <&gpio_a 1>; |
| 430 | power-supply = <&ldo_1>; |
| 431 | pwms = <&pwm 0 1000>; |
| 432 | default-brightness-level = <5>; |
| 433 | brightness-levels = <0 16 32 64 128 170 202 234 255>; |
| 434 | }; |
| 435 | |
Jean-Jacques Hiblot | e83a31b | 2018-08-09 16:17:46 +0200 | [diff] [blame] | 436 | bind-test { |
Patrice Chotard | 7b7f939 | 2020-07-28 09:13:33 +0200 | [diff] [blame] | 437 | compatible = "simple-bus"; |
Jean-Jacques Hiblot | e83a31b | 2018-08-09 16:17:46 +0200 | [diff] [blame] | 438 | bind-test-child1 { |
| 439 | compatible = "sandbox,phy"; |
| 440 | #phy-cells = <1>; |
| 441 | }; |
| 442 | |
| 443 | bind-test-child2 { |
| 444 | compatible = "simple-bus"; |
| 445 | }; |
| 446 | }; |
| 447 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 448 | b-test { |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 449 | reg = <3 1>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 450 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 451 | ping-expect = <3>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 452 | ping-add = <3>; |
Jean-Jacques Hiblot | a94b697 | 2020-10-16 16:16:34 +0530 | [diff] [blame] | 453 | |
| 454 | mux-controls = <&muxcontroller0 0>; |
| 455 | mux-control-names = "mux0"; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 456 | }; |
| 457 | |
Jean-Jacques Hiblot | 7e9db02 | 2017-04-24 11:51:28 +0200 | [diff] [blame] | 458 | phy_provider0: gen_phy@0 { |
| 459 | compatible = "sandbox,phy"; |
| 460 | #phy-cells = <1>; |
| 461 | }; |
| 462 | |
| 463 | phy_provider1: gen_phy@1 { |
| 464 | compatible = "sandbox,phy"; |
| 465 | #phy-cells = <0>; |
| 466 | broken; |
| 467 | }; |
| 468 | |
developer | 7109297 | 2020-05-02 11:35:12 +0200 | [diff] [blame] | 469 | phy_provider2: gen_phy@2 { |
| 470 | compatible = "sandbox,phy"; |
| 471 | #phy-cells = <0>; |
| 472 | }; |
| 473 | |
Jonas Karlman | 9f89e68 | 2023-08-31 22:16:35 +0000 | [diff] [blame] | 474 | phy_provider3: gen_phy@3 { |
| 475 | compatible = "sandbox,phy"; |
| 476 | #phy-cells = <2>; |
| 477 | }; |
| 478 | |
Jean-Jacques Hiblot | 7e9db02 | 2017-04-24 11:51:28 +0200 | [diff] [blame] | 479 | gen_phy_user: gen_phy_user { |
| 480 | compatible = "simple-bus"; |
| 481 | phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>; |
| 482 | phy-names = "phy1", "phy2", "phy3"; |
| 483 | }; |
| 484 | |
developer | 7109297 | 2020-05-02 11:35:12 +0200 | [diff] [blame] | 485 | gen_phy_user1: gen_phy_user1 { |
| 486 | compatible = "simple-bus"; |
| 487 | phys = <&phy_provider0 0>, <&phy_provider2>; |
| 488 | phy-names = "phy1", "phy2"; |
| 489 | }; |
| 490 | |
Jonas Karlman | 9f89e68 | 2023-08-31 22:16:35 +0000 | [diff] [blame] | 491 | gen_phy_user2: gen_phy_user2 { |
| 492 | compatible = "simple-bus"; |
| 493 | phys = <&phy_provider3 0 0>; |
| 494 | phy-names = "phy1"; |
| 495 | }; |
| 496 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 497 | some-bus { |
| 498 | #address-cells = <1>; |
| 499 | #size-cells = <0>; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 500 | compatible = "denx,u-boot-test-bus"; |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 501 | reg = <3 1>; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 502 | ping-expect = <4>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 503 | ping-add = <4>; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 504 | c-test@5 { |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 505 | compatible = "denx,u-boot-fdt-test"; |
| 506 | reg = <5>; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 507 | ping-expect = <5>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 508 | ping-add = <5>; |
| 509 | }; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 510 | c-test@0 { |
| 511 | compatible = "denx,u-boot-fdt-test"; |
| 512 | reg = <0>; |
| 513 | ping-expect = <6>; |
| 514 | ping-add = <6>; |
| 515 | }; |
| 516 | c-test@1 { |
| 517 | compatible = "denx,u-boot-fdt-test"; |
| 518 | reg = <1>; |
| 519 | ping-expect = <7>; |
| 520 | ping-add = <7>; |
| 521 | }; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 522 | }; |
| 523 | |
| 524 | d-test { |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 525 | reg = <3 1>; |
Simon Glass | db6f020 | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 526 | ping-expect = <6>; |
| 527 | ping-add = <6>; |
| 528 | compatible = "google,another-fdt-test"; |
| 529 | }; |
| 530 | |
| 531 | e-test { |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 532 | reg = <3 1>; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 533 | ping-expect = <6>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 534 | ping-add = <6>; |
| 535 | compatible = "google,another-fdt-test"; |
| 536 | }; |
| 537 | |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 538 | f-test { |
Patrick Rudolph | 0fe88cc | 2024-10-23 15:20:05 +0200 | [diff] [blame] | 539 | #interrupt-cells = <2>; |
| 540 | interrupt-parent = <&irq>; |
| 541 | interrupts = <4 0>; |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 542 | compatible = "denx,u-boot-fdt-test"; |
| 543 | }; |
| 544 | |
| 545 | g-test { |
| 546 | compatible = "denx,u-boot-fdt-test"; |
| 547 | }; |
| 548 | |
Bin Meng | d9d2478 | 2018-10-10 22:07:01 -0700 | [diff] [blame] | 549 | h-test { |
| 550 | compatible = "denx,u-boot-fdt-test1"; |
| 551 | }; |
| 552 | |
developer | cf8bc13 | 2020-05-02 11:35:10 +0200 | [diff] [blame] | 553 | i-test { |
| 554 | compatible = "mediatek,u-boot-fdt-test"; |
| 555 | #address-cells = <1>; |
| 556 | #size-cells = <0>; |
| 557 | |
| 558 | subnode@0 { |
| 559 | reg = <0>; |
| 560 | }; |
| 561 | |
| 562 | subnode@1 { |
| 563 | reg = <1>; |
| 564 | }; |
| 565 | |
| 566 | subnode@2 { |
| 567 | reg = <2>; |
| 568 | }; |
| 569 | }; |
| 570 | |
Simon Glass | 204675c | 2019-12-29 21:19:25 -0700 | [diff] [blame] | 571 | devres-test { |
| 572 | compatible = "denx,u-boot-devres-test"; |
| 573 | }; |
| 574 | |
Jean-Jacques Hiblot | 7387340 | 2020-09-11 13:43:35 +0530 | [diff] [blame] | 575 | another-test { |
| 576 | reg = <0 2>; |
| 577 | compatible = "denx,u-boot-fdt-test"; |
| 578 | test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>; |
| 579 | test5-gpios = <&gpio_a 19>; |
| 580 | }; |
| 581 | |
Nicolas Saenz Julienne | 22b7f7e | 2021-01-12 13:55:23 +0100 | [diff] [blame] | 582 | mmio-bus@0 { |
| 583 | #address-cells = <1>; |
| 584 | #size-cells = <1>; |
| 585 | compatible = "denx,u-boot-test-bus"; |
| 586 | dma-ranges = <0x10000000 0x00000000 0x00040000>; |
| 587 | |
| 588 | subnode@0 { |
| 589 | compatible = "denx,u-boot-fdt-test"; |
| 590 | }; |
| 591 | }; |
| 592 | |
| 593 | mmio-bus@1 { |
| 594 | #address-cells = <1>; |
| 595 | #size-cells = <1>; |
| 596 | compatible = "denx,u-boot-test-bus"; |
Nicolas Saenz Julienne | 892e9b4 | 2021-01-12 13:55:25 +0100 | [diff] [blame] | 597 | |
| 598 | subnode@0 { |
| 599 | compatible = "denx,u-boot-fdt-test"; |
| 600 | }; |
Nicolas Saenz Julienne | 22b7f7e | 2021-01-12 13:55:23 +0100 | [diff] [blame] | 601 | }; |
| 602 | |
Simon Glass | 3c601b1 | 2020-07-07 13:12:06 -0600 | [diff] [blame] | 603 | acpi_test1: acpi-test { |
Simon Glass | 2d67fdf | 2020-04-08 16:57:34 -0600 | [diff] [blame] | 604 | compatible = "denx,u-boot-acpi-test"; |
Simon Glass | d43e0ba | 2020-07-07 13:12:03 -0600 | [diff] [blame] | 605 | acpi-ssdt-test-data = "ab"; |
Simon Glass | 990cd5b | 2020-07-07 13:12:08 -0600 | [diff] [blame] | 606 | acpi-dsdt-test-data = "hi"; |
Simon Glass | ebb2e83 | 2020-07-07 13:11:39 -0600 | [diff] [blame] | 607 | child { |
| 608 | compatible = "denx,u-boot-acpi-test"; |
| 609 | }; |
Simon Glass | 2d67fdf | 2020-04-08 16:57:34 -0600 | [diff] [blame] | 610 | }; |
| 611 | |
Simon Glass | 3c601b1 | 2020-07-07 13:12:06 -0600 | [diff] [blame] | 612 | acpi_test2: acpi-test2 { |
Simon Glass | 17968c3 | 2020-04-26 09:19:46 -0600 | [diff] [blame] | 613 | compatible = "denx,u-boot-acpi-test"; |
Simon Glass | d43e0ba | 2020-07-07 13:12:03 -0600 | [diff] [blame] | 614 | acpi-ssdt-test-data = "cd"; |
Simon Glass | 990cd5b | 2020-07-07 13:12:08 -0600 | [diff] [blame] | 615 | acpi-dsdt-test-data = "jk"; |
Simon Glass | 17968c3 | 2020-04-26 09:19:46 -0600 | [diff] [blame] | 616 | }; |
| 617 | |
Patrice Chotard | 9cc2d14 | 2017-09-04 14:55:57 +0200 | [diff] [blame] | 618 | clocks { |
| 619 | clk_fixed: clk-fixed { |
| 620 | compatible = "fixed-clock"; |
| 621 | #clock-cells = <0>; |
| 622 | clock-frequency = <1234>; |
| 623 | }; |
Anup Patel | 8d28c3c | 2019-02-25 08:14:55 +0000 | [diff] [blame] | 624 | |
| 625 | clk_fixed_factor: clk-fixed-factor { |
| 626 | compatible = "fixed-factor-clock"; |
| 627 | #clock-cells = <0>; |
| 628 | clock-div = <3>; |
| 629 | clock-mult = <2>; |
| 630 | clocks = <&clk_fixed>; |
| 631 | }; |
Lukasz Majewski | ccafcdd | 2019-06-24 15:50:47 +0200 | [diff] [blame] | 632 | |
| 633 | osc { |
| 634 | compatible = "fixed-clock"; |
| 635 | #clock-cells = <0>; |
| 636 | clock-frequency = <20000000>; |
| 637 | }; |
Stephen Warren | a962243 | 2016-06-17 09:44:00 -0600 | [diff] [blame] | 638 | }; |
| 639 | |
| 640 | clk_sandbox: clk-sbox { |
Simon Glass | 8cc4d82 | 2015-07-06 12:54:24 -0600 | [diff] [blame] | 641 | compatible = "sandbox,clk"; |
Stephen Warren | a962243 | 2016-06-17 09:44:00 -0600 | [diff] [blame] | 642 | #clock-cells = <1>; |
Jean-Jacques Hiblot | c1e9c94 | 2019-10-22 14:00:07 +0200 | [diff] [blame] | 643 | assigned-clocks = <&clk_sandbox 3>; |
| 644 | assigned-clock-rates = <321>; |
Stephen Warren | a962243 | 2016-06-17 09:44:00 -0600 | [diff] [blame] | 645 | }; |
| 646 | |
| 647 | clk-test { |
| 648 | compatible = "sandbox,clk-test"; |
| 649 | clocks = <&clk_fixed>, |
| 650 | <&clk_sandbox 1>, |
Jean-Jacques Hiblot | 98e8418 | 2019-10-22 14:00:05 +0200 | [diff] [blame] | 651 | <&clk_sandbox 0>, |
Yang Xiwen | e89289c | 2023-12-16 02:28:52 +0800 | [diff] [blame] | 652 | <&ccf 11>, |
Jean-Jacques Hiblot | 98e8418 | 2019-10-22 14:00:05 +0200 | [diff] [blame] | 653 | <&clk_sandbox 3>, |
| 654 | <&clk_sandbox 2>; |
Yang Xiwen | e89289c | 2023-12-16 02:28:52 +0800 | [diff] [blame] | 655 | clock-names = "fixed", "i2c", "spi", "i2c_root", "uart2", "uart1"; |
Simon Glass | 8cc4d82 | 2015-07-06 12:54:24 -0600 | [diff] [blame] | 656 | }; |
| 657 | |
Ashok Reddy Soma | 8f03cef | 2023-08-30 10:31:42 +0200 | [diff] [blame] | 658 | clk-test2 { |
| 659 | compatible = "sandbox,clk-test"; |
| 660 | assigned-clock-rates = <321>; |
| 661 | }; |
| 662 | |
| 663 | clk-test3 { |
| 664 | compatible = "sandbox,clk-test"; |
| 665 | assigned-clocks = <&clk_sandbox 1>; |
| 666 | }; |
| 667 | |
| 668 | clk-test4 { |
| 669 | compatible = "sandbox,clk-test"; |
| 670 | assigned-clock-rates = <654>, <321>; |
| 671 | assigned-clocks = <&clk_sandbox 1>; |
| 672 | }; |
| 673 | |
Lukasz Majewski | 8c0709b | 2019-06-24 15:50:50 +0200 | [diff] [blame] | 674 | ccf: clk-ccf { |
| 675 | compatible = "sandbox,clk-ccf"; |
Yang Xiwen | e89289c | 2023-12-16 02:28:52 +0800 | [diff] [blame] | 676 | #clock-cells = <1>; |
Lukasz Majewski | 8c0709b | 2019-06-24 15:50:50 +0200 | [diff] [blame] | 677 | }; |
| 678 | |
Simon Glass | 507ab96 | 2021-12-04 08:56:31 -0700 | [diff] [blame] | 679 | efi-media { |
| 680 | compatible = "sandbox,efi-media"; |
| 681 | }; |
| 682 | |
Simon Glass | 5b96863 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 683 | eth@10002000 { |
| 684 | compatible = "sandbox,eth"; |
| 685 | reg = <0x10002000 0x1000>; |
Simon Glass | 5b96863 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 686 | }; |
| 687 | |
| 688 | eth_5: eth@10003000 { |
| 689 | compatible = "sandbox,eth"; |
| 690 | reg = <0x10003000 0x1000>; |
Sean Anderson | 13652b8 | 2022-05-05 13:11:44 -0400 | [diff] [blame] | 691 | nvmem-cells = <ð5_addr>; |
| 692 | nvmem-cell-names = "mac-address"; |
Simon Glass | 5b96863 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 693 | }; |
| 694 | |
Bin Meng | 04a11cb | 2015-08-27 22:25:53 -0700 | [diff] [blame] | 695 | eth_3: sbe5 { |
| 696 | compatible = "sandbox,eth"; |
| 697 | reg = <0x10005000 0x1000>; |
Sean Anderson | e2dc0e6 | 2022-05-05 13:11:42 -0400 | [diff] [blame] | 698 | nvmem-cells = <ð3_addr>; |
| 699 | nvmem-cell-names = "mac-address"; |
Bin Meng | 04a11cb | 2015-08-27 22:25:53 -0700 | [diff] [blame] | 700 | }; |
| 701 | |
Simon Glass | 5b96863 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 702 | eth@10004000 { |
| 703 | compatible = "sandbox,eth"; |
| 704 | reg = <0x10004000 0x1000>; |
Simon Glass | 5b96863 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 705 | }; |
| 706 | |
Marek Behún | f4f1ddc | 2022-04-07 00:32:57 +0200 | [diff] [blame] | 707 | phy_eth0: phy-test-eth { |
| 708 | compatible = "sandbox,eth"; |
| 709 | reg = <0x10007000 0x1000>; |
Sean Anderson | 24b1b8d | 2022-05-05 13:11:35 -0400 | [diff] [blame] | 710 | mac-address = [ 02 00 11 22 33 49 ]; |
Marek Behún | f4f1ddc | 2022-04-07 00:32:57 +0200 | [diff] [blame] | 711 | phy-handle = <ðphy1>; |
Marek Behún | bc19477 | 2022-04-07 00:33:01 +0200 | [diff] [blame] | 712 | phy-mode = "2500base-x"; |
Marek Behún | f4f1ddc | 2022-04-07 00:32:57 +0200 | [diff] [blame] | 713 | }; |
| 714 | |
Claudiu Manoil | d9eaa92 | 2021-03-14 20:14:57 +0800 | [diff] [blame] | 715 | dsa_eth0: dsa-test-eth { |
| 716 | compatible = "sandbox,eth"; |
| 717 | reg = <0x10006000 0x1000>; |
Sean Anderson | 5768e8b | 2022-05-05 13:11:43 -0400 | [diff] [blame] | 718 | nvmem-cells = <ð4_addr>; |
| 719 | nvmem-cell-names = "mac-address"; |
Claudiu Manoil | d9eaa92 | 2021-03-14 20:14:57 +0800 | [diff] [blame] | 720 | }; |
| 721 | |
| 722 | dsa-test { |
| 723 | compatible = "sandbox,dsa"; |
| 724 | |
| 725 | ports { |
| 726 | #address-cells = <1>; |
| 727 | #size-cells = <0>; |
| 728 | swp_0: port@0 { |
| 729 | reg = <0>; |
| 730 | label = "lan0"; |
| 731 | phy-mode = "rgmii-rxid"; |
| 732 | |
| 733 | fixed-link { |
| 734 | speed = <100>; |
| 735 | full-duplex; |
| 736 | }; |
| 737 | }; |
| 738 | |
| 739 | swp_1: port@1 { |
| 740 | reg = <1>; |
| 741 | label = "lan1"; |
| 742 | phy-mode = "rgmii-txid"; |
Bin Meng | 381ed97 | 2021-03-14 20:14:58 +0800 | [diff] [blame] | 743 | fixed-link = <0 1 100 0 0>; |
Claudiu Manoil | d9eaa92 | 2021-03-14 20:14:57 +0800 | [diff] [blame] | 744 | }; |
| 745 | |
| 746 | port@2 { |
| 747 | reg = <2>; |
| 748 | ethernet = <&dsa_eth0>; |
| 749 | |
| 750 | fixed-link { |
| 751 | speed = <1000>; |
| 752 | full-duplex; |
| 753 | }; |
| 754 | }; |
| 755 | }; |
| 756 | }; |
| 757 | |
Rajan Vaja | b3b2ddb | 2018-09-19 03:43:46 -0700 | [diff] [blame] | 758 | firmware { |
| 759 | sandbox_firmware: sandbox-firmware { |
| 760 | compatible = "sandbox,firmware"; |
| 761 | }; |
Etienne Carriere | 02fd126 | 2020-09-09 18:44:00 +0200 | [diff] [blame] | 762 | |
Etienne Carriere | 09665cb | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 763 | scmi { |
Etienne Carriere | 02fd126 | 2020-09-09 18:44:00 +0200 | [diff] [blame] | 764 | compatible = "sandbox,scmi-agent"; |
| 765 | #address-cells = <1>; |
| 766 | #size-cells = <0>; |
Etienne Carriere | 2d94c08fa | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 767 | |
AKASHI Takahiro | 535a7bd | 2023-10-16 14:39:45 +0900 | [diff] [blame] | 768 | pwrdom_scmi: protocol@11 { |
| 769 | reg = <0x11>; |
| 770 | #power-domain-cells = <1>; |
| 771 | }; |
| 772 | |
Etienne Carriere | 09665cb | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 773 | clk_scmi: protocol@14 { |
Etienne Carriere | 2d94c08fa | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 774 | reg = <0x14>; |
| 775 | #clock-cells = <1>; |
AKASHI Takahiro | cc4ecda | 2023-10-11 19:06:59 +0900 | [diff] [blame] | 776 | linaro,sandbox-channel-id = <0x14>; |
Etienne Carriere | 2d94c08fa | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 777 | }; |
Etienne Carriere | 8b9b689 | 2020-09-09 18:44:07 +0200 | [diff] [blame] | 778 | |
Etienne Carriere | 09665cb | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 779 | reset_scmi: protocol@16 { |
Etienne Carriere | 8b9b689 | 2020-09-09 18:44:07 +0200 | [diff] [blame] | 780 | reg = <0x16>; |
| 781 | #reset-cells = <1>; |
| 782 | }; |
Etienne Carriere | b8f15cd | 2021-03-08 22:38:07 +0100 | [diff] [blame] | 783 | |
| 784 | protocol@17 { |
| 785 | reg = <0x17>; |
| 786 | |
| 787 | regulators { |
| 788 | #address-cells = <1>; |
| 789 | #size-cells = <0>; |
| 790 | |
Etienne Carriere | 09665cb | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 791 | regul0_scmi: reg@0 { |
Etienne Carriere | b8f15cd | 2021-03-08 22:38:07 +0100 | [diff] [blame] | 792 | reg = <0>; |
| 793 | regulator-name = "sandbox-voltd0"; |
| 794 | regulator-min-microvolt = <1100000>; |
| 795 | regulator-max-microvolt = <3300000>; |
| 796 | }; |
Etienne Carriere | 09665cb | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 797 | regul1_scmi: reg@1 { |
Etienne Carriere | b8f15cd | 2021-03-08 22:38:07 +0100 | [diff] [blame] | 798 | reg = <0x1>; |
| 799 | regulator-name = "sandbox-voltd1"; |
| 800 | regulator-min-microvolt = <1800000>; |
| 801 | }; |
| 802 | }; |
| 803 | }; |
Etienne Carriere | 02fd126 | 2020-09-09 18:44:00 +0200 | [diff] [blame] | 804 | }; |
Alexey Romanov | 9dc617d | 2023-09-21 11:13:36 +0300 | [diff] [blame] | 805 | |
| 806 | sm: secure-monitor { |
| 807 | compatible = "sandbox,sm"; |
| 808 | }; |
Rajan Vaja | b3b2ddb | 2018-09-19 03:43:46 -0700 | [diff] [blame] | 809 | }; |
| 810 | |
Alexander Dahl | 6ac319d | 2022-09-30 14:04:30 +0200 | [diff] [blame] | 811 | fpga { |
| 812 | compatible = "sandbox,fpga"; |
| 813 | }; |
| 814 | |
Patrick Delaunay | 1b4a22f | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 815 | pinctrl-gpio { |
| 816 | compatible = "sandbox,pinctrl-gpio"; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 817 | |
Patrick Delaunay | 1b4a22f | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 818 | gpio_a: base-gpios { |
| 819 | compatible = "sandbox,gpio"; |
| 820 | gpio-controller; |
| 821 | #gpio-cells = <1>; |
| 822 | gpio-bank-name = "a"; |
| 823 | sandbox,gpio-count = <20>; |
Heiko Schocher | 4508abf | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 824 | hog_input_active_low { |
| 825 | gpio-hog; |
| 826 | input; |
Philippe Reynes | b25a5b3 | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 827 | gpios = <10 GPIO_ACTIVE_LOW>; |
Heiko Schocher | 4508abf | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 828 | }; |
| 829 | hog_input_active_high { |
| 830 | gpio-hog; |
| 831 | input; |
Philippe Reynes | b25a5b3 | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 832 | gpios = <11 GPIO_ACTIVE_HIGH>; |
Heiko Schocher | 4508abf | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 833 | }; |
| 834 | hog_output_low { |
| 835 | gpio-hog; |
| 836 | output-low; |
Philippe Reynes | b25a5b3 | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 837 | gpios = <12 GPIO_ACTIVE_HIGH>; |
Heiko Schocher | 4508abf | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 838 | }; |
| 839 | hog_output_high { |
| 840 | gpio-hog; |
| 841 | output-high; |
Philippe Reynes | b25a5b3 | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 842 | gpios = <13 GPIO_ACTIVE_HIGH>; |
Heiko Schocher | 4508abf | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 843 | }; |
Patrick Delaunay | 1b4a22f | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 844 | }; |
| 845 | |
| 846 | gpio_b: extra-gpios { |
| 847 | compatible = "sandbox,gpio"; |
| 848 | gpio-controller; |
| 849 | #gpio-cells = <5>; |
| 850 | gpio-bank-name = "b"; |
| 851 | sandbox,gpio-count = <10>; |
| 852 | }; |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 853 | |
Patrick Delaunay | 1b4a22f | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 854 | gpio_c: pinmux-gpios { |
| 855 | compatible = "sandbox,gpio"; |
| 856 | gpio-controller; |
| 857 | #gpio-cells = <2>; |
| 858 | gpio-bank-name = "c"; |
| 859 | sandbox,gpio-count = <10>; |
| 860 | }; |
Patrick Delaunay | 28bdaa5 | 2020-01-13 11:35:14 +0100 | [diff] [blame] | 861 | }; |
| 862 | |
Simon Glass | 7df766e | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 863 | i2c@0 { |
| 864 | #address-cells = <1>; |
| 865 | #size-cells = <0>; |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 866 | reg = <0 1>; |
Simon Glass | 7df766e | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 867 | compatible = "sandbox,i2c"; |
| 868 | clock-frequency = <100000>; |
Dario Binacchi | 20dd9e1 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 869 | pinctrl-names = "default"; |
| 870 | pinctrl-0 = <&pinmux_i2c0_pins>; |
| 871 | |
Simon Glass | 7df766e | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 872 | eeprom@2c { |
Sean Anderson | e2dc0e6 | 2022-05-05 13:11:42 -0400 | [diff] [blame] | 873 | #address-cells = <1>; |
| 874 | #size-cells = <1>; |
Simon Glass | 7df766e | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 875 | reg = <0x2c>; |
| 876 | compatible = "i2c-eeprom"; |
Simon Glass | 17b56f6 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 877 | sandbox,emul = <&emul_eeprom>; |
Michal Simek | 4f18f92 | 2020-05-28 11:48:55 +0200 | [diff] [blame] | 878 | partitions { |
| 879 | compatible = "fixed-partitions"; |
| 880 | #address-cells = <1>; |
| 881 | #size-cells = <1>; |
| 882 | bootcount_i2c: bootcount@10 { |
| 883 | reg = <10 2>; |
| 884 | }; |
| 885 | }; |
Sean Anderson | e2dc0e6 | 2022-05-05 13:11:42 -0400 | [diff] [blame] | 886 | |
| 887 | eth3_addr: mac-address@24 { |
| 888 | reg = <24 6>; |
| 889 | }; |
Simon Glass | 7df766e | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 890 | }; |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 891 | |
Simon Glass | 336b295 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 892 | rtc_0: rtc@43 { |
Sean Anderson | 5768e8b | 2022-05-05 13:11:43 -0400 | [diff] [blame] | 893 | #address-cells = <1>; |
| 894 | #size-cells = <1>; |
Simon Glass | 336b295 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 895 | reg = <0x43>; |
| 896 | compatible = "sandbox-rtc"; |
Simon Glass | 17b56f6 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 897 | sandbox,emul = <&emul0>; |
Sean Anderson | 5768e8b | 2022-05-05 13:11:43 -0400 | [diff] [blame] | 898 | |
| 899 | eth4_addr: mac-address@40 { |
| 900 | reg = <0x40 6>; |
| 901 | }; |
Simon Glass | 336b295 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 902 | }; |
| 903 | |
| 904 | rtc_1: rtc@61 { |
| 905 | reg = <0x61>; |
| 906 | compatible = "sandbox-rtc"; |
Simon Glass | 17b56f6 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 907 | sandbox,emul = <&emul1>; |
| 908 | }; |
| 909 | |
| 910 | i2c_emul: emul { |
| 911 | reg = <0xff>; |
| 912 | compatible = "sandbox,i2c-emul-parent"; |
| 913 | emul_eeprom: emul-eeprom { |
| 914 | compatible = "sandbox,i2c-eeprom"; |
| 915 | sandbox,filename = "i2c.bin"; |
| 916 | sandbox,size = <256>; |
| 917 | }; |
| 918 | emul0: emul0 { |
Simon Glass | 98af374 | 2021-02-03 06:01:17 -0700 | [diff] [blame] | 919 | compatible = "sandbox,i2c-rtc-emul"; |
Simon Glass | 17b56f6 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 920 | }; |
| 921 | emul1: emull { |
Simon Glass | 98af374 | 2021-02-03 06:01:17 -0700 | [diff] [blame] | 922 | compatible = "sandbox,i2c-rtc-emul"; |
Simon Glass | 336b295 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 923 | }; |
| 924 | }; |
| 925 | |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 926 | sandbox_pmic: sandbox_pmic { |
| 927 | reg = <0x40>; |
Simon Glass | 17b56f6 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 928 | sandbox,emul = <&emul_pmic0>; |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 929 | }; |
Lukasz Majewski | a4d8297 | 2018-05-15 16:26:40 +0200 | [diff] [blame] | 930 | |
| 931 | mc34708: pmic@41 { |
| 932 | reg = <0x41>; |
Simon Glass | 17b56f6 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 933 | sandbox,emul = <&emul_pmic1>; |
Lukasz Majewski | a4d8297 | 2018-05-15 16:26:40 +0200 | [diff] [blame] | 934 | }; |
Simon Glass | 7df766e | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 935 | }; |
| 936 | |
Philipp Tomsich | 1fc5330 | 2018-12-14 21:14:29 +0100 | [diff] [blame] | 937 | bootcount@0 { |
| 938 | compatible = "u-boot,bootcount-rtc"; |
| 939 | rtc = <&rtc_1>; |
| 940 | offset = <0x13>; |
| 941 | }; |
| 942 | |
Michal Simek | 4f18f92 | 2020-05-28 11:48:55 +0200 | [diff] [blame] | 943 | bootcount { |
| 944 | compatible = "u-boot,bootcount-i2c-eeprom"; |
| 945 | i2c-eeprom = <&bootcount_i2c>; |
| 946 | }; |
| 947 | |
Nandor Han | 8889581 | 2021-06-10 15:40:38 +0300 | [diff] [blame] | 948 | bootcount_4@0 { |
| 949 | compatible = "u-boot,bootcount-syscon"; |
| 950 | syscon = <&syscon0>; |
| 951 | reg = <0x0 0x04>, <0x0 0x04>; |
| 952 | reg-names = "syscon_reg", "offset"; |
| 953 | }; |
| 954 | |
| 955 | bootcount_2@0 { |
| 956 | compatible = "u-boot,bootcount-syscon"; |
| 957 | syscon = <&syscon0>; |
| 958 | reg = <0x0 0x04>, <0x0 0x02> ; |
| 959 | reg-names = "syscon_reg", "offset"; |
| 960 | }; |
| 961 | |
Marek Szyprowski | ad39859 | 2021-02-18 11:33:18 +0100 | [diff] [blame] | 962 | adc: adc@0 { |
Przemyslaw Marczak | 1bc7f23 | 2015-10-27 13:08:06 +0100 | [diff] [blame] | 963 | compatible = "sandbox,adc"; |
Marek Szyprowski | ad39859 | 2021-02-18 11:33:18 +0100 | [diff] [blame] | 964 | #io-channel-cells = <1>; |
Przemyslaw Marczak | 1bc7f23 | 2015-10-27 13:08:06 +0100 | [diff] [blame] | 965 | vdd-supply = <&buck2>; |
| 966 | vss-microvolts = <0>; |
| 967 | }; |
| 968 | |
Mark Kettenis | 67748ee | 2021-10-23 16:58:02 +0200 | [diff] [blame] | 969 | iommu: iommu@0 { |
| 970 | compatible = "sandbox,iommu"; |
| 971 | #iommu-cells = <0>; |
| 972 | }; |
| 973 | |
Simon Glass | 515dcff | 2020-02-06 09:55:00 -0700 | [diff] [blame] | 974 | irq: irq { |
Simon Glass | 54028bc | 2019-12-06 21:41:59 -0700 | [diff] [blame] | 975 | compatible = "sandbox,irq"; |
Simon Glass | 515dcff | 2020-02-06 09:55:00 -0700 | [diff] [blame] | 976 | interrupt-controller; |
| 977 | #interrupt-cells = <2>; |
Simon Glass | 54028bc | 2019-12-06 21:41:59 -0700 | [diff] [blame] | 978 | }; |
| 979 | |
Simon Glass | 90b6fef | 2016-01-18 19:52:26 -0700 | [diff] [blame] | 980 | lcd { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 981 | bootph-all; |
Simon Glass | 90b6fef | 2016-01-18 19:52:26 -0700 | [diff] [blame] | 982 | compatible = "sandbox,lcd-sdl"; |
Dario Binacchi | 20dd9e1 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 983 | pinctrl-names = "default"; |
| 984 | pinctrl-0 = <&pinmux_lcd_pins>; |
Simon Glass | 90b6fef | 2016-01-18 19:52:26 -0700 | [diff] [blame] | 985 | xres = <1366>; |
| 986 | yres = <768>; |
| 987 | }; |
| 988 | |
Simon Glass | d783eb3 | 2015-07-06 12:54:34 -0600 | [diff] [blame] | 989 | leds { |
| 990 | compatible = "gpio-leds"; |
| 991 | |
Christian Marangi | fd53ad4 | 2024-11-10 12:50:27 +0100 | [diff] [blame] | 992 | sandbox_led_red: iracibble { |
Simon Glass | d783eb3 | 2015-07-06 12:54:34 -0600 | [diff] [blame] | 993 | gpios = <&gpio_a 1 0>; |
| 994 | label = "sandbox:red"; |
| 995 | }; |
| 996 | |
Christian Marangi | fd53ad4 | 2024-11-10 12:50:27 +0100 | [diff] [blame] | 997 | sandbox_led_green: martinet { |
Simon Glass | d783eb3 | 2015-07-06 12:54:34 -0600 | [diff] [blame] | 998 | gpios = <&gpio_a 2 0>; |
| 999 | label = "sandbox:green"; |
| 1000 | }; |
Patrick Bruenn | b58adfe | 2018-04-11 11:16:29 +0200 | [diff] [blame] | 1001 | |
| 1002 | default_on { |
| 1003 | gpios = <&gpio_a 5 0>; |
| 1004 | label = "sandbox:default_on"; |
| 1005 | default-state = "on"; |
| 1006 | }; |
| 1007 | |
| 1008 | default_off { |
| 1009 | gpios = <&gpio_a 6 0>; |
Sean Anderson | fbf8d65 | 2020-09-14 11:02:03 -0400 | [diff] [blame] | 1010 | /* label intentionally omitted */ |
Patrick Bruenn | b58adfe | 2018-04-11 11:16:29 +0200 | [diff] [blame] | 1011 | default-state = "off"; |
| 1012 | }; |
Simon Glass | d783eb3 | 2015-07-06 12:54:34 -0600 | [diff] [blame] | 1013 | }; |
| 1014 | |
Paul Doelle | 709f037 | 2022-07-04 09:00:25 +0000 | [diff] [blame] | 1015 | wdt-gpio-toggle { |
Simon Glass | e0f8cd2 | 2023-08-10 09:53:13 -0600 | [diff] [blame] | 1016 | gpios = <&gpio_a 8 0>; |
Rasmus Villemoes | 2b67387 | 2021-08-19 11:57:05 +0200 | [diff] [blame] | 1017 | compatible = "linux,wdt-gpio"; |
Rasmus Villemoes | f91ff5a | 2021-08-19 11:57:06 +0200 | [diff] [blame] | 1018 | hw_margin_ms = <100>; |
Paul Doelle | 709f037 | 2022-07-04 09:00:25 +0000 | [diff] [blame] | 1019 | hw_algo = "toggle"; |
| 1020 | always-running; |
| 1021 | }; |
| 1022 | |
| 1023 | wdt-gpio-level { |
| 1024 | gpios = <&gpio_a 7 0>; |
| 1025 | compatible = "linux,wdt-gpio"; |
| 1026 | hw_margin_ms = <100>; |
| 1027 | hw_algo = "level"; |
Rasmus Villemoes | 2b67387 | 2021-08-19 11:57:05 +0200 | [diff] [blame] | 1028 | always-running; |
| 1029 | }; |
| 1030 | |
Stephen Warren | 62f2c90 | 2016-05-16 17:41:37 -0600 | [diff] [blame] | 1031 | mbox: mbox { |
| 1032 | compatible = "sandbox,mbox"; |
| 1033 | #mbox-cells = <1>; |
| 1034 | }; |
| 1035 | |
| 1036 | mbox-test { |
| 1037 | compatible = "sandbox,mbox-test"; |
| 1038 | mboxes = <&mbox 100>, <&mbox 1>; |
| 1039 | mbox-names = "other", "test"; |
| 1040 | }; |
| 1041 | |
AKASHI Takahiro | 8fb963a | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 1042 | cpus { |
Heinrich Schuchardt | 20f9d3d | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 1043 | #address-cells = <1>; |
| 1044 | #size-cells = <0>; |
Sean Anderson | 79d3bba | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 1045 | timebase-frequency = <2000000>; |
Heinrich Schuchardt | 20f9d3d | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 1046 | cpu1: cpu@1 { |
| 1047 | device_type = "cpu"; |
| 1048 | reg = <0x1>; |
Sean Anderson | 79d3bba | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 1049 | timebase-frequency = <3000000>; |
AKASHI Takahiro | 8fb963a | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 1050 | compatible = "sandbox,cpu_sandbox"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 1051 | bootph-all; |
AKASHI Takahiro | 8fb963a | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 1052 | }; |
Mario Six | dea5df7 | 2018-08-06 10:23:44 +0200 | [diff] [blame] | 1053 | |
Heinrich Schuchardt | 20f9d3d | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 1054 | cpu2: cpu@2 { |
| 1055 | device_type = "cpu"; |
| 1056 | reg = <0x2>; |
AKASHI Takahiro | 8fb963a | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 1057 | compatible = "sandbox,cpu_sandbox"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 1058 | bootph-all; |
AKASHI Takahiro | 8fb963a | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 1059 | }; |
Mario Six | dea5df7 | 2018-08-06 10:23:44 +0200 | [diff] [blame] | 1060 | |
Heinrich Schuchardt | 20f9d3d | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 1061 | cpu3: cpu@3 { |
| 1062 | device_type = "cpu"; |
| 1063 | reg = <0x3>; |
AKASHI Takahiro | 8fb963a | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 1064 | compatible = "sandbox,cpu_sandbox"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 1065 | bootph-all; |
AKASHI Takahiro | 8fb963a | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 1066 | }; |
Mario Six | dea5df7 | 2018-08-06 10:23:44 +0200 | [diff] [blame] | 1067 | }; |
| 1068 | |
Dave Gerlach | 75dbdfc | 2020-07-15 23:39:58 -0500 | [diff] [blame] | 1069 | chipid: chipid { |
| 1070 | compatible = "sandbox,soc"; |
| 1071 | }; |
| 1072 | |
Simon Glass | c953aaf | 2018-12-10 10:37:34 -0700 | [diff] [blame] | 1073 | i2s: i2s { |
| 1074 | compatible = "sandbox,i2s"; |
| 1075 | #sound-dai-cells = <1>; |
Simon Glass | 4d5814c | 2019-02-16 20:24:56 -0700 | [diff] [blame] | 1076 | sandbox,silent; /* Don't emit sounds while testing */ |
Simon Glass | c953aaf | 2018-12-10 10:37:34 -0700 | [diff] [blame] | 1077 | }; |
| 1078 | |
Jean-Jacques Hiblot | db97c7f | 2019-07-05 09:33:57 +0200 | [diff] [blame] | 1079 | nop-test_0 { |
| 1080 | compatible = "sandbox,nop_sandbox1"; |
| 1081 | nop-test_1 { |
| 1082 | compatible = "sandbox,nop_sandbox2"; |
| 1083 | bind = "True"; |
| 1084 | }; |
| 1085 | nop-test_2 { |
| 1086 | compatible = "sandbox,nop_sandbox2"; |
| 1087 | bind = "False"; |
| 1088 | }; |
| 1089 | }; |
| 1090 | |
Roger Quadros | b0679a7 | 2022-10-20 16:30:46 +0300 | [diff] [blame] | 1091 | memory-controller { |
| 1092 | compatible = "sandbox,memory"; |
| 1093 | }; |
| 1094 | |
Mario Six | a8ce0ee | 2018-07-31 14:24:14 +0200 | [diff] [blame] | 1095 | misc-test { |
Sean Anderson | 13652b8 | 2022-05-05 13:11:44 -0400 | [diff] [blame] | 1096 | #address-cells = <1>; |
| 1097 | #size-cells = <1>; |
Mario Six | a8ce0ee | 2018-07-31 14:24:14 +0200 | [diff] [blame] | 1098 | compatible = "sandbox,misc_sandbox"; |
Sean Anderson | 13652b8 | 2022-05-05 13:11:44 -0400 | [diff] [blame] | 1099 | |
| 1100 | eth5_addr: mac-address@10 { |
| 1101 | reg = <0x10 6>; |
| 1102 | }; |
Mario Six | a8ce0ee | 2018-07-31 14:24:14 +0200 | [diff] [blame] | 1103 | }; |
| 1104 | |
Simon Glass | e4fef74 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 1105 | mmc2 { |
| 1106 | compatible = "sandbox,mmc"; |
Simon Glass | 965cd40 | 2021-07-05 16:32:58 -0600 | [diff] [blame] | 1107 | non-removable; |
Simon Glass | e4fef74 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 1108 | }; |
| 1109 | |
Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 1110 | /* This is used for the bootdev tests */ |
Simon Glass | e4fef74 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 1111 | mmc1 { |
| 1112 | compatible = "sandbox,mmc"; |
Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 1113 | filename = "mmc1.img"; |
Simon Glass | e4fef74 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 1114 | }; |
| 1115 | |
Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 1116 | /* This is used for the fastboot tests */ |
Sughosh Ganu | 77079e7 | 2022-10-21 18:16:05 +0530 | [diff] [blame] | 1117 | mmc0: mmc0 { |
Simon Glass | d3e58e4 | 2015-07-06 12:54:32 -0600 | [diff] [blame] | 1118 | compatible = "sandbox,mmc"; |
| 1119 | }; |
| 1120 | |
Simon Glass | f1eba35 | 2022-10-20 18:23:20 -0600 | [diff] [blame] | 1121 | /* This is used for VBE VPL tests */ |
| 1122 | mmc3 { |
| 1123 | status = "disabled"; |
| 1124 | compatible = "sandbox,mmc"; |
| 1125 | filename = "image.bin"; |
| 1126 | non-removable; |
| 1127 | }; |
| 1128 | |
Simon Glass | d2bc33ed | 2023-01-06 08:52:41 -0600 | [diff] [blame] | 1129 | /* This is used for bootstd bootmenu tests */ |
| 1130 | mmc4 { |
| 1131 | status = "disabled"; |
| 1132 | compatible = "sandbox,mmc"; |
| 1133 | filename = "mmc4.img"; |
| 1134 | }; |
| 1135 | |
Simon Glass | fff928c | 2023-08-24 13:55:41 -0600 | [diff] [blame] | 1136 | /* This is used for ChromiumOS tests */ |
| 1137 | mmc5 { |
| 1138 | status = "disabled"; |
| 1139 | compatible = "sandbox,mmc"; |
| 1140 | filename = "mmc5.img"; |
| 1141 | }; |
| 1142 | |
Alexander Gendin | 038cb02 | 2023-10-09 01:24:36 +0000 | [diff] [blame] | 1143 | /* This is used for mbr tests */ |
| 1144 | mmc6 { |
| 1145 | status = "disabled"; |
| 1146 | compatible = "sandbox,mmc"; |
| 1147 | filename = "mmc6.img"; |
| 1148 | }; |
| 1149 | |
Guillaume La Roque | 368ad9e | 2024-11-26 09:06:13 +0100 | [diff] [blame] | 1150 | /* This is used for Android boot image v4 tests */ |
Mattijs Korpershoek | d77f815 | 2024-07-10 10:40:06 +0200 | [diff] [blame] | 1151 | mmc7 { |
| 1152 | status = "disabled"; |
| 1153 | compatible = "sandbox,mmc"; |
| 1154 | filename = "mmc7.img"; |
| 1155 | }; |
| 1156 | |
Guillaume La Roque | 368ad9e | 2024-11-26 09:06:13 +0100 | [diff] [blame] | 1157 | /* This is used for Android boot image v2 tests. */ |
| 1158 | mmc8 { |
| 1159 | status = "disabled"; |
| 1160 | compatible = "sandbox,mmc"; |
| 1161 | filename = "mmc8.img"; |
| 1162 | }; |
| 1163 | |
Simon Glass | 53a68b3 | 2019-02-16 20:24:50 -0700 | [diff] [blame] | 1164 | pch { |
| 1165 | compatible = "sandbox,pch"; |
| 1166 | }; |
| 1167 | |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1168 | pci0: pci@0 { |
Simon Glass | 3a6eae6 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 1169 | compatible = "sandbox,pci"; |
| 1170 | device_type = "pci"; |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1171 | bus-range = <0x00 0xff>; |
Simon Glass | 3a6eae6 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 1172 | #address-cells = <3>; |
| 1173 | #size-cells = <2>; |
Simon Glass | 35464f7 | 2019-09-25 08:56:08 -0600 | [diff] [blame] | 1174 | ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000 |
Simon Glass | 3a6eae6 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 1175 | 0x01000000 0 0x20000000 0x20000000 0 0x2000>; |
Mark Kettenis | 5dfd4ec | 2023-01-21 20:27:57 +0100 | [diff] [blame] | 1176 | iommu-map = <0x0010 &iommu 0 1>; |
| 1177 | iommu-map-mask = <0xfffffff8>; |
Bin Meng | cbf071b | 2018-08-03 01:14:39 -0700 | [diff] [blame] | 1178 | pci@0,0 { |
| 1179 | compatible = "pci-generic"; |
| 1180 | reg = <0x0000 0 0 0 0>; |
Simon Glass | b98ba4c | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 1181 | sandbox,emul = <&swap_case_emul0_0>; |
Bin Meng | cbf071b | 2018-08-03 01:14:39 -0700 | [diff] [blame] | 1182 | }; |
Alex Marginean | f127443 | 2019-06-07 11:24:24 +0300 | [diff] [blame] | 1183 | pci@1,0 { |
| 1184 | compatible = "pci-generic"; |
Simon Glass | 23b2759 | 2019-09-15 12:08:58 -0600 | [diff] [blame] | 1185 | /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */ |
Simon Glass | 4289c26 | 2023-09-26 08:14:58 -0600 | [diff] [blame] | 1186 | reg = <0x02000814 0 0 0x80 0 |
| 1187 | 0x01000810 0 0 0xc0 0>; |
Simon Glass | b98ba4c | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 1188 | sandbox,emul = <&swap_case_emul0_1>; |
Alex Marginean | f127443 | 2019-06-07 11:24:24 +0300 | [diff] [blame] | 1189 | }; |
Simon Glass | 937bb47 | 2019-12-06 21:41:57 -0700 | [diff] [blame] | 1190 | p2sb-pci@2,0 { |
| 1191 | compatible = "sandbox,p2sb"; |
| 1192 | reg = <0x02001010 0 0 0 0>; |
| 1193 | sandbox,emul = <&p2sb_emul>; |
| 1194 | |
| 1195 | adder { |
| 1196 | intel,p2sb-port-id = <3>; |
| 1197 | compatible = "sandbox,adder"; |
| 1198 | }; |
| 1199 | }; |
Simon Glass | 8c50102 | 2019-12-06 21:41:54 -0700 | [diff] [blame] | 1200 | pci@1e,0 { |
| 1201 | compatible = "sandbox,pmc"; |
| 1202 | reg = <0xf000 0 0 0 0>; |
| 1203 | sandbox,emul = <&pmc_emul1e>; |
| 1204 | acpi-base = <0x400>; |
| 1205 | gpe0-dwx-mask = <0xf>; |
| 1206 | gpe0-dwx-shift-base = <4>; |
| 1207 | gpe0-dw = <6 7 9>; |
| 1208 | gpe0-sts = <0x20>; |
| 1209 | gpe0-en = <0x30>; |
| 1210 | }; |
Simon Glass | 3a6eae6 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 1211 | pci@1f,0 { |
| 1212 | compatible = "pci-generic"; |
Simon Glass | 23b2759 | 2019-09-15 12:08:58 -0600 | [diff] [blame] | 1213 | /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */ |
Simon Glass | 4289c26 | 2023-09-26 08:14:58 -0600 | [diff] [blame] | 1214 | reg = <0x0100f810 0 0 0x100 0>; |
Simon Glass | b98ba4c | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 1215 | sandbox,emul = <&swap_case_emul0_1f>; |
Simon Glass | 3a6eae6 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 1216 | }; |
| 1217 | }; |
| 1218 | |
Simon Glass | b98ba4c | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 1219 | pci-emul0 { |
| 1220 | compatible = "sandbox,pci-emul-parent"; |
| 1221 | swap_case_emul0_0: emul0@0,0 { |
| 1222 | compatible = "sandbox,swap-case"; |
| 1223 | }; |
| 1224 | swap_case_emul0_1: emul0@1,0 { |
| 1225 | compatible = "sandbox,swap-case"; |
| 1226 | use-ea; |
| 1227 | }; |
| 1228 | swap_case_emul0_1f: emul0@1f,0 { |
| 1229 | compatible = "sandbox,swap-case"; |
| 1230 | }; |
Simon Glass | 937bb47 | 2019-12-06 21:41:57 -0700 | [diff] [blame] | 1231 | p2sb_emul: emul@2,0 { |
| 1232 | compatible = "sandbox,p2sb-emul"; |
| 1233 | }; |
Simon Glass | 8c50102 | 2019-12-06 21:41:54 -0700 | [diff] [blame] | 1234 | pmc_emul1e: emul@1e,0 { |
| 1235 | compatible = "sandbox,pmc-emul"; |
| 1236 | }; |
Simon Glass | b98ba4c | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 1237 | }; |
| 1238 | |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1239 | pci1: pci@1 { |
Bin Meng | 408e590 | 2018-08-03 01:14:41 -0700 | [diff] [blame] | 1240 | compatible = "sandbox,pci"; |
| 1241 | device_type = "pci"; |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1242 | bus-range = <0x00 0xff>; |
Bin Meng | 408e590 | 2018-08-03 01:14:41 -0700 | [diff] [blame] | 1243 | #address-cells = <3>; |
| 1244 | #size-cells = <2>; |
Suneel Garapati | 3ac3aec | 2019-10-19 17:10:20 -0700 | [diff] [blame] | 1245 | ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0 |
Andrew Scull | c7456a4 | 2022-04-21 16:11:09 +0000 | [diff] [blame] | 1246 | 0x02000000 0 0x31000000 0x3e000000 0 0x2000 // MEM1 |
Suneel Garapati | 3ac3aec | 2019-10-19 17:10:20 -0700 | [diff] [blame] | 1247 | 0x01000000 0 0x40000000 0x40000000 0 0x2000>; |
Bin Meng | 5fed536 | 2018-08-03 01:14:47 -0700 | [diff] [blame] | 1248 | sandbox,dev-info = <0x08 0x00 0x1234 0x5678 |
Marek Vasut | e573322 | 2018-10-10 21:27:08 +0200 | [diff] [blame] | 1249 | 0x0c 0x00 0x1234 0x5678 |
| 1250 | 0x10 0x00 0x1234 0x5678>; |
| 1251 | pci@10,0 { |
| 1252 | reg = <0x8000 0 0 0 0>; |
| 1253 | }; |
Bin Meng | 408e590 | 2018-08-03 01:14:41 -0700 | [diff] [blame] | 1254 | }; |
| 1255 | |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1256 | pci2: pci@2 { |
Bin Meng | 510dddb | 2018-08-03 01:14:50 -0700 | [diff] [blame] | 1257 | compatible = "sandbox,pci"; |
| 1258 | device_type = "pci"; |
Tom Rini | 4a3ca48 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1259 | bus-range = <0x00 0xff>; |
Bin Meng | 510dddb | 2018-08-03 01:14:50 -0700 | [diff] [blame] | 1260 | #address-cells = <3>; |
| 1261 | #size-cells = <2>; |
| 1262 | ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000 |
| 1263 | 0x01000000 0 0x60000000 0x60000000 0 0x2000>; |
| 1264 | sandbox,dev-info = <0x08 0x00 0x1234 0x5678>; |
| 1265 | pci@1f,0 { |
| 1266 | compatible = "pci-generic"; |
| 1267 | reg = <0xf800 0 0 0 0>; |
Simon Glass | b98ba4c | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 1268 | sandbox,emul = <&swap_case_emul2_1f>; |
| 1269 | }; |
| 1270 | }; |
| 1271 | |
| 1272 | pci-emul2 { |
| 1273 | compatible = "sandbox,pci-emul-parent"; |
| 1274 | swap_case_emul2_1f: emul2@1f,0 { |
| 1275 | compatible = "sandbox,swap-case"; |
Bin Meng | 510dddb | 2018-08-03 01:14:50 -0700 | [diff] [blame] | 1276 | }; |
| 1277 | }; |
| 1278 | |
Ramon Fried | c64f19b | 2019-04-27 11:15:23 +0300 | [diff] [blame] | 1279 | pci_ep: pci_ep { |
| 1280 | compatible = "sandbox,pci_ep"; |
| 1281 | }; |
| 1282 | |
Simon Glass | 9c433fe | 2017-04-23 20:10:44 -0600 | [diff] [blame] | 1283 | probing { |
| 1284 | compatible = "simple-bus"; |
| 1285 | test1 { |
| 1286 | compatible = "denx,u-boot-probe-test"; |
| 1287 | }; |
| 1288 | |
| 1289 | test2 { |
| 1290 | compatible = "denx,u-boot-probe-test"; |
| 1291 | }; |
| 1292 | |
| 1293 | test3 { |
| 1294 | compatible = "denx,u-boot-probe-test"; |
| 1295 | }; |
| 1296 | |
| 1297 | test4 { |
| 1298 | compatible = "denx,u-boot-probe-test"; |
Jean-Jacques Hiblot | dc44ea4 | 2018-11-29 10:57:37 +0100 | [diff] [blame] | 1299 | first-syscon = <&syscon0>; |
| 1300 | second-sys-ctrl = <&another_system_controller>; |
Patrick Delaunay | ee01043 | 2019-03-07 09:57:13 +0100 | [diff] [blame] | 1301 | third-syscon = <&syscon2>; |
Simon Glass | 9c433fe | 2017-04-23 20:10:44 -0600 | [diff] [blame] | 1302 | }; |
| 1303 | }; |
| 1304 | |
Stephen Warren | 92c67fa | 2016-07-13 13:45:31 -0600 | [diff] [blame] | 1305 | pwrdom: power-domain { |
| 1306 | compatible = "sandbox,power-domain"; |
| 1307 | #power-domain-cells = <1>; |
| 1308 | }; |
| 1309 | |
| 1310 | power-domain-test { |
| 1311 | compatible = "sandbox,power-domain-test"; |
| 1312 | power-domains = <&pwrdom 2>; |
| 1313 | }; |
| 1314 | |
Simon Glass | 5620cf8 | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1315 | pwm: pwm { |
Simon Glass | e62f4be | 2017-04-16 21:01:11 -0600 | [diff] [blame] | 1316 | compatible = "sandbox,pwm"; |
Simon Glass | 5620cf8 | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1317 | #pwm-cells = <2>; |
Dario Binacchi | 20dd9e1 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1318 | pinctrl-names = "default"; |
| 1319 | pinctrl-0 = <&pinmux_pwm_pins>; |
Simon Glass | e62f4be | 2017-04-16 21:01:11 -0600 | [diff] [blame] | 1320 | }; |
| 1321 | |
| 1322 | pwm2 { |
| 1323 | compatible = "sandbox,pwm"; |
Simon Glass | 5620cf8 | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1324 | #pwm-cells = <2>; |
Simon Glass | e62f4be | 2017-04-16 21:01:11 -0600 | [diff] [blame] | 1325 | }; |
| 1326 | |
Simon Glass | 3d355e6 | 2015-07-06 12:54:31 -0600 | [diff] [blame] | 1327 | ram { |
| 1328 | compatible = "sandbox,ram"; |
| 1329 | }; |
| 1330 | |
Simon Glass | d860f22 | 2015-07-06 12:54:29 -0600 | [diff] [blame] | 1331 | reset@0 { |
| 1332 | compatible = "sandbox,warm-reset"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 1333 | bootph-some-ram; |
Simon Glass | d860f22 | 2015-07-06 12:54:29 -0600 | [diff] [blame] | 1334 | }; |
| 1335 | |
| 1336 | reset@1 { |
| 1337 | compatible = "sandbox,reset"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 1338 | bootph-some-ram; |
Simon Glass | d860f22 | 2015-07-06 12:54:29 -0600 | [diff] [blame] | 1339 | }; |
| 1340 | |
Stephen Warren | 6488e64 | 2016-06-17 09:43:59 -0600 | [diff] [blame] | 1341 | resetc: reset-ctl { |
| 1342 | compatible = "sandbox,reset-ctl"; |
| 1343 | #reset-cells = <1>; |
| 1344 | }; |
| 1345 | |
| 1346 | reset-ctl-test { |
| 1347 | compatible = "sandbox,reset-ctl-test"; |
Neil Armstrong | 9b4cdef | 2021-04-20 10:42:25 +0200 | [diff] [blame] | 1348 | resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>; |
| 1349 | reset-names = "other", "test", "test2", "test3"; |
Stephen Warren | 6488e64 | 2016-06-17 09:43:59 -0600 | [diff] [blame] | 1350 | }; |
| 1351 | |
Sughosh Ganu | 23e3751 | 2019-12-28 23:58:31 +0530 | [diff] [blame] | 1352 | rng { |
| 1353 | compatible = "sandbox,sandbox-rng"; |
| 1354 | }; |
| 1355 | |
Nishanth Menon | edf8581 | 2015-09-17 15:42:41 -0500 | [diff] [blame] | 1356 | rproc_1: rproc@1 { |
| 1357 | compatible = "sandbox,test-processor"; |
| 1358 | remoteproc-name = "remoteproc-test-dev1"; |
| 1359 | }; |
| 1360 | |
| 1361 | rproc_2: rproc@2 { |
| 1362 | compatible = "sandbox,test-processor"; |
| 1363 | internal-memory-mapped; |
| 1364 | remoteproc-name = "remoteproc-test-dev2"; |
| 1365 | }; |
| 1366 | |
Simon Glass | 5620cf8 | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1367 | panel { |
| 1368 | compatible = "simple-panel"; |
| 1369 | backlight = <&backlight 0 100>; |
| 1370 | }; |
| 1371 | |
Simon Glass | 509f32e | 2022-09-21 16:21:47 +0200 | [diff] [blame] | 1372 | scsi { |
| 1373 | compatible = "sandbox,scsi"; |
| 1374 | sandbox,filepath = "scsi.img"; |
| 1375 | }; |
| 1376 | |
Ramon Fried | 26ed32e | 2018-07-02 02:57:59 +0300 | [diff] [blame] | 1377 | smem@0 { |
| 1378 | compatible = "sandbox,smem"; |
| 1379 | }; |
| 1380 | |
Simon Glass | 76072ac | 2018-12-10 10:37:36 -0700 | [diff] [blame] | 1381 | sound { |
| 1382 | compatible = "sandbox,sound"; |
| 1383 | cpu { |
| 1384 | sound-dai = <&i2s 0>; |
| 1385 | }; |
| 1386 | |
| 1387 | codec { |
| 1388 | sound-dai = <&audio 0>; |
| 1389 | }; |
| 1390 | }; |
| 1391 | |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1392 | spi@0 { |
| 1393 | #address-cells = <1>; |
| 1394 | #size-cells = <0>; |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 1395 | reg = <0 1>; |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1396 | compatible = "sandbox,spi"; |
Ovidiu Panait | ae73473 | 2020-12-14 19:06:47 +0200 | [diff] [blame] | 1397 | cs-gpios = <0>, <0>, <&gpio_a 0>; |
Dario Binacchi | 20dd9e1 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1398 | pinctrl-names = "default"; |
| 1399 | pinctrl-0 = <&pinmux_spi0_pins>; |
| 1400 | |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1401 | spi.bin@0 { |
| 1402 | reg = <0>; |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 1403 | compatible = "spansion,m25p16", "jedec,spi-nor"; |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1404 | spi-max-frequency = <40000000>; |
| 1405 | sandbox,filename = "spi.bin"; |
| 1406 | }; |
Ovidiu Panait | ae73473 | 2020-12-14 19:06:47 +0200 | [diff] [blame] | 1407 | spi.bin@1 { |
| 1408 | reg = <1>; |
| 1409 | compatible = "spansion,m25p16", "jedec,spi-nor"; |
| 1410 | spi-max-frequency = <50000000>; |
| 1411 | sandbox,filename = "spi.bin"; |
| 1412 | spi-cpol; |
| 1413 | spi-cpha; |
| 1414 | }; |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1415 | }; |
| 1416 | |
Jean-Jacques Hiblot | dc44ea4 | 2018-11-29 10:57:37 +0100 | [diff] [blame] | 1417 | syscon0: syscon@0 { |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1418 | compatible = "sandbox,syscon0"; |
Mario Six | e3f59f4 | 2018-10-04 09:00:40 +0200 | [diff] [blame] | 1419 | reg = <0x10 16>; |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1420 | }; |
| 1421 | |
Jean-Jacques Hiblot | dc44ea4 | 2018-11-29 10:57:37 +0100 | [diff] [blame] | 1422 | another_system_controller: syscon@1 { |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1423 | compatible = "sandbox,syscon1"; |
Simon Glass | cf61f74 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 1424 | reg = <0x20 5 |
| 1425 | 0x28 6 |
| 1426 | 0x30 7 |
| 1427 | 0x38 8>; |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1428 | }; |
| 1429 | |
Patrick Delaunay | ee01043 | 2019-03-07 09:57:13 +0100 | [diff] [blame] | 1430 | syscon2: syscon@2 { |
Masahiro Yamada | 42ab107 | 2018-04-23 13:26:53 +0900 | [diff] [blame] | 1431 | compatible = "simple-mfd", "syscon"; |
| 1432 | reg = <0x40 5 |
| 1433 | 0x48 6 |
| 1434 | 0x50 7 |
| 1435 | 0x58 8>; |
| 1436 | }; |
| 1437 | |
Jean-Jacques Hiblot | a94b697 | 2020-10-16 16:16:34 +0530 | [diff] [blame] | 1438 | syscon3: syscon@3 { |
| 1439 | compatible = "simple-mfd", "syscon"; |
| 1440 | reg = <0x000100 0x10>; |
| 1441 | |
| 1442 | muxcontroller0: a-mux-controller { |
| 1443 | compatible = "mmio-mux"; |
| 1444 | #mux-control-cells = <1>; |
| 1445 | |
| 1446 | mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */ |
| 1447 | <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */ |
| 1448 | <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */ |
| 1449 | idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>; |
| 1450 | u-boot,mux-autoprobe; |
| 1451 | }; |
| 1452 | }; |
| 1453 | |
| 1454 | muxcontroller1: emul-mux-controller { |
| 1455 | compatible = "mux-emul"; |
| 1456 | #mux-control-cells = <0>; |
| 1457 | u-boot,mux-autoprobe; |
| 1458 | idle-state = <0xabcd>; |
| 1459 | }; |
| 1460 | |
Simon Glass | 791a17f | 2020-12-16 21:20:27 -0700 | [diff] [blame] | 1461 | testfdtm0 { |
| 1462 | compatible = "denx,u-boot-fdtm-test"; |
| 1463 | }; |
| 1464 | |
| 1465 | testfdtm1: testfdtm1 { |
| 1466 | compatible = "denx,u-boot-fdtm-test"; |
| 1467 | }; |
| 1468 | |
| 1469 | testfdtm2 { |
| 1470 | compatible = "denx,u-boot-fdtm-test"; |
| 1471 | }; |
| 1472 | |
Sean Anderson | 79d3bba | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 1473 | timer@0 { |
Thomas Chou | 6f2cfbf | 2015-12-11 16:27:34 +0800 | [diff] [blame] | 1474 | compatible = "sandbox,timer"; |
| 1475 | clock-frequency = <1000000>; |
| 1476 | }; |
| 1477 | |
Sean Anderson | 79d3bba | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 1478 | timer@1 { |
| 1479 | compatible = "sandbox,timer"; |
| 1480 | sandbox,timebase-frequency-fallback; |
| 1481 | }; |
| 1482 | |
Miquel Raynal | 80938c1 | 2018-05-15 11:57:27 +0200 | [diff] [blame] | 1483 | tpm2 { |
| 1484 | compatible = "sandbox,tpm2"; |
Eddie James | 1a55a7a | 2023-10-24 10:43:51 -0500 | [diff] [blame] | 1485 | memory-region = <&event_log>; |
Miquel Raynal | 80938c1 | 2018-05-15 11:57:27 +0200 | [diff] [blame] | 1486 | }; |
| 1487 | |
Simon Glass | eef107e | 2023-02-21 06:24:51 -0700 | [diff] [blame] | 1488 | tpm { |
| 1489 | compatible = "google,sandbox-tpm"; |
| 1490 | }; |
| 1491 | |
Simon Glass | 5b96863 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 1492 | uart0: serial { |
| 1493 | compatible = "sandbox,serial"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 1494 | bootph-all; |
Dario Binacchi | 20dd9e1 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1495 | pinctrl-names = "default"; |
| 1496 | pinctrl-0 = <&pinmux_uart0_pins>; |
Joe Hershberger | 4c19724 | 2015-03-22 17:09:15 -0500 | [diff] [blame] | 1497 | }; |
| 1498 | |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1499 | usb_0: usb@0 { |
| 1500 | compatible = "sandbox,usb"; |
| 1501 | status = "disabled"; |
| 1502 | hub { |
| 1503 | compatible = "sandbox,usb-hub"; |
| 1504 | #address-cells = <1>; |
| 1505 | #size-cells = <0>; |
| 1506 | flash-stick { |
| 1507 | reg = <0>; |
| 1508 | compatible = "sandbox,usb-flash"; |
| 1509 | }; |
| 1510 | }; |
| 1511 | }; |
| 1512 | |
| 1513 | usb_1: usb@1 { |
| 1514 | compatible = "sandbox,usb"; |
Mark Kettenis | 67748ee | 2021-10-23 16:58:02 +0200 | [diff] [blame] | 1515 | iommus = <&iommu>; |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1516 | hub { |
| 1517 | compatible = "usb-hub"; |
| 1518 | usb,device-class = <9>; |
Michael Walle | 7c96132 | 2020-06-02 01:47:07 +0200 | [diff] [blame] | 1519 | #address-cells = <1>; |
| 1520 | #size-cells = <0>; |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1521 | hub-emul { |
| 1522 | compatible = "sandbox,usb-hub"; |
| 1523 | #address-cells = <1>; |
| 1524 | #size-cells = <0>; |
Simon Glass | 4700fe5 | 2015-11-08 23:48:01 -0700 | [diff] [blame] | 1525 | flash-stick@0 { |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1526 | reg = <0>; |
| 1527 | compatible = "sandbox,usb-flash"; |
| 1528 | sandbox,filepath = "testflash.bin"; |
| 1529 | }; |
| 1530 | |
Simon Glass | 4700fe5 | 2015-11-08 23:48:01 -0700 | [diff] [blame] | 1531 | flash-stick@1 { |
| 1532 | reg = <1>; |
| 1533 | compatible = "sandbox,usb-flash"; |
Simon Glass | 64c6325 | 2024-11-07 14:31:49 -0700 | [diff] [blame] | 1534 | sandbox,filepath = "flash1.img"; |
Simon Glass | 4700fe5 | 2015-11-08 23:48:01 -0700 | [diff] [blame] | 1535 | }; |
| 1536 | |
| 1537 | flash-stick@2 { |
| 1538 | reg = <2>; |
| 1539 | compatible = "sandbox,usb-flash"; |
| 1540 | sandbox,filepath = "testflash2.bin"; |
| 1541 | }; |
| 1542 | |
Simon Glass | c0ccc72 | 2015-11-08 23:48:08 -0700 | [diff] [blame] | 1543 | keyb@3 { |
| 1544 | reg = <3>; |
| 1545 | compatible = "sandbox,usb-keyb"; |
| 1546 | }; |
| 1547 | |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1548 | }; |
Michael Walle | 7c96132 | 2020-06-02 01:47:07 +0200 | [diff] [blame] | 1549 | |
| 1550 | usbstor@1 { |
| 1551 | reg = <1>; |
| 1552 | }; |
| 1553 | usbstor@3 { |
| 1554 | reg = <3>; |
| 1555 | }; |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1556 | }; |
| 1557 | }; |
| 1558 | |
| 1559 | usb_2: usb@2 { |
| 1560 | compatible = "sandbox,usb"; |
| 1561 | status = "disabled"; |
| 1562 | }; |
| 1563 | |
Mateusz Kulikowski | c7e4fbb | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1564 | spmi: spmi@0 { |
| 1565 | compatible = "sandbox,spmi"; |
| 1566 | #address-cells = <0x1>; |
| 1567 | #size-cells = <0x1>; |
Simon Glass | 9513997 | 2019-09-25 08:55:59 -0600 | [diff] [blame] | 1568 | ranges; |
Mateusz Kulikowski | c7e4fbb | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1569 | pm8916@0 { |
| 1570 | compatible = "qcom,spmi-pmic"; |
| 1571 | reg = <0x0 0x1>; |
| 1572 | #address-cells = <0x1>; |
| 1573 | #size-cells = <0x1>; |
Simon Glass | 9513997 | 2019-09-25 08:55:59 -0600 | [diff] [blame] | 1574 | ranges; |
Mateusz Kulikowski | c7e4fbb | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1575 | |
| 1576 | spmi_gpios: gpios@c000 { |
| 1577 | compatible = "qcom,pm8916-gpio"; |
| 1578 | reg = <0xc000 0x400>; |
Caleb Connolly | 1edc45f | 2024-01-08 15:30:51 +0000 | [diff] [blame] | 1579 | gpio-ranges = <&spmi_gpios 0 0 4>; |
Mateusz Kulikowski | c7e4fbb | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1580 | gpio-controller; |
| 1581 | gpio-count = <4>; |
| 1582 | #gpio-cells = <2>; |
Mateusz Kulikowski | c7e4fbb | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1583 | }; |
| 1584 | }; |
| 1585 | }; |
maxims@google.com | daea6d4 | 2017-04-17 12:00:21 -0700 | [diff] [blame] | 1586 | |
| 1587 | wdt0: wdt@0 { |
| 1588 | compatible = "sandbox,wdt"; |
Rasmus Villemoes | f91ff5a | 2021-08-19 11:57:06 +0200 | [diff] [blame] | 1589 | hw_margin_ms = <200>; |
maxims@google.com | daea6d4 | 2017-04-17 12:00:21 -0700 | [diff] [blame] | 1590 | }; |
Rob Clark | a471b67 | 2018-01-10 11:33:30 +0100 | [diff] [blame] | 1591 | |
Mario Six | 9592215 | 2018-08-09 14:51:19 +0200 | [diff] [blame] | 1592 | axi: axi@0 { |
| 1593 | compatible = "sandbox,axi"; |
| 1594 | #address-cells = <0x1>; |
| 1595 | #size-cells = <0x1>; |
| 1596 | store@0 { |
| 1597 | compatible = "sandbox,sandbox_store"; |
| 1598 | reg = <0x0 0x400>; |
| 1599 | }; |
| 1600 | }; |
| 1601 | |
Rob Clark | a471b67 | 2018-01-10 11:33:30 +0100 | [diff] [blame] | 1602 | chosen { |
Simon Glass | 305ac9a | 2018-02-03 10:36:58 -0700 | [diff] [blame] | 1603 | #address-cells = <1>; |
| 1604 | #size-cells = <1>; |
Simon Glass | f345596 | 2020-01-27 08:49:43 -0700 | [diff] [blame] | 1605 | setting = "sunrise ohoka"; |
| 1606 | other-node = "/some-bus/c-test@5"; |
Simon Glass | e09223c | 2020-01-27 08:49:46 -0700 | [diff] [blame] | 1607 | int-values = <0x1937 72993>; |
Simon Glass | 3c601b1 | 2020-07-07 13:12:06 -0600 | [diff] [blame] | 1608 | u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>; |
Algapally Santosh Sagar | df17899 | 2023-09-21 16:50:43 +0530 | [diff] [blame] | 1609 | stdout-path = "serial0:115200n8"; |
Rob Clark | a471b67 | 2018-01-10 11:33:30 +0100 | [diff] [blame] | 1610 | chosen-test { |
| 1611 | compatible = "denx,u-boot-fdt-test"; |
| 1612 | reg = <9 1>; |
| 1613 | }; |
| 1614 | }; |
Mario Six | 35616ef | 2018-03-12 14:53:33 +0100 | [diff] [blame] | 1615 | |
| 1616 | translation-test@8000 { |
| 1617 | compatible = "simple-bus"; |
| 1618 | reg = <0x8000 0x4000>; |
| 1619 | |
| 1620 | #address-cells = <0x2>; |
| 1621 | #size-cells = <0x1>; |
| 1622 | |
| 1623 | ranges = <0 0x0 0x8000 0x1000 |
| 1624 | 1 0x100 0x9000 0x1000 |
| 1625 | 2 0x200 0xA000 0x1000 |
| 1626 | 3 0x300 0xB000 0x1000 |
| 1627 | >; |
| 1628 | |
Fabien Dessenne | 22236e0 | 2019-05-31 15:11:30 +0200 | [diff] [blame] | 1629 | dma-ranges = <0 0x000 0x10000000 0x1000 |
| 1630 | 1 0x100 0x20000000 0x1000 |
| 1631 | >; |
| 1632 | |
Mario Six | 35616ef | 2018-03-12 14:53:33 +0100 | [diff] [blame] | 1633 | dev@0,0 { |
| 1634 | compatible = "denx,u-boot-fdt-dummy"; |
| 1635 | reg = <0 0x0 0x1000>; |
Álvaro Fernández Rojas | a318115 | 2018-12-03 19:37:09 +0100 | [diff] [blame] | 1636 | reg-names = "sandbox-dummy-0"; |
Mario Six | 35616ef | 2018-03-12 14:53:33 +0100 | [diff] [blame] | 1637 | }; |
| 1638 | |
| 1639 | dev@1,100 { |
| 1640 | compatible = "denx,u-boot-fdt-dummy"; |
| 1641 | reg = <1 0x100 0x1000>; |
| 1642 | |
| 1643 | }; |
| 1644 | |
| 1645 | dev@2,200 { |
| 1646 | compatible = "denx,u-boot-fdt-dummy"; |
| 1647 | reg = <2 0x200 0x1000>; |
| 1648 | }; |
| 1649 | |
| 1650 | |
| 1651 | noxlatebus@3,300 { |
| 1652 | compatible = "simple-bus"; |
| 1653 | reg = <3 0x300 0x1000>; |
| 1654 | |
| 1655 | #address-cells = <0x1>; |
| 1656 | #size-cells = <0x0>; |
| 1657 | |
| 1658 | dev@42 { |
| 1659 | compatible = "denx,u-boot-fdt-dummy"; |
| 1660 | reg = <0x42>; |
| 1661 | }; |
| 1662 | }; |
| 1663 | }; |
Mario Six | 02ad6fb | 2018-09-27 09:19:31 +0200 | [diff] [blame] | 1664 | |
Dzmitry Sankouski | 54f4c83 | 2023-01-22 18:21:23 +0300 | [diff] [blame] | 1665 | ofnode-foreach { |
| 1666 | compatible = "foreach"; |
| 1667 | |
| 1668 | first { |
| 1669 | prop1 = <1>; |
| 1670 | prop2 = <2>; |
| 1671 | }; |
| 1672 | |
| 1673 | second { |
| 1674 | prop1 = <1>; |
| 1675 | prop2 = <2>; |
| 1676 | }; |
| 1677 | }; |
| 1678 | |
Mario Six | 02ad6fb | 2018-09-27 09:19:31 +0200 | [diff] [blame] | 1679 | osd { |
| 1680 | compatible = "sandbox,sandbox_osd"; |
| 1681 | }; |
Tom Rini | b93eea7 | 2018-09-30 18:16:51 -0400 | [diff] [blame] | 1682 | |
Jens Wiklander | 86afaa6 | 2018-09-25 16:40:16 +0200 | [diff] [blame] | 1683 | sandbox_tee { |
| 1684 | compatible = "sandbox,tee"; |
| 1685 | }; |
Bin Meng | 1bb290d | 2018-10-15 02:21:26 -0700 | [diff] [blame] | 1686 | |
| 1687 | sandbox_virtio1 { |
| 1688 | compatible = "sandbox,virtio1"; |
Simon Glass | 8de5a54 | 2023-01-17 10:47:51 -0700 | [diff] [blame] | 1689 | virtio-type = <4>; /* rng */ |
Bin Meng | 1bb290d | 2018-10-15 02:21:26 -0700 | [diff] [blame] | 1690 | }; |
| 1691 | |
| 1692 | sandbox_virtio2 { |
| 1693 | compatible = "sandbox,virtio2"; |
| 1694 | }; |
Patrice Chotard | 0fc8afc | 2018-10-24 14:10:23 +0200 | [diff] [blame] | 1695 | |
Simon Glass | 8de5a54 | 2023-01-17 10:47:51 -0700 | [diff] [blame] | 1696 | sandbox-virtio-blk { |
| 1697 | compatible = "sandbox,virtio1"; |
| 1698 | virtio-type = <2>; /* block */ |
| 1699 | }; |
| 1700 | |
Etienne Carriere | 2d94c08fa | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 1701 | sandbox_scmi { |
| 1702 | compatible = "sandbox,scmi-devices"; |
AKASHI Takahiro | 535a7bd | 2023-10-16 14:39:45 +0900 | [diff] [blame] | 1703 | power-domains = <&pwrdom_scmi 2>; |
Etienne Carriere | bf1f132 | 2022-02-21 09:22:41 +0100 | [diff] [blame] | 1704 | clocks = <&clk_scmi 2>, <&clk_scmi 0>; |
Etienne Carriere | 09665cb | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 1705 | resets = <&reset_scmi 3>; |
| 1706 | regul0-supply = <®ul0_scmi>; |
| 1707 | regul1-supply = <®ul1_scmi>; |
Etienne Carriere | 2d94c08fa | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 1708 | }; |
| 1709 | |
Patrice Chotard | 0fc8afc | 2018-10-24 14:10:23 +0200 | [diff] [blame] | 1710 | pinctrl { |
| 1711 | compatible = "sandbox,pinctrl"; |
Patrick Delaunay | 939cbe9 | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1712 | |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1713 | pinctrl-names = "default", "alternate"; |
| 1714 | pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>; |
| 1715 | pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>; |
Patrick Delaunay | 939cbe9 | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1716 | |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1717 | pinctrl_gpios: gpios { |
Patrick Delaunay | 939cbe9 | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1718 | gpio0 { |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1719 | pins = "P5"; |
| 1720 | function = "GPIO"; |
Patrick Delaunay | 939cbe9 | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1721 | bias-pull-up; |
| 1722 | input-disable; |
| 1723 | }; |
| 1724 | gpio1 { |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1725 | pins = "P6"; |
| 1726 | function = "GPIO"; |
Patrick Delaunay | 939cbe9 | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1727 | output-high; |
| 1728 | drive-open-drain; |
| 1729 | }; |
| 1730 | gpio2 { |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1731 | pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>; |
Patrick Delaunay | 939cbe9 | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1732 | bias-pull-down; |
| 1733 | input-enable; |
| 1734 | }; |
| 1735 | gpio3 { |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1736 | pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>; |
Patrick Delaunay | 939cbe9 | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1737 | bias-disable; |
| 1738 | }; |
| 1739 | }; |
Sean Anderson | 3438e3b | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1740 | |
| 1741 | pinctrl_i2c: i2c { |
| 1742 | groups { |
| 1743 | groups = "I2C_UART"; |
| 1744 | function = "I2C"; |
| 1745 | }; |
| 1746 | |
| 1747 | pins { |
| 1748 | pins = "P0", "P1"; |
| 1749 | drive-open-drain; |
| 1750 | }; |
| 1751 | }; |
| 1752 | |
| 1753 | pinctrl_i2s: i2s { |
| 1754 | groups = "SPI_I2S"; |
| 1755 | function = "I2S"; |
| 1756 | }; |
| 1757 | |
| 1758 | pinctrl_spi: spi { |
| 1759 | groups = "SPI_I2S"; |
| 1760 | function = "SPI"; |
| 1761 | |
| 1762 | cs { |
| 1763 | pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>, |
| 1764 | <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>; |
| 1765 | }; |
| 1766 | }; |
Patrice Chotard | 0fc8afc | 2018-10-24 14:10:23 +0200 | [diff] [blame] | 1767 | }; |
Benjamin Gaignard | a550b54 | 2018-11-27 13:49:50 +0100 | [diff] [blame] | 1768 | |
Dario Binacchi | 20dd9e1 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1769 | pinctrl-single-no-width { |
| 1770 | compatible = "pinctrl-single"; |
| 1771 | reg = <0x0000 0x238>; |
| 1772 | #pinctrl-cells = <1>; |
| 1773 | pinctrl-single,function-mask = <0x7f>; |
| 1774 | }; |
| 1775 | |
| 1776 | pinctrl-single-pins { |
| 1777 | compatible = "pinctrl-single"; |
| 1778 | reg = <0x0000 0x238>; |
| 1779 | #pinctrl-cells = <1>; |
| 1780 | pinctrl-single,register-width = <32>; |
| 1781 | pinctrl-single,function-mask = <0x7f>; |
| 1782 | |
| 1783 | pinmux_pwm_pins: pinmux_pwm_pins { |
| 1784 | pinctrl-single,pins = < 0x48 0x06 >; |
| 1785 | }; |
| 1786 | |
| 1787 | pinmux_spi0_pins: pinmux_spi0_pins { |
| 1788 | pinctrl-single,pins = < |
| 1789 | 0x190 0x0c |
| 1790 | 0x194 0x0c |
| 1791 | 0x198 0x23 |
| 1792 | 0x19c 0x0c |
| 1793 | >; |
| 1794 | }; |
| 1795 | |
| 1796 | pinmux_uart0_pins: pinmux_uart0_pins { |
| 1797 | pinctrl-single,pins = < |
| 1798 | 0x70 0x30 |
| 1799 | 0x74 0x00 |
| 1800 | >; |
| 1801 | }; |
| 1802 | }; |
| 1803 | |
| 1804 | pinctrl-single-bits { |
| 1805 | compatible = "pinctrl-single"; |
| 1806 | reg = <0x0000 0x50>; |
| 1807 | #pinctrl-cells = <2>; |
| 1808 | pinctrl-single,bit-per-mux; |
| 1809 | pinctrl-single,register-width = <32>; |
| 1810 | pinctrl-single,function-mask = <0xf>; |
| 1811 | |
| 1812 | pinmux_i2c0_pins: pinmux_i2c0_pins { |
| 1813 | pinctrl-single,bits = < |
| 1814 | 0x10 0x00002200 0x0000ff00 |
| 1815 | >; |
| 1816 | }; |
| 1817 | |
| 1818 | pinmux_lcd_pins: pinmux_lcd_pins { |
| 1819 | pinctrl-single,bits = < |
| 1820 | 0x40 0x22222200 0xffffff00 |
| 1821 | 0x44 0x22222222 0xffffffff |
| 1822 | 0x48 0x00000022 0x000000ff |
| 1823 | 0x48 0x02000000 0x0f000000 |
| 1824 | 0x4c 0x02000022 0x0f0000ff |
| 1825 | >; |
| 1826 | }; |
| 1827 | }; |
| 1828 | |
Benjamin Gaignard | a550b54 | 2018-11-27 13:49:50 +0100 | [diff] [blame] | 1829 | hwspinlock@0 { |
| 1830 | compatible = "sandbox,hwspinlock"; |
| 1831 | }; |
Grygorii Strashko | 19ebf0b | 2018-11-28 19:17:51 +0100 | [diff] [blame] | 1832 | |
| 1833 | dma: dma { |
| 1834 | compatible = "sandbox,dma"; |
| 1835 | #dma-cells = <1>; |
| 1836 | |
| 1837 | dmas = <&dma 0>, <&dma 1>, <&dma 2>; |
| 1838 | dma-names = "m2m", "tx0", "rx0"; |
| 1839 | }; |
Alex Marginean | 0daa53a | 2019-06-03 19:12:28 +0300 | [diff] [blame] | 1840 | |
Alex Marginean | 0649be5 | 2019-07-12 10:13:53 +0300 | [diff] [blame] | 1841 | /* |
| 1842 | * keep mdio-mux ahead of mdio so that the mux is removed first at the |
| 1843 | * end of the test. If parent mdio is removed first, clean-up of the |
| 1844 | * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio |
| 1845 | * active at the end of the test. That it turn doesn't allow the mdio |
| 1846 | * class to be destroyed, triggering an error. |
| 1847 | */ |
| 1848 | mdio-mux-test { |
| 1849 | compatible = "sandbox,mdio-mux"; |
| 1850 | #address-cells = <1>; |
| 1851 | #size-cells = <0>; |
| 1852 | mdio-parent-bus = <&mdio>; |
| 1853 | |
| 1854 | mdio-ch-test@0 { |
| 1855 | reg = <0>; |
| 1856 | }; |
| 1857 | mdio-ch-test@1 { |
| 1858 | reg = <1>; |
| 1859 | }; |
| 1860 | }; |
| 1861 | |
| 1862 | mdio: mdio-test { |
Alex Marginean | 0daa53a | 2019-06-03 19:12:28 +0300 | [diff] [blame] | 1863 | compatible = "sandbox,mdio"; |
Marek Behún | f4f1ddc | 2022-04-07 00:32:57 +0200 | [diff] [blame] | 1864 | #address-cells = <1>; |
| 1865 | #size-cells = <0>; |
| 1866 | |
| 1867 | ethphy1: ethernet-phy@1 { |
| 1868 | reg = <1>; |
| 1869 | }; |
Alex Marginean | 0daa53a | 2019-06-03 19:12:28 +0300 | [diff] [blame] | 1870 | }; |
Sean Anderson | b786054 | 2020-06-24 06:41:12 -0400 | [diff] [blame] | 1871 | |
| 1872 | pm-bus-test { |
| 1873 | compatible = "simple-pm-bus"; |
| 1874 | clocks = <&clk_sandbox 4>; |
| 1875 | power-domains = <&pwrdom 1>; |
| 1876 | }; |
Sean Anderson | 0c1f6bf | 2020-06-24 06:41:14 -0400 | [diff] [blame] | 1877 | |
| 1878 | resetc2: syscon-reset { |
| 1879 | compatible = "syscon-reset"; |
| 1880 | #reset-cells = <1>; |
| 1881 | regmap = <&syscon0>; |
| 1882 | offset = <1>; |
| 1883 | mask = <0x27FFFFFF>; |
| 1884 | assert-high = <0>; |
| 1885 | }; |
| 1886 | |
| 1887 | syscon-reset-test { |
| 1888 | compatible = "sandbox,misc_sandbox"; |
| 1889 | resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>; |
| 1890 | reset-names = "valid", "no_mask", "out_of_range"; |
| 1891 | }; |
Jean-Jacques Hiblot | 0b89fc5 | 2020-09-24 10:04:18 +0530 | [diff] [blame] | 1892 | |
Simon Glass | 458b66a | 2020-11-05 06:32:05 -0700 | [diff] [blame] | 1893 | sysinfo { |
| 1894 | compatible = "sandbox,sysinfo-sandbox"; |
| 1895 | }; |
| 1896 | |
Sean Anderson | 1c83067 | 2021-04-20 10:50:58 -0400 | [diff] [blame] | 1897 | sysinfo-gpio { |
| 1898 | compatible = "gpio-sysinfo"; |
| 1899 | gpios = <&gpio_a 15>, <&gpio_a 16>, <&gpio_a 17>; |
| 1900 | revisions = <19>, <5>; |
| 1901 | names = "rev_a", "foo"; |
| 1902 | }; |
| 1903 | |
Jean-Jacques Hiblot | 0b89fc5 | 2020-09-24 10:04:18 +0530 | [diff] [blame] | 1904 | some_regmapped-bus { |
| 1905 | #address-cells = <0x1>; |
| 1906 | #size-cells = <0x1>; |
| 1907 | |
| 1908 | ranges = <0x0 0x0 0x10>; |
| 1909 | compatible = "simple-bus"; |
| 1910 | |
| 1911 | regmap-test_0 { |
| 1912 | reg = <0 0x10>; |
| 1913 | compatible = "sandbox,regmap_test"; |
| 1914 | }; |
| 1915 | }; |
Robert Marko | 9cf8712 | 2022-09-06 13:30:35 +0200 | [diff] [blame] | 1916 | |
| 1917 | thermal { |
| 1918 | compatible = "sandbox,thermal"; |
| 1919 | }; |
Sughosh Ganu | 77079e7 | 2022-10-21 18:16:05 +0530 | [diff] [blame] | 1920 | |
| 1921 | fwu-mdata { |
| 1922 | compatible = "u-boot,fwu-mdata-gpt"; |
| 1923 | fwu-mdata-store = <&mmc0>; |
| 1924 | }; |
Abdellatif El Khlifi | 6b00587 | 2023-04-17 10:11:55 +0100 | [diff] [blame] | 1925 | |
| 1926 | nvmxip-qspi1@08000000 { |
| 1927 | compatible = "nvmxip,qspi"; |
| 1928 | reg = <0x08000000 0x00200000>; |
| 1929 | lba_shift = <9>; |
| 1930 | lba = <4096>; |
| 1931 | }; |
| 1932 | |
| 1933 | nvmxip-qspi2@08200000 { |
| 1934 | compatible = "nvmxip,qspi"; |
| 1935 | reg = <0x08200000 0x00100000>; |
| 1936 | lba_shift = <9>; |
| 1937 | lba = <2048>; |
| 1938 | }; |
Svyatoslav Ryhel | 669f5c8 | 2023-04-25 10:57:21 +0300 | [diff] [blame] | 1939 | |
| 1940 | extcon { |
| 1941 | compatible = "sandbox,extcon"; |
| 1942 | }; |
Abdellatif El Khlifi | 4970d5b | 2023-08-04 14:33:41 +0100 | [diff] [blame] | 1943 | |
| 1944 | arm-ffa-emul { |
| 1945 | compatible = "sandbox,arm-ffa-emul"; |
| 1946 | |
| 1947 | sandbox-arm-ffa { |
| 1948 | compatible = "sandbox,arm-ffa"; |
| 1949 | }; |
| 1950 | }; |
Sean Anderson | 326422b | 2023-11-04 16:37:52 -0400 | [diff] [blame] | 1951 | |
| 1952 | nand-controller { |
| 1953 | #address-cells = <1>; |
| 1954 | #size-cells = <0>; |
| 1955 | compatible = "sandbox,nand"; |
| 1956 | |
| 1957 | nand@0 { |
| 1958 | reg = <0>; |
| 1959 | nand-ecc-mode = "soft"; |
| 1960 | sandbox,id = [00 e3]; |
| 1961 | sandbox,erasesize = <(8 * 1024)>; |
| 1962 | sandbox,oobsize = <16>; |
| 1963 | sandbox,pagesize = <512>; |
| 1964 | sandbox,pages = <0x2000>; |
| 1965 | sandbox,err-count = <1>; |
| 1966 | sandbox,err-step-size = <512>; |
| 1967 | }; |
| 1968 | |
| 1969 | /* MT29F64G08AKABA */ |
| 1970 | nand@1 { |
| 1971 | reg = <1>; |
| 1972 | nand-ecc-mode = "soft_bch"; |
| 1973 | sandbox,id = [2C 48 00 26 89 00 00 00]; |
| 1974 | sandbox,onfi = [ |
| 1975 | 4f 4e 46 49 0e 00 5a 00 |
| 1976 | ff 01 00 00 00 00 03 00 |
| 1977 | 00 00 00 00 00 00 00 00 |
| 1978 | 00 00 00 00 00 00 00 00 |
| 1979 | 4d 49 43 52 4f 4e 20 20 |
| 1980 | 20 20 20 20 4d 54 32 39 |
| 1981 | 46 36 34 47 30 38 41 4b |
| 1982 | 41 42 41 43 35 20 20 20 |
| 1983 | 2c 00 00 00 00 00 00 00 |
| 1984 | 00 00 00 00 00 00 00 00 |
| 1985 | 00 10 00 00 e0 00 00 02 |
| 1986 | 00 00 1c 00 80 00 00 00 |
| 1987 | 00 10 00 00 02 23 01 50 |
| 1988 | 00 01 05 01 00 00 04 00 |
| 1989 | 04 01 1e 00 00 00 00 00 |
| 1990 | 00 00 00 00 00 00 00 00 |
| 1991 | 0e 1f 00 1f 00 f4 01 ac |
| 1992 | 0d 19 00 c8 00 00 00 00 |
| 1993 | 00 00 00 00 00 00 0a 07 |
| 1994 | 19 00 00 00 00 00 00 00 |
| 1995 | 00 00 00 00 01 00 01 00 |
| 1996 | 00 00 04 10 01 81 04 02 |
| 1997 | 02 01 1e 90 00 00 00 00 |
| 1998 | 00 00 00 00 00 00 00 00 |
| 1999 | 00 00 00 00 00 00 00 00 |
| 2000 | 00 00 00 00 00 00 00 00 |
| 2001 | 00 00 00 00 00 00 00 00 |
| 2002 | 00 00 00 00 00 00 00 00 |
| 2003 | 00 00 00 00 00 00 00 00 |
| 2004 | 00 00 00 00 00 00 00 00 |
| 2005 | 00 00 00 00 00 00 00 00 |
| 2006 | 00 00 00 00 00 03 20 7d |
| 2007 | ]; |
| 2008 | sandbox,erasesize = <(512 * 1024)>; |
| 2009 | sandbox,oobsize = <224>; |
| 2010 | sandbox,pagesize = <4096>; |
| 2011 | sandbox,pages = <0x200000>; |
| 2012 | sandbox,err-count = <3>; |
| 2013 | sandbox,err-step-size = <512>; |
| 2014 | }; |
| 2015 | }; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 2016 | }; |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 2017 | |
| 2018 | #include "sandbox_pmic.dtsi" |
Heinrich Schuchardt | e24fdef | 2021-02-18 13:01:35 +0100 | [diff] [blame] | 2019 | #include "cros-ec-keyboard.dtsi" |
Simon Glass | 5e135d3 | 2022-10-20 18:23:15 -0600 | [diff] [blame] | 2020 | |
| 2021 | #ifdef CONFIG_SANDBOX_VPL |
| 2022 | #include "sandbox_vpl.dtsi" |
| 2023 | #endif |
Simon Glass | 6130072 | 2023-06-01 10:23:01 -0600 | [diff] [blame] | 2024 | |
Sughosh Ganu | 0513792 | 2024-03-27 16:19:00 +0530 | [diff] [blame] | 2025 | #if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) |
| 2026 | #include "sandbox_capsule.dtsi" |
| 2027 | #endif |
| 2028 | |
Simon Glass | 6130072 | 2023-06-01 10:23:01 -0600 | [diff] [blame] | 2029 | #include "cedit.dtsi" |