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