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