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