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