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