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