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>; |
Joe Hershberger | c6fa51a | 2018-07-02 14:47:45 -0500 | [diff] [blame] | 530 | fake-host-hwaddr = [00 00 66 44 22 00]; |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 531 | }; |
| 532 | |
| 533 | eth_5: eth@10003000 { |
| 534 | compatible = "sandbox,eth"; |
| 535 | reg = <0x10003000 0x1000>; |
Joe Hershberger | c6fa51a | 2018-07-02 14:47:45 -0500 | [diff] [blame] | 536 | fake-host-hwaddr = [00 00 66 44 22 11]; |
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>; |
Joe Hershberger | c6fa51a | 2018-07-02 14:47:45 -0500 | [diff] [blame] | 542 | fake-host-hwaddr = [00 00 66 44 22 33]; |
Bin Meng | 71d7971 | 2015-08-27 22:25:53 -0700 | [diff] [blame] | 543 | }; |
| 544 | |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 545 | eth@10004000 { |
| 546 | compatible = "sandbox,eth"; |
| 547 | reg = <0x10004000 0x1000>; |
Joe Hershberger | c6fa51a | 2018-07-02 14:47:45 -0500 | [diff] [blame] | 548 | fake-host-hwaddr = [00 00 66 44 22 22]; |
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>; |
| 554 | fake-host-hwaddr = [00 00 66 44 22 77]; |
| 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>; |
| 562 | fake-host-hwaddr = [00 00 66 44 22 66]; |
| 563 | }; |
| 564 | |
| 565 | dsa-test { |
| 566 | compatible = "sandbox,dsa"; |
| 567 | |
| 568 | ports { |
| 569 | #address-cells = <1>; |
| 570 | #size-cells = <0>; |
| 571 | swp_0: port@0 { |
| 572 | reg = <0>; |
| 573 | label = "lan0"; |
| 574 | phy-mode = "rgmii-rxid"; |
| 575 | |
| 576 | fixed-link { |
| 577 | speed = <100>; |
| 578 | full-duplex; |
| 579 | }; |
| 580 | }; |
| 581 | |
| 582 | swp_1: port@1 { |
| 583 | reg = <1>; |
| 584 | label = "lan1"; |
| 585 | phy-mode = "rgmii-txid"; |
Bin Meng | 534c69b | 2021-03-14 20:14:58 +0800 | [diff] [blame] | 586 | fixed-link = <0 1 100 0 0>; |
Claudiu Manoil | ff98da0 | 2021-03-14 20:14:57 +0800 | [diff] [blame] | 587 | }; |
| 588 | |
| 589 | port@2 { |
| 590 | reg = <2>; |
| 591 | ethernet = <&dsa_eth0>; |
| 592 | |
| 593 | fixed-link { |
| 594 | speed = <1000>; |
| 595 | full-duplex; |
| 596 | }; |
| 597 | }; |
| 598 | }; |
| 599 | }; |
| 600 | |
Rajan Vaja | 31b8217 | 2018-09-19 03:43:46 -0700 | [diff] [blame] | 601 | firmware { |
| 602 | sandbox_firmware: sandbox-firmware { |
| 603 | compatible = "sandbox,firmware"; |
| 604 | }; |
Etienne Carriere | 358599e | 2020-09-09 18:44:00 +0200 | [diff] [blame] | 605 | |
Etienne Carriere | 41d62e2 | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 606 | scmi { |
Etienne Carriere | 358599e | 2020-09-09 18:44:00 +0200 | [diff] [blame] | 607 | compatible = "sandbox,scmi-agent"; |
| 608 | #address-cells = <1>; |
| 609 | #size-cells = <0>; |
Etienne Carriere | 87d4f27 | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 610 | |
Etienne Carriere | 41d62e2 | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 611 | protocol@10 { |
| 612 | reg = <0x10>; |
| 613 | }; |
| 614 | |
| 615 | clk_scmi: protocol@14 { |
Etienne Carriere | 87d4f27 | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 616 | reg = <0x14>; |
| 617 | #clock-cells = <1>; |
| 618 | }; |
Etienne Carriere | c0dd177 | 2020-09-09 18:44:07 +0200 | [diff] [blame] | 619 | |
Etienne Carriere | 41d62e2 | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 620 | reset_scmi: protocol@16 { |
Etienne Carriere | c0dd177 | 2020-09-09 18:44:07 +0200 | [diff] [blame] | 621 | reg = <0x16>; |
| 622 | #reset-cells = <1>; |
| 623 | }; |
Etienne Carriere | 0124218 | 2021-03-08 22:38:07 +0100 | [diff] [blame] | 624 | |
| 625 | protocol@17 { |
| 626 | reg = <0x17>; |
| 627 | |
| 628 | regulators { |
| 629 | #address-cells = <1>; |
| 630 | #size-cells = <0>; |
| 631 | |
Etienne Carriere | 41d62e2 | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 632 | regul0_scmi: reg@0 { |
Etienne Carriere | 0124218 | 2021-03-08 22:38:07 +0100 | [diff] [blame] | 633 | reg = <0>; |
| 634 | regulator-name = "sandbox-voltd0"; |
| 635 | regulator-min-microvolt = <1100000>; |
| 636 | regulator-max-microvolt = <3300000>; |
| 637 | }; |
Etienne Carriere | 41d62e2 | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 638 | regul1_scmi: reg@1 { |
Etienne Carriere | 0124218 | 2021-03-08 22:38:07 +0100 | [diff] [blame] | 639 | reg = <0x1>; |
| 640 | regulator-name = "sandbox-voltd1"; |
| 641 | regulator-min-microvolt = <1800000>; |
| 642 | }; |
| 643 | }; |
| 644 | }; |
Etienne Carriere | 358599e | 2020-09-09 18:44:00 +0200 | [diff] [blame] | 645 | }; |
Rajan Vaja | 31b8217 | 2018-09-19 03:43:46 -0700 | [diff] [blame] | 646 | }; |
| 647 | |
Patrick Delaunay | e5301ba | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 648 | pinctrl-gpio { |
| 649 | compatible = "sandbox,pinctrl-gpio"; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 650 | |
Patrick Delaunay | e5301ba | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 651 | gpio_a: base-gpios { |
| 652 | compatible = "sandbox,gpio"; |
| 653 | gpio-controller; |
| 654 | #gpio-cells = <1>; |
| 655 | gpio-bank-name = "a"; |
| 656 | sandbox,gpio-count = <20>; |
Heiko Schocher | 9ba8432 | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 657 | hog_input_active_low { |
| 658 | gpio-hog; |
| 659 | input; |
Philippe Reynes | 037a56d | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 660 | gpios = <10 GPIO_ACTIVE_LOW>; |
Heiko Schocher | 9ba8432 | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 661 | }; |
| 662 | hog_input_active_high { |
| 663 | gpio-hog; |
| 664 | input; |
Philippe Reynes | 037a56d | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 665 | gpios = <11 GPIO_ACTIVE_HIGH>; |
Heiko Schocher | 9ba8432 | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 666 | }; |
| 667 | hog_output_low { |
| 668 | gpio-hog; |
| 669 | output-low; |
Philippe Reynes | 037a56d | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 670 | gpios = <12 GPIO_ACTIVE_HIGH>; |
Heiko Schocher | 9ba8432 | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 671 | }; |
| 672 | hog_output_high { |
| 673 | gpio-hog; |
| 674 | output-high; |
Philippe Reynes | 037a56d | 2020-07-24 15:51:53 +0200 | [diff] [blame] | 675 | gpios = <13 GPIO_ACTIVE_HIGH>; |
Heiko Schocher | 9ba8432 | 2020-05-22 11:08:58 +0200 | [diff] [blame] | 676 | }; |
Patrick Delaunay | e5301ba | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 677 | }; |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 678 | |
Patrick Delaunay | e5301ba | 2020-01-13 11:35:15 +0100 | [diff] [blame] | 679 | gpio_b: extra-gpios { |
| 680 | compatible = "sandbox,gpio"; |
| 681 | gpio-controller; |
| 682 | #gpio-cells = <5>; |
| 683 | gpio-bank-name = "b"; |
| 684 | sandbox,gpio-count = <10>; |
| 685 | }; |
| 686 | |
| 687 | gpio_c: pinmux-gpios { |
| 688 | compatible = "sandbox,gpio"; |
| 689 | gpio-controller; |
| 690 | #gpio-cells = <2>; |
| 691 | gpio-bank-name = "c"; |
| 692 | sandbox,gpio-count = <10>; |
| 693 | }; |
Patrick Delaunay | ff52665 | 2020-01-13 11:35:14 +0100 | [diff] [blame] | 694 | }; |
| 695 | |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 696 | i2c@0 { |
| 697 | #address-cells = <1>; |
| 698 | #size-cells = <0>; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 699 | reg = <0 1>; |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 700 | compatible = "sandbox,i2c"; |
| 701 | clock-frequency = <100000>; |
Dario Binacchi | 5532262 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 702 | pinctrl-names = "default"; |
| 703 | pinctrl-0 = <&pinmux_i2c0_pins>; |
| 704 | |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 705 | eeprom@2c { |
| 706 | reg = <0x2c>; |
| 707 | compatible = "i2c-eeprom"; |
Simon Glass | 031a650 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 708 | sandbox,emul = <&emul_eeprom>; |
Michal Simek | f692b47 | 2020-05-28 11:48:55 +0200 | [diff] [blame] | 709 | partitions { |
| 710 | compatible = "fixed-partitions"; |
| 711 | #address-cells = <1>; |
| 712 | #size-cells = <1>; |
| 713 | bootcount_i2c: bootcount@10 { |
| 714 | reg = <10 2>; |
| 715 | }; |
| 716 | }; |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 717 | }; |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 718 | |
Simon Glass | 52d3bc5 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 719 | rtc_0: rtc@43 { |
| 720 | reg = <0x43>; |
| 721 | compatible = "sandbox-rtc"; |
Simon Glass | 031a650 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 722 | sandbox,emul = <&emul0>; |
Simon Glass | 52d3bc5 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 723 | }; |
| 724 | |
| 725 | rtc_1: rtc@61 { |
| 726 | reg = <0x61>; |
| 727 | compatible = "sandbox-rtc"; |
Simon Glass | 031a650 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 728 | sandbox,emul = <&emul1>; |
| 729 | }; |
| 730 | |
| 731 | i2c_emul: emul { |
| 732 | reg = <0xff>; |
| 733 | compatible = "sandbox,i2c-emul-parent"; |
| 734 | emul_eeprom: emul-eeprom { |
| 735 | compatible = "sandbox,i2c-eeprom"; |
| 736 | sandbox,filename = "i2c.bin"; |
| 737 | sandbox,size = <256>; |
| 738 | }; |
| 739 | emul0: emul0 { |
Simon Glass | c4085d7 | 2021-02-03 06:01:17 -0700 | [diff] [blame] | 740 | compatible = "sandbox,i2c-rtc-emul"; |
Simon Glass | 031a650 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 741 | }; |
| 742 | emul1: emull { |
Simon Glass | c4085d7 | 2021-02-03 06:01:17 -0700 | [diff] [blame] | 743 | compatible = "sandbox,i2c-rtc-emul"; |
Simon Glass | 52d3bc5 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 744 | }; |
| 745 | }; |
| 746 | |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 747 | sandbox_pmic: sandbox_pmic { |
| 748 | reg = <0x40>; |
Simon Glass | 031a650 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 749 | sandbox,emul = <&emul_pmic0>; |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 750 | }; |
Lukasz Majewski | 686df49 | 2018-05-15 16:26:40 +0200 | [diff] [blame] | 751 | |
| 752 | mc34708: pmic@41 { |
| 753 | reg = <0x41>; |
Simon Glass | 031a650 | 2018-11-18 08:14:34 -0700 | [diff] [blame] | 754 | sandbox,emul = <&emul_pmic1>; |
Lukasz Majewski | 686df49 | 2018-05-15 16:26:40 +0200 | [diff] [blame] | 755 | }; |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 756 | }; |
| 757 | |
Philipp Tomsich | 6f2d59c | 2018-12-14 21:14:29 +0100 | [diff] [blame] | 758 | bootcount@0 { |
| 759 | compatible = "u-boot,bootcount-rtc"; |
| 760 | rtc = <&rtc_1>; |
| 761 | offset = <0x13>; |
| 762 | }; |
| 763 | |
Michal Simek | f692b47 | 2020-05-28 11:48:55 +0200 | [diff] [blame] | 764 | bootcount { |
| 765 | compatible = "u-boot,bootcount-i2c-eeprom"; |
| 766 | i2c-eeprom = <&bootcount_i2c>; |
| 767 | }; |
| 768 | |
Nandor Han | c50b21b | 2021-06-10 15:40:38 +0300 | [diff] [blame] | 769 | bootcount_4@0 { |
| 770 | compatible = "u-boot,bootcount-syscon"; |
| 771 | syscon = <&syscon0>; |
| 772 | reg = <0x0 0x04>, <0x0 0x04>; |
| 773 | reg-names = "syscon_reg", "offset"; |
| 774 | }; |
| 775 | |
| 776 | bootcount_2@0 { |
| 777 | compatible = "u-boot,bootcount-syscon"; |
| 778 | syscon = <&syscon0>; |
| 779 | reg = <0x0 0x04>, <0x0 0x02> ; |
| 780 | reg-names = "syscon_reg", "offset"; |
| 781 | }; |
| 782 | |
Marek Szyprowski | 289d0ea | 2021-02-18 11:33:18 +0100 | [diff] [blame] | 783 | adc: adc@0 { |
Przemyslaw Marczak | 08d6300 | 2015-10-27 13:08:06 +0100 | [diff] [blame] | 784 | compatible = "sandbox,adc"; |
Marek Szyprowski | 289d0ea | 2021-02-18 11:33:18 +0100 | [diff] [blame] | 785 | #io-channel-cells = <1>; |
Przemyslaw Marczak | 08d6300 | 2015-10-27 13:08:06 +0100 | [diff] [blame] | 786 | vdd-supply = <&buck2>; |
| 787 | vss-microvolts = <0>; |
| 788 | }; |
| 789 | |
Mark Kettenis | fb57462 | 2021-10-23 16:58:02 +0200 | [diff] [blame] | 790 | iommu: iommu@0 { |
| 791 | compatible = "sandbox,iommu"; |
| 792 | #iommu-cells = <0>; |
| 793 | }; |
| 794 | |
Simon Glass | 0255435 | 2020-02-06 09:55:00 -0700 | [diff] [blame] | 795 | irq: irq { |
Simon Glass | fbb0efd | 2019-12-06 21:41:59 -0700 | [diff] [blame] | 796 | compatible = "sandbox,irq"; |
Simon Glass | 0255435 | 2020-02-06 09:55:00 -0700 | [diff] [blame] | 797 | interrupt-controller; |
| 798 | #interrupt-cells = <2>; |
Simon Glass | fbb0efd | 2019-12-06 21:41:59 -0700 | [diff] [blame] | 799 | }; |
| 800 | |
Simon Glass | 3c97c4f | 2016-01-18 19:52:26 -0700 | [diff] [blame] | 801 | lcd { |
| 802 | u-boot,dm-pre-reloc; |
| 803 | compatible = "sandbox,lcd-sdl"; |
Dario Binacchi | 5532262 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 804 | pinctrl-names = "default"; |
| 805 | pinctrl-0 = <&pinmux_lcd_pins>; |
Simon Glass | 3c97c4f | 2016-01-18 19:52:26 -0700 | [diff] [blame] | 806 | xres = <1366>; |
| 807 | yres = <768>; |
| 808 | }; |
| 809 | |
Simon Glass | 3c43fba | 2015-07-06 12:54:34 -0600 | [diff] [blame] | 810 | leds { |
| 811 | compatible = "gpio-leds"; |
| 812 | |
| 813 | iracibble { |
| 814 | gpios = <&gpio_a 1 0>; |
| 815 | label = "sandbox:red"; |
| 816 | }; |
| 817 | |
| 818 | martinet { |
| 819 | gpios = <&gpio_a 2 0>; |
| 820 | label = "sandbox:green"; |
| 821 | }; |
Patrick Bruenn | 274fb46 | 2018-04-11 11:16:29 +0200 | [diff] [blame] | 822 | |
| 823 | default_on { |
| 824 | gpios = <&gpio_a 5 0>; |
| 825 | label = "sandbox:default_on"; |
| 826 | default-state = "on"; |
| 827 | }; |
| 828 | |
| 829 | default_off { |
| 830 | gpios = <&gpio_a 6 0>; |
Sean Anderson | 3e41c7b | 2020-09-14 11:02:03 -0400 | [diff] [blame] | 831 | /* label intentionally omitted */ |
Patrick Bruenn | 274fb46 | 2018-04-11 11:16:29 +0200 | [diff] [blame] | 832 | default-state = "off"; |
| 833 | }; |
Simon Glass | 3c43fba | 2015-07-06 12:54:34 -0600 | [diff] [blame] | 834 | }; |
| 835 | |
Rasmus Villemoes | a9346b9 | 2021-08-19 11:57:05 +0200 | [diff] [blame] | 836 | gpio-wdt { |
| 837 | gpios = <&gpio_a 7 0>; |
| 838 | compatible = "linux,wdt-gpio"; |
Rasmus Villemoes | 4171c57 | 2021-08-19 11:57:06 +0200 | [diff] [blame] | 839 | hw_margin_ms = <100>; |
Rasmus Villemoes | a9346b9 | 2021-08-19 11:57:05 +0200 | [diff] [blame] | 840 | always-running; |
| 841 | }; |
| 842 | |
Stephen Warren | 8961b52 | 2016-05-16 17:41:37 -0600 | [diff] [blame] | 843 | mbox: mbox { |
| 844 | compatible = "sandbox,mbox"; |
| 845 | #mbox-cells = <1>; |
| 846 | }; |
| 847 | |
| 848 | mbox-test { |
| 849 | compatible = "sandbox,mbox-test"; |
| 850 | mboxes = <&mbox 100>, <&mbox 1>; |
| 851 | mbox-names = "other", "test"; |
| 852 | }; |
| 853 | |
AKASHI Takahiro | 073e6d6 | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 854 | cpus { |
Heinrich Schuchardt | 8ae8da1 | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 855 | #address-cells = <1>; |
| 856 | #size-cells = <0>; |
Sean Anderson | 7616e36 | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 857 | timebase-frequency = <2000000>; |
Heinrich Schuchardt | 8ae8da1 | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 858 | cpu1: cpu@1 { |
| 859 | device_type = "cpu"; |
| 860 | reg = <0x1>; |
Sean Anderson | 7616e36 | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 861 | timebase-frequency = <3000000>; |
AKASHI Takahiro | 073e6d6 | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 862 | compatible = "sandbox,cpu_sandbox"; |
| 863 | u-boot,dm-pre-reloc; |
| 864 | }; |
Mario Six | fa44b53 | 2018-08-06 10:23:44 +0200 | [diff] [blame] | 865 | |
Heinrich Schuchardt | 8ae8da1 | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 866 | cpu2: cpu@2 { |
| 867 | device_type = "cpu"; |
| 868 | reg = <0x2>; |
AKASHI Takahiro | 073e6d6 | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 869 | compatible = "sandbox,cpu_sandbox"; |
| 870 | u-boot,dm-pre-reloc; |
| 871 | }; |
Mario Six | fa44b53 | 2018-08-06 10:23:44 +0200 | [diff] [blame] | 872 | |
Heinrich Schuchardt | 8ae8da1 | 2021-08-28 11:42:08 +0200 | [diff] [blame] | 873 | cpu3: cpu@3 { |
| 874 | device_type = "cpu"; |
| 875 | reg = <0x3>; |
AKASHI Takahiro | 073e6d6 | 2019-08-27 17:17:03 +0900 | [diff] [blame] | 876 | compatible = "sandbox,cpu_sandbox"; |
| 877 | u-boot,dm-pre-reloc; |
| 878 | }; |
Mario Six | fa44b53 | 2018-08-06 10:23:44 +0200 | [diff] [blame] | 879 | }; |
| 880 | |
Dave Gerlach | 21e3c21 | 2020-07-15 23:39:58 -0500 | [diff] [blame] | 881 | chipid: chipid { |
| 882 | compatible = "sandbox,soc"; |
| 883 | }; |
| 884 | |
Simon Glass | e96fa6c | 2018-12-10 10:37:34 -0700 | [diff] [blame] | 885 | i2s: i2s { |
| 886 | compatible = "sandbox,i2s"; |
| 887 | #sound-dai-cells = <1>; |
Simon Glass | ecc7973 | 2019-02-16 20:24:56 -0700 | [diff] [blame] | 888 | sandbox,silent; /* Don't emit sounds while testing */ |
Simon Glass | e96fa6c | 2018-12-10 10:37:34 -0700 | [diff] [blame] | 889 | }; |
| 890 | |
Jean-Jacques Hiblot | 07e3371 | 2019-07-05 09:33:57 +0200 | [diff] [blame] | 891 | nop-test_0 { |
| 892 | compatible = "sandbox,nop_sandbox1"; |
| 893 | nop-test_1 { |
| 894 | compatible = "sandbox,nop_sandbox2"; |
| 895 | bind = "True"; |
| 896 | }; |
| 897 | nop-test_2 { |
| 898 | compatible = "sandbox,nop_sandbox2"; |
| 899 | bind = "False"; |
| 900 | }; |
| 901 | }; |
| 902 | |
Mario Six | 004e67c | 2018-07-31 14:24:14 +0200 | [diff] [blame] | 903 | misc-test { |
| 904 | compatible = "sandbox,misc_sandbox"; |
| 905 | }; |
| 906 | |
Simon Glass | e48eeb9 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 907 | mmc2 { |
| 908 | compatible = "sandbox,mmc"; |
Simon Glass | 6b165ab | 2021-07-05 16:32:58 -0600 | [diff] [blame] | 909 | non-removable; |
Simon Glass | e48eeb9 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 910 | }; |
| 911 | |
Simon Glass | fb1451b | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 912 | /* This is used for the bootdev tests */ |
Simon Glass | e48eeb9 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 913 | mmc1 { |
| 914 | compatible = "sandbox,mmc"; |
Simon Glass | fb1451b | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 915 | filename = "mmc1.img"; |
Simon Glass | e48eeb9 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 916 | }; |
| 917 | |
Simon Glass | fb1451b | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 918 | /* This is used for the fastboot tests */ |
Simon Glass | e48eeb9 | 2017-04-23 20:02:07 -0600 | [diff] [blame] | 919 | mmc0 { |
Simon Glass | 8e6cc46 | 2015-07-06 12:54:32 -0600 | [diff] [blame] | 920 | compatible = "sandbox,mmc"; |
| 921 | }; |
| 922 | |
Simon Glass | b45c833 | 2019-02-16 20:24:50 -0700 | [diff] [blame] | 923 | pch { |
| 924 | compatible = "sandbox,pch"; |
| 925 | }; |
| 926 | |
Tom Rini | 42c64d1 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 927 | pci0: pci@0 { |
Simon Glass | d3b7ff1 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 928 | compatible = "sandbox,pci"; |
| 929 | device_type = "pci"; |
Tom Rini | 42c64d1 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 930 | bus-range = <0x00 0xff>; |
Simon Glass | d3b7ff1 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 931 | #address-cells = <3>; |
| 932 | #size-cells = <2>; |
Simon Glass | b0e2c23 | 2019-09-25 08:56:08 -0600 | [diff] [blame] | 933 | ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000 |
Simon Glass | d3b7ff1 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 934 | 0x01000000 0 0x20000000 0x20000000 0 0x2000>; |
Bin Meng | 2db7f2b | 2018-08-03 01:14:39 -0700 | [diff] [blame] | 935 | pci@0,0 { |
| 936 | compatible = "pci-generic"; |
| 937 | reg = <0x0000 0 0 0 0>; |
Simon Glass | 9b69ba4 | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 938 | sandbox,emul = <&swap_case_emul0_0>; |
Bin Meng | 2db7f2b | 2018-08-03 01:14:39 -0700 | [diff] [blame] | 939 | }; |
Alex Marginean | 21ebbaf | 2019-06-07 11:24:24 +0300 | [diff] [blame] | 940 | pci@1,0 { |
| 941 | compatible = "pci-generic"; |
Simon Glass | 33c215a | 2019-09-15 12:08:58 -0600 | [diff] [blame] | 942 | /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */ |
| 943 | reg = <0x02000814 0 0 0 0 |
| 944 | 0x01000810 0 0 0 0>; |
Simon Glass | 9b69ba4 | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 945 | sandbox,emul = <&swap_case_emul0_1>; |
Alex Marginean | 21ebbaf | 2019-06-07 11:24:24 +0300 | [diff] [blame] | 946 | }; |
Simon Glass | 3e17ffb | 2019-12-06 21:41:57 -0700 | [diff] [blame] | 947 | p2sb-pci@2,0 { |
| 948 | compatible = "sandbox,p2sb"; |
| 949 | reg = <0x02001010 0 0 0 0>; |
| 950 | sandbox,emul = <&p2sb_emul>; |
| 951 | |
| 952 | adder { |
| 953 | intel,p2sb-port-id = <3>; |
| 954 | compatible = "sandbox,adder"; |
| 955 | }; |
| 956 | }; |
Simon Glass | 3b65ee3 | 2019-12-06 21:41:54 -0700 | [diff] [blame] | 957 | pci@1e,0 { |
| 958 | compatible = "sandbox,pmc"; |
| 959 | reg = <0xf000 0 0 0 0>; |
| 960 | sandbox,emul = <&pmc_emul1e>; |
| 961 | acpi-base = <0x400>; |
| 962 | gpe0-dwx-mask = <0xf>; |
| 963 | gpe0-dwx-shift-base = <4>; |
| 964 | gpe0-dw = <6 7 9>; |
| 965 | gpe0-sts = <0x20>; |
| 966 | gpe0-en = <0x30>; |
| 967 | }; |
Simon Glass | d3b7ff1 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 968 | pci@1f,0 { |
| 969 | compatible = "pci-generic"; |
Simon Glass | 33c215a | 2019-09-15 12:08:58 -0600 | [diff] [blame] | 970 | /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */ |
| 971 | reg = <0x0100f810 0 0 0 0>; |
Simon Glass | 9b69ba4 | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 972 | sandbox,emul = <&swap_case_emul0_1f>; |
| 973 | }; |
| 974 | }; |
| 975 | |
| 976 | pci-emul0 { |
| 977 | compatible = "sandbox,pci-emul-parent"; |
| 978 | swap_case_emul0_0: emul0@0,0 { |
| 979 | compatible = "sandbox,swap-case"; |
| 980 | }; |
| 981 | swap_case_emul0_1: emul0@1,0 { |
| 982 | compatible = "sandbox,swap-case"; |
| 983 | use-ea; |
| 984 | }; |
| 985 | swap_case_emul0_1f: emul0@1f,0 { |
| 986 | compatible = "sandbox,swap-case"; |
Simon Glass | d3b7ff1 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 987 | }; |
Simon Glass | 3e17ffb | 2019-12-06 21:41:57 -0700 | [diff] [blame] | 988 | p2sb_emul: emul@2,0 { |
| 989 | compatible = "sandbox,p2sb-emul"; |
| 990 | }; |
Simon Glass | 3b65ee3 | 2019-12-06 21:41:54 -0700 | [diff] [blame] | 991 | pmc_emul1e: emul@1e,0 { |
| 992 | compatible = "sandbox,pmc-emul"; |
| 993 | }; |
Simon Glass | d3b7ff1 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 994 | }; |
| 995 | |
Tom Rini | 42c64d1 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 996 | pci1: pci@1 { |
Bin Meng | dee4d75 | 2018-08-03 01:14:41 -0700 | [diff] [blame] | 997 | compatible = "sandbox,pci"; |
| 998 | device_type = "pci"; |
Tom Rini | 42c64d1 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 999 | bus-range = <0x00 0xff>; |
Bin Meng | dee4d75 | 2018-08-03 01:14:41 -0700 | [diff] [blame] | 1000 | #address-cells = <3>; |
| 1001 | #size-cells = <2>; |
Suneel Garapati | 4cf56ec | 2019-10-19 17:10:20 -0700 | [diff] [blame] | 1002 | ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0 |
Andrew Scull | 55e6adb | 2022-04-21 16:11:09 +0000 | [diff] [blame] | 1003 | 0x02000000 0 0x31000000 0x3e000000 0 0x2000 // MEM1 |
Suneel Garapati | 4cf56ec | 2019-10-19 17:10:20 -0700 | [diff] [blame] | 1004 | 0x01000000 0 0x40000000 0x40000000 0 0x2000>; |
Bin Meng | 490d13a | 2018-08-03 01:14:47 -0700 | [diff] [blame] | 1005 | sandbox,dev-info = <0x08 0x00 0x1234 0x5678 |
Marek Vasut | b59349a | 2018-10-10 21:27:08 +0200 | [diff] [blame] | 1006 | 0x0c 0x00 0x1234 0x5678 |
| 1007 | 0x10 0x00 0x1234 0x5678>; |
| 1008 | pci@10,0 { |
| 1009 | reg = <0x8000 0 0 0 0>; |
| 1010 | }; |
Bin Meng | dee4d75 | 2018-08-03 01:14:41 -0700 | [diff] [blame] | 1011 | }; |
| 1012 | |
Tom Rini | 42c64d1 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1013 | pci2: pci@2 { |
Bin Meng | 3ed214a | 2018-08-03 01:14:50 -0700 | [diff] [blame] | 1014 | compatible = "sandbox,pci"; |
| 1015 | device_type = "pci"; |
Tom Rini | 42c64d1 | 2020-02-11 12:41:23 -0500 | [diff] [blame] | 1016 | bus-range = <0x00 0xff>; |
Bin Meng | 3ed214a | 2018-08-03 01:14:50 -0700 | [diff] [blame] | 1017 | #address-cells = <3>; |
| 1018 | #size-cells = <2>; |
| 1019 | ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000 |
| 1020 | 0x01000000 0 0x60000000 0x60000000 0 0x2000>; |
| 1021 | sandbox,dev-info = <0x08 0x00 0x1234 0x5678>; |
| 1022 | pci@1f,0 { |
| 1023 | compatible = "pci-generic"; |
| 1024 | reg = <0xf800 0 0 0 0>; |
Simon Glass | 9b69ba4 | 2019-09-25 08:56:10 -0600 | [diff] [blame] | 1025 | sandbox,emul = <&swap_case_emul2_1f>; |
| 1026 | }; |
| 1027 | }; |
| 1028 | |
| 1029 | pci-emul2 { |
| 1030 | compatible = "sandbox,pci-emul-parent"; |
| 1031 | swap_case_emul2_1f: emul2@1f,0 { |
| 1032 | compatible = "sandbox,swap-case"; |
Bin Meng | 3ed214a | 2018-08-03 01:14:50 -0700 | [diff] [blame] | 1033 | }; |
| 1034 | }; |
| 1035 | |
Ramon Fried | bb41333 | 2019-04-27 11:15:23 +0300 | [diff] [blame] | 1036 | pci_ep: pci_ep { |
| 1037 | compatible = "sandbox,pci_ep"; |
| 1038 | }; |
| 1039 | |
Simon Glass | 9856157 | 2017-04-23 20:10:44 -0600 | [diff] [blame] | 1040 | probing { |
| 1041 | compatible = "simple-bus"; |
| 1042 | test1 { |
| 1043 | compatible = "denx,u-boot-probe-test"; |
| 1044 | }; |
| 1045 | |
| 1046 | test2 { |
| 1047 | compatible = "denx,u-boot-probe-test"; |
| 1048 | }; |
| 1049 | |
| 1050 | test3 { |
| 1051 | compatible = "denx,u-boot-probe-test"; |
| 1052 | }; |
| 1053 | |
| 1054 | test4 { |
| 1055 | compatible = "denx,u-boot-probe-test"; |
Jean-Jacques Hiblot | 6c3af1f | 2018-11-29 10:57:37 +0100 | [diff] [blame] | 1056 | first-syscon = <&syscon0>; |
| 1057 | second-sys-ctrl = <&another_system_controller>; |
Patrick Delaunay | a442e61 | 2019-03-07 09:57:13 +0100 | [diff] [blame] | 1058 | third-syscon = <&syscon2>; |
Simon Glass | 9856157 | 2017-04-23 20:10:44 -0600 | [diff] [blame] | 1059 | }; |
| 1060 | }; |
| 1061 | |
Stephen Warren | 61f5ddc | 2016-07-13 13:45:31 -0600 | [diff] [blame] | 1062 | pwrdom: power-domain { |
| 1063 | compatible = "sandbox,power-domain"; |
| 1064 | #power-domain-cells = <1>; |
| 1065 | }; |
| 1066 | |
| 1067 | power-domain-test { |
| 1068 | compatible = "sandbox,power-domain-test"; |
| 1069 | power-domains = <&pwrdom 2>; |
| 1070 | }; |
| 1071 | |
Simon Glass | 5d9a88f | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1072 | pwm: pwm { |
Simon Glass | 43b4156 | 2017-04-16 21:01:11 -0600 | [diff] [blame] | 1073 | compatible = "sandbox,pwm"; |
Simon Glass | 5d9a88f | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1074 | #pwm-cells = <2>; |
Dario Binacchi | 5532262 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1075 | pinctrl-names = "default"; |
| 1076 | pinctrl-0 = <&pinmux_pwm_pins>; |
Simon Glass | 43b4156 | 2017-04-16 21:01:11 -0600 | [diff] [blame] | 1077 | }; |
| 1078 | |
| 1079 | pwm2 { |
| 1080 | compatible = "sandbox,pwm"; |
Simon Glass | 5d9a88f | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1081 | #pwm-cells = <2>; |
Simon Glass | 43b4156 | 2017-04-16 21:01:11 -0600 | [diff] [blame] | 1082 | }; |
| 1083 | |
Simon Glass | 64ce0ca | 2015-07-06 12:54:31 -0600 | [diff] [blame] | 1084 | ram { |
| 1085 | compatible = "sandbox,ram"; |
| 1086 | }; |
| 1087 | |
Simon Glass | 5010d98 | 2015-07-06 12:54:29 -0600 | [diff] [blame] | 1088 | reset@0 { |
| 1089 | compatible = "sandbox,warm-reset"; |
| 1090 | }; |
| 1091 | |
| 1092 | reset@1 { |
| 1093 | compatible = "sandbox,reset"; |
| 1094 | }; |
| 1095 | |
Stephen Warren | 4581b71 | 2016-06-17 09:43:59 -0600 | [diff] [blame] | 1096 | resetc: reset-ctl { |
| 1097 | compatible = "sandbox,reset-ctl"; |
| 1098 | #reset-cells = <1>; |
| 1099 | }; |
| 1100 | |
| 1101 | reset-ctl-test { |
| 1102 | compatible = "sandbox,reset-ctl-test"; |
Neil Armstrong | bdfe690 | 2021-04-20 10:42:25 +0200 | [diff] [blame] | 1103 | resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>; |
| 1104 | reset-names = "other", "test", "test2", "test3"; |
Stephen Warren | 4581b71 | 2016-06-17 09:43:59 -0600 | [diff] [blame] | 1105 | }; |
| 1106 | |
Sughosh Ganu | ff0dada | 2019-12-28 23:58:31 +0530 | [diff] [blame] | 1107 | rng { |
| 1108 | compatible = "sandbox,sandbox-rng"; |
| 1109 | }; |
| 1110 | |
Nishanth Menon | 5215940 | 2015-09-17 15:42:41 -0500 | [diff] [blame] | 1111 | rproc_1: rproc@1 { |
| 1112 | compatible = "sandbox,test-processor"; |
| 1113 | remoteproc-name = "remoteproc-test-dev1"; |
| 1114 | }; |
| 1115 | |
| 1116 | rproc_2: rproc@2 { |
| 1117 | compatible = "sandbox,test-processor"; |
| 1118 | internal-memory-mapped; |
| 1119 | remoteproc-name = "remoteproc-test-dev2"; |
| 1120 | }; |
| 1121 | |
Simon Glass | 5d9a88f | 2018-10-01 12:22:40 -0600 | [diff] [blame] | 1122 | panel { |
| 1123 | compatible = "simple-panel"; |
| 1124 | backlight = <&backlight 0 100>; |
| 1125 | }; |
| 1126 | |
Ramon Fried | 7fd7e2c | 2018-07-02 02:57:59 +0300 | [diff] [blame] | 1127 | smem@0 { |
| 1128 | compatible = "sandbox,smem"; |
| 1129 | }; |
| 1130 | |
Simon Glass | d490189 | 2018-12-10 10:37:36 -0700 | [diff] [blame] | 1131 | sound { |
| 1132 | compatible = "sandbox,sound"; |
| 1133 | cpu { |
| 1134 | sound-dai = <&i2s 0>; |
| 1135 | }; |
| 1136 | |
| 1137 | codec { |
| 1138 | sound-dai = <&audio 0>; |
| 1139 | }; |
| 1140 | }; |
| 1141 | |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1142 | spi@0 { |
| 1143 | #address-cells = <1>; |
| 1144 | #size-cells = <0>; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 1145 | reg = <0 1>; |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1146 | compatible = "sandbox,spi"; |
Ovidiu Panait | 1dc53ce | 2020-12-14 19:06:47 +0200 | [diff] [blame] | 1147 | cs-gpios = <0>, <0>, <&gpio_a 0>; |
Dario Binacchi | 5532262 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1148 | pinctrl-names = "default"; |
| 1149 | pinctrl-0 = <&pinmux_spi0_pins>; |
| 1150 | |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1151 | spi.bin@0 { |
| 1152 | reg = <0>; |
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 1153 | compatible = "spansion,m25p16", "jedec,spi-nor"; |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1154 | spi-max-frequency = <40000000>; |
| 1155 | sandbox,filename = "spi.bin"; |
| 1156 | }; |
Ovidiu Panait | 1dc53ce | 2020-12-14 19:06:47 +0200 | [diff] [blame] | 1157 | spi.bin@1 { |
| 1158 | reg = <1>; |
| 1159 | compatible = "spansion,m25p16", "jedec,spi-nor"; |
| 1160 | spi-max-frequency = <50000000>; |
| 1161 | sandbox,filename = "spi.bin"; |
| 1162 | spi-cpol; |
| 1163 | spi-cpha; |
| 1164 | }; |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 1165 | }; |
| 1166 | |
Jean-Jacques Hiblot | 6c3af1f | 2018-11-29 10:57:37 +0100 | [diff] [blame] | 1167 | syscon0: syscon@0 { |
Simon Glass | 04035fd | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1168 | compatible = "sandbox,syscon0"; |
Mario Six | 82744c2 | 2018-10-04 09:00:40 +0200 | [diff] [blame] | 1169 | reg = <0x10 16>; |
Simon Glass | 04035fd | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1170 | }; |
| 1171 | |
Jean-Jacques Hiblot | 6c3af1f | 2018-11-29 10:57:37 +0100 | [diff] [blame] | 1172 | another_system_controller: syscon@1 { |
Simon Glass | 04035fd | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1173 | compatible = "sandbox,syscon1"; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 1174 | reg = <0x20 5 |
| 1175 | 0x28 6 |
| 1176 | 0x30 7 |
| 1177 | 0x38 8>; |
Simon Glass | 04035fd | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 1178 | }; |
| 1179 | |
Patrick Delaunay | a442e61 | 2019-03-07 09:57:13 +0100 | [diff] [blame] | 1180 | syscon2: syscon@2 { |
Masahiro Yamada | 99552c3 | 2018-04-23 13:26:53 +0900 | [diff] [blame] | 1181 | compatible = "simple-mfd", "syscon"; |
| 1182 | reg = <0x40 5 |
| 1183 | 0x48 6 |
| 1184 | 0x50 7 |
| 1185 | 0x58 8>; |
| 1186 | }; |
| 1187 | |
Jean-Jacques Hiblot | 739592c | 2020-10-16 16:16:34 +0530 | [diff] [blame] | 1188 | syscon3: syscon@3 { |
| 1189 | compatible = "simple-mfd", "syscon"; |
| 1190 | reg = <0x000100 0x10>; |
| 1191 | |
| 1192 | muxcontroller0: a-mux-controller { |
| 1193 | compatible = "mmio-mux"; |
| 1194 | #mux-control-cells = <1>; |
| 1195 | |
| 1196 | mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */ |
| 1197 | <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */ |
| 1198 | <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */ |
| 1199 | idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>; |
| 1200 | u-boot,mux-autoprobe; |
| 1201 | }; |
| 1202 | }; |
| 1203 | |
| 1204 | muxcontroller1: emul-mux-controller { |
| 1205 | compatible = "mux-emul"; |
| 1206 | #mux-control-cells = <0>; |
| 1207 | u-boot,mux-autoprobe; |
| 1208 | idle-state = <0xabcd>; |
| 1209 | }; |
| 1210 | |
Simon Glass | 93f44e8 | 2020-12-16 21:20:27 -0700 | [diff] [blame] | 1211 | testfdtm0 { |
| 1212 | compatible = "denx,u-boot-fdtm-test"; |
| 1213 | }; |
| 1214 | |
| 1215 | testfdtm1: testfdtm1 { |
| 1216 | compatible = "denx,u-boot-fdtm-test"; |
| 1217 | }; |
| 1218 | |
| 1219 | testfdtm2 { |
| 1220 | compatible = "denx,u-boot-fdtm-test"; |
| 1221 | }; |
| 1222 | |
Sean Anderson | 7616e36 | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 1223 | timer@0 { |
Thomas Chou | e7cc8d1 | 2015-12-11 16:27:34 +0800 | [diff] [blame] | 1224 | compatible = "sandbox,timer"; |
| 1225 | clock-frequency = <1000000>; |
| 1226 | }; |
| 1227 | |
Sean Anderson | 7616e36 | 2020-09-28 10:52:23 -0400 | [diff] [blame] | 1228 | timer@1 { |
| 1229 | compatible = "sandbox,timer"; |
| 1230 | sandbox,timebase-frequency-fallback; |
| 1231 | }; |
| 1232 | |
Miquel Raynal | b91ad16 | 2018-05-15 11:57:27 +0200 | [diff] [blame] | 1233 | tpm2 { |
| 1234 | compatible = "sandbox,tpm2"; |
| 1235 | }; |
| 1236 | |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 1237 | uart0: serial { |
| 1238 | compatible = "sandbox,serial"; |
| 1239 | u-boot,dm-pre-reloc; |
Dario Binacchi | 5532262 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1240 | pinctrl-names = "default"; |
| 1241 | pinctrl-0 = <&pinmux_uart0_pins>; |
Joe Hershberger | bfacad7 | 2015-03-22 17:09:15 -0500 | [diff] [blame] | 1242 | }; |
| 1243 | |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1244 | usb_0: usb@0 { |
| 1245 | compatible = "sandbox,usb"; |
| 1246 | status = "disabled"; |
| 1247 | hub { |
| 1248 | compatible = "sandbox,usb-hub"; |
| 1249 | #address-cells = <1>; |
| 1250 | #size-cells = <0>; |
| 1251 | flash-stick { |
| 1252 | reg = <0>; |
| 1253 | compatible = "sandbox,usb-flash"; |
| 1254 | }; |
| 1255 | }; |
| 1256 | }; |
| 1257 | |
| 1258 | usb_1: usb@1 { |
| 1259 | compatible = "sandbox,usb"; |
Mark Kettenis | fb57462 | 2021-10-23 16:58:02 +0200 | [diff] [blame] | 1260 | iommus = <&iommu>; |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1261 | hub { |
| 1262 | compatible = "usb-hub"; |
| 1263 | usb,device-class = <9>; |
Michael Walle | c03b761 | 2020-06-02 01:47:07 +0200 | [diff] [blame] | 1264 | #address-cells = <1>; |
| 1265 | #size-cells = <0>; |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1266 | hub-emul { |
| 1267 | compatible = "sandbox,usb-hub"; |
| 1268 | #address-cells = <1>; |
| 1269 | #size-cells = <0>; |
Simon Glass | 431cbd6 | 2015-11-08 23:48:01 -0700 | [diff] [blame] | 1270 | flash-stick@0 { |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1271 | reg = <0>; |
| 1272 | compatible = "sandbox,usb-flash"; |
| 1273 | sandbox,filepath = "testflash.bin"; |
| 1274 | }; |
| 1275 | |
Simon Glass | 431cbd6 | 2015-11-08 23:48:01 -0700 | [diff] [blame] | 1276 | flash-stick@1 { |
| 1277 | reg = <1>; |
| 1278 | compatible = "sandbox,usb-flash"; |
| 1279 | sandbox,filepath = "testflash1.bin"; |
| 1280 | }; |
| 1281 | |
| 1282 | flash-stick@2 { |
| 1283 | reg = <2>; |
| 1284 | compatible = "sandbox,usb-flash"; |
| 1285 | sandbox,filepath = "testflash2.bin"; |
| 1286 | }; |
| 1287 | |
Simon Glass | bff1a71 | 2015-11-08 23:48:08 -0700 | [diff] [blame] | 1288 | keyb@3 { |
| 1289 | reg = <3>; |
| 1290 | compatible = "sandbox,usb-keyb"; |
| 1291 | }; |
| 1292 | |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1293 | }; |
Michael Walle | c03b761 | 2020-06-02 01:47:07 +0200 | [diff] [blame] | 1294 | |
| 1295 | usbstor@1 { |
| 1296 | reg = <1>; |
| 1297 | }; |
| 1298 | usbstor@3 { |
| 1299 | reg = <3>; |
| 1300 | }; |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 1301 | }; |
| 1302 | }; |
| 1303 | |
| 1304 | usb_2: usb@2 { |
| 1305 | compatible = "sandbox,usb"; |
| 1306 | status = "disabled"; |
| 1307 | }; |
| 1308 | |
Mateusz Kulikowski | d33776e | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1309 | spmi: spmi@0 { |
| 1310 | compatible = "sandbox,spmi"; |
| 1311 | #address-cells = <0x1>; |
| 1312 | #size-cells = <0x1>; |
Simon Glass | a605b0f | 2019-09-25 08:55:59 -0600 | [diff] [blame] | 1313 | ranges; |
Mateusz Kulikowski | d33776e | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1314 | pm8916@0 { |
| 1315 | compatible = "qcom,spmi-pmic"; |
| 1316 | reg = <0x0 0x1>; |
| 1317 | #address-cells = <0x1>; |
| 1318 | #size-cells = <0x1>; |
Simon Glass | a605b0f | 2019-09-25 08:55:59 -0600 | [diff] [blame] | 1319 | ranges; |
Mateusz Kulikowski | d33776e | 2016-03-31 23:12:28 +0200 | [diff] [blame] | 1320 | |
| 1321 | spmi_gpios: gpios@c000 { |
| 1322 | compatible = "qcom,pm8916-gpio"; |
| 1323 | reg = <0xc000 0x400>; |
| 1324 | gpio-controller; |
| 1325 | gpio-count = <4>; |
| 1326 | #gpio-cells = <2>; |
| 1327 | gpio-bank-name="spmi"; |
| 1328 | }; |
| 1329 | }; |
| 1330 | }; |
maxims@google.com | 0753bc2 | 2017-04-17 12:00:21 -0700 | [diff] [blame] | 1331 | |
| 1332 | wdt0: wdt@0 { |
| 1333 | compatible = "sandbox,wdt"; |
Rasmus Villemoes | 4171c57 | 2021-08-19 11:57:06 +0200 | [diff] [blame] | 1334 | hw_margin_ms = <200>; |
maxims@google.com | 0753bc2 | 2017-04-17 12:00:21 -0700 | [diff] [blame] | 1335 | }; |
Rob Clark | f200680 | 2018-01-10 11:33:30 +0100 | [diff] [blame] | 1336 | |
Mario Six | 957983e | 2018-08-09 14:51:19 +0200 | [diff] [blame] | 1337 | axi: axi@0 { |
| 1338 | compatible = "sandbox,axi"; |
| 1339 | #address-cells = <0x1>; |
| 1340 | #size-cells = <0x1>; |
| 1341 | store@0 { |
| 1342 | compatible = "sandbox,sandbox_store"; |
| 1343 | reg = <0x0 0x400>; |
| 1344 | }; |
| 1345 | }; |
| 1346 | |
Rob Clark | f200680 | 2018-01-10 11:33:30 +0100 | [diff] [blame] | 1347 | chosen { |
Simon Glass | 7e87816 | 2018-02-03 10:36:58 -0700 | [diff] [blame] | 1348 | #address-cells = <1>; |
| 1349 | #size-cells = <1>; |
Simon Glass | 14ca9f7 | 2020-01-27 08:49:43 -0700 | [diff] [blame] | 1350 | setting = "sunrise ohoka"; |
| 1351 | other-node = "/some-bus/c-test@5"; |
Simon Glass | bd933bf | 2020-01-27 08:49:46 -0700 | [diff] [blame] | 1352 | int-values = <0x1937 72993>; |
Simon Glass | 0f7b111 | 2020-07-07 13:12:06 -0600 | [diff] [blame] | 1353 | u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>; |
Rob Clark | f200680 | 2018-01-10 11:33:30 +0100 | [diff] [blame] | 1354 | chosen-test { |
| 1355 | compatible = "denx,u-boot-fdt-test"; |
| 1356 | reg = <9 1>; |
| 1357 | }; |
| 1358 | }; |
Mario Six | e8d5291 | 2018-03-12 14:53:33 +0100 | [diff] [blame] | 1359 | |
| 1360 | translation-test@8000 { |
| 1361 | compatible = "simple-bus"; |
| 1362 | reg = <0x8000 0x4000>; |
| 1363 | |
| 1364 | #address-cells = <0x2>; |
| 1365 | #size-cells = <0x1>; |
| 1366 | |
| 1367 | ranges = <0 0x0 0x8000 0x1000 |
| 1368 | 1 0x100 0x9000 0x1000 |
| 1369 | 2 0x200 0xA000 0x1000 |
| 1370 | 3 0x300 0xB000 0x1000 |
| 1371 | >; |
| 1372 | |
Fabien Dessenne | 641067f | 2019-05-31 15:11:30 +0200 | [diff] [blame] | 1373 | dma-ranges = <0 0x000 0x10000000 0x1000 |
| 1374 | 1 0x100 0x20000000 0x1000 |
| 1375 | >; |
| 1376 | |
Mario Six | e8d5291 | 2018-03-12 14:53:33 +0100 | [diff] [blame] | 1377 | dev@0,0 { |
| 1378 | compatible = "denx,u-boot-fdt-dummy"; |
| 1379 | reg = <0 0x0 0x1000>; |
Ălvaro FernĂĄndez Rojas | 7959882 | 2018-12-03 19:37:09 +0100 | [diff] [blame] | 1380 | reg-names = "sandbox-dummy-0"; |
Mario Six | e8d5291 | 2018-03-12 14:53:33 +0100 | [diff] [blame] | 1381 | }; |
| 1382 | |
| 1383 | dev@1,100 { |
| 1384 | compatible = "denx,u-boot-fdt-dummy"; |
| 1385 | reg = <1 0x100 0x1000>; |
| 1386 | |
| 1387 | }; |
| 1388 | |
| 1389 | dev@2,200 { |
| 1390 | compatible = "denx,u-boot-fdt-dummy"; |
| 1391 | reg = <2 0x200 0x1000>; |
| 1392 | }; |
| 1393 | |
| 1394 | |
| 1395 | noxlatebus@3,300 { |
| 1396 | compatible = "simple-bus"; |
| 1397 | reg = <3 0x300 0x1000>; |
| 1398 | |
| 1399 | #address-cells = <0x1>; |
| 1400 | #size-cells = <0x0>; |
| 1401 | |
| 1402 | dev@42 { |
| 1403 | compatible = "denx,u-boot-fdt-dummy"; |
| 1404 | reg = <0x42>; |
| 1405 | }; |
| 1406 | }; |
| 1407 | }; |
Mario Six | 4eea531 | 2018-09-27 09:19:31 +0200 | [diff] [blame] | 1408 | |
| 1409 | osd { |
| 1410 | compatible = "sandbox,sandbox_osd"; |
| 1411 | }; |
Tom Rini | d24c1d0 | 2018-09-30 18:16:51 -0400 | [diff] [blame] | 1412 | |
Jens Wiklander | fa830ae | 2018-09-25 16:40:16 +0200 | [diff] [blame] | 1413 | sandbox_tee { |
| 1414 | compatible = "sandbox,tee"; |
| 1415 | }; |
Bin Meng | 4f89d49 | 2018-10-15 02:21:26 -0700 | [diff] [blame] | 1416 | |
| 1417 | sandbox_virtio1 { |
| 1418 | compatible = "sandbox,virtio1"; |
| 1419 | }; |
| 1420 | |
| 1421 | sandbox_virtio2 { |
| 1422 | compatible = "sandbox,virtio2"; |
| 1423 | }; |
Patrice Chotard | f41a824 | 2018-10-24 14:10:23 +0200 | [diff] [blame] | 1424 | |
Etienne Carriere | 87d4f27 | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 1425 | sandbox_scmi { |
| 1426 | compatible = "sandbox,scmi-devices"; |
Etienne Carriere | 10d3e5d | 2022-02-21 09:22:41 +0100 | [diff] [blame] | 1427 | clocks = <&clk_scmi 2>, <&clk_scmi 0>; |
Etienne Carriere | 41d62e2 | 2022-02-21 09:22:39 +0100 | [diff] [blame] | 1428 | resets = <&reset_scmi 3>; |
| 1429 | regul0-supply = <®ul0_scmi>; |
| 1430 | regul1-supply = <®ul1_scmi>; |
Etienne Carriere | 87d4f27 | 2020-09-09 18:44:05 +0200 | [diff] [blame] | 1431 | }; |
| 1432 | |
Patrice Chotard | f41a824 | 2018-10-24 14:10:23 +0200 | [diff] [blame] | 1433 | pinctrl { |
| 1434 | compatible = "sandbox,pinctrl"; |
Patrick Delaunay | d15c05b | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1435 | |
Sean Anderson | 7f0f180 | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1436 | pinctrl-names = "default", "alternate"; |
| 1437 | pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>; |
| 1438 | pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>; |
Patrick Delaunay | d15c05b | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1439 | |
Sean Anderson | 7f0f180 | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1440 | pinctrl_gpios: gpios { |
Patrick Delaunay | d15c05b | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1441 | gpio0 { |
Sean Anderson | 7f0f180 | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1442 | pins = "P5"; |
| 1443 | function = "GPIO"; |
Patrick Delaunay | d15c05b | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1444 | bias-pull-up; |
| 1445 | input-disable; |
| 1446 | }; |
| 1447 | gpio1 { |
Sean Anderson | 7f0f180 | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1448 | pins = "P6"; |
| 1449 | function = "GPIO"; |
Patrick Delaunay | d15c05b | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1450 | output-high; |
| 1451 | drive-open-drain; |
| 1452 | }; |
| 1453 | gpio2 { |
Sean Anderson | 7f0f180 | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1454 | pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>; |
Patrick Delaunay | d15c05b | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1455 | bias-pull-down; |
| 1456 | input-enable; |
| 1457 | }; |
| 1458 | gpio3 { |
Sean Anderson | 7f0f180 | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1459 | pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>; |
Patrick Delaunay | d15c05b | 2020-01-13 11:35:12 +0100 | [diff] [blame] | 1460 | bias-disable; |
| 1461 | }; |
| 1462 | }; |
Sean Anderson | 7f0f180 | 2020-09-14 11:01:57 -0400 | [diff] [blame] | 1463 | |
| 1464 | pinctrl_i2c: i2c { |
| 1465 | groups { |
| 1466 | groups = "I2C_UART"; |
| 1467 | function = "I2C"; |
| 1468 | }; |
| 1469 | |
| 1470 | pins { |
| 1471 | pins = "P0", "P1"; |
| 1472 | drive-open-drain; |
| 1473 | }; |
| 1474 | }; |
| 1475 | |
| 1476 | pinctrl_i2s: i2s { |
| 1477 | groups = "SPI_I2S"; |
| 1478 | function = "I2S"; |
| 1479 | }; |
| 1480 | |
| 1481 | pinctrl_spi: spi { |
| 1482 | groups = "SPI_I2S"; |
| 1483 | function = "SPI"; |
| 1484 | |
| 1485 | cs { |
| 1486 | pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>, |
| 1487 | <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>; |
| 1488 | }; |
| 1489 | }; |
Patrice Chotard | f41a824 | 2018-10-24 14:10:23 +0200 | [diff] [blame] | 1490 | }; |
Benjamin Gaignard | 7f84fc6 | 2018-11-27 13:49:50 +0100 | [diff] [blame] | 1491 | |
Dario Binacchi | 5532262 | 2021-04-11 09:39:50 +0200 | [diff] [blame] | 1492 | pinctrl-single-no-width { |
| 1493 | compatible = "pinctrl-single"; |
| 1494 | reg = <0x0000 0x238>; |
| 1495 | #pinctrl-cells = <1>; |
| 1496 | pinctrl-single,function-mask = <0x7f>; |
| 1497 | }; |
| 1498 | |
| 1499 | pinctrl-single-pins { |
| 1500 | compatible = "pinctrl-single"; |
| 1501 | reg = <0x0000 0x238>; |
| 1502 | #pinctrl-cells = <1>; |
| 1503 | pinctrl-single,register-width = <32>; |
| 1504 | pinctrl-single,function-mask = <0x7f>; |
| 1505 | |
| 1506 | pinmux_pwm_pins: pinmux_pwm_pins { |
| 1507 | pinctrl-single,pins = < 0x48 0x06 >; |
| 1508 | }; |
| 1509 | |
| 1510 | pinmux_spi0_pins: pinmux_spi0_pins { |
| 1511 | pinctrl-single,pins = < |
| 1512 | 0x190 0x0c |
| 1513 | 0x194 0x0c |
| 1514 | 0x198 0x23 |
| 1515 | 0x19c 0x0c |
| 1516 | >; |
| 1517 | }; |
| 1518 | |
| 1519 | pinmux_uart0_pins: pinmux_uart0_pins { |
| 1520 | pinctrl-single,pins = < |
| 1521 | 0x70 0x30 |
| 1522 | 0x74 0x00 |
| 1523 | >; |
| 1524 | }; |
| 1525 | }; |
| 1526 | |
| 1527 | pinctrl-single-bits { |
| 1528 | compatible = "pinctrl-single"; |
| 1529 | reg = <0x0000 0x50>; |
| 1530 | #pinctrl-cells = <2>; |
| 1531 | pinctrl-single,bit-per-mux; |
| 1532 | pinctrl-single,register-width = <32>; |
| 1533 | pinctrl-single,function-mask = <0xf>; |
| 1534 | |
| 1535 | pinmux_i2c0_pins: pinmux_i2c0_pins { |
| 1536 | pinctrl-single,bits = < |
| 1537 | 0x10 0x00002200 0x0000ff00 |
| 1538 | >; |
| 1539 | }; |
| 1540 | |
| 1541 | pinmux_lcd_pins: pinmux_lcd_pins { |
| 1542 | pinctrl-single,bits = < |
| 1543 | 0x40 0x22222200 0xffffff00 |
| 1544 | 0x44 0x22222222 0xffffffff |
| 1545 | 0x48 0x00000022 0x000000ff |
| 1546 | 0x48 0x02000000 0x0f000000 |
| 1547 | 0x4c 0x02000022 0x0f0000ff |
| 1548 | >; |
| 1549 | }; |
| 1550 | }; |
| 1551 | |
Benjamin Gaignard | 7f84fc6 | 2018-11-27 13:49:50 +0100 | [diff] [blame] | 1552 | hwspinlock@0 { |
| 1553 | compatible = "sandbox,hwspinlock"; |
| 1554 | }; |
Grygorii Strashko | b330991 | 2018-11-28 19:17:51 +0100 | [diff] [blame] | 1555 | |
| 1556 | dma: dma { |
| 1557 | compatible = "sandbox,dma"; |
| 1558 | #dma-cells = <1>; |
| 1559 | |
| 1560 | dmas = <&dma 0>, <&dma 1>, <&dma 2>; |
| 1561 | dma-names = "m2m", "tx0", "rx0"; |
| 1562 | }; |
Alex Marginean | ec9594a | 2019-06-03 19:12:28 +0300 | [diff] [blame] | 1563 | |
Alex Marginean | c3d9f3f | 2019-07-12 10:13:53 +0300 | [diff] [blame] | 1564 | /* |
| 1565 | * keep mdio-mux ahead of mdio so that the mux is removed first at the |
| 1566 | * end of the test. If parent mdio is removed first, clean-up of the |
| 1567 | * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio |
| 1568 | * active at the end of the test. That it turn doesn't allow the mdio |
| 1569 | * class to be destroyed, triggering an error. |
| 1570 | */ |
| 1571 | mdio-mux-test { |
| 1572 | compatible = "sandbox,mdio-mux"; |
| 1573 | #address-cells = <1>; |
| 1574 | #size-cells = <0>; |
| 1575 | mdio-parent-bus = <&mdio>; |
| 1576 | |
| 1577 | mdio-ch-test@0 { |
| 1578 | reg = <0>; |
| 1579 | }; |
| 1580 | mdio-ch-test@1 { |
| 1581 | reg = <1>; |
| 1582 | }; |
| 1583 | }; |
| 1584 | |
| 1585 | mdio: mdio-test { |
Alex Marginean | ec9594a | 2019-06-03 19:12:28 +0300 | [diff] [blame] | 1586 | compatible = "sandbox,mdio"; |
Marek BehĂșn | f3dd213 | 2022-04-07 00:32:57 +0200 | [diff] [blame] | 1587 | #address-cells = <1>; |
| 1588 | #size-cells = <0>; |
| 1589 | |
| 1590 | ethphy1: ethernet-phy@1 { |
| 1591 | reg = <1>; |
| 1592 | }; |
Alex Marginean | ec9594a | 2019-06-03 19:12:28 +0300 | [diff] [blame] | 1593 | }; |
Sean Anderson | 4a3390f | 2020-06-24 06:41:12 -0400 | [diff] [blame] | 1594 | |
| 1595 | pm-bus-test { |
| 1596 | compatible = "simple-pm-bus"; |
| 1597 | clocks = <&clk_sandbox 4>; |
| 1598 | power-domains = <&pwrdom 1>; |
| 1599 | }; |
Sean Anderson | 038b13e | 2020-06-24 06:41:14 -0400 | [diff] [blame] | 1600 | |
| 1601 | resetc2: syscon-reset { |
| 1602 | compatible = "syscon-reset"; |
| 1603 | #reset-cells = <1>; |
| 1604 | regmap = <&syscon0>; |
| 1605 | offset = <1>; |
| 1606 | mask = <0x27FFFFFF>; |
| 1607 | assert-high = <0>; |
| 1608 | }; |
| 1609 | |
| 1610 | syscon-reset-test { |
| 1611 | compatible = "sandbox,misc_sandbox"; |
| 1612 | resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>; |
| 1613 | reset-names = "valid", "no_mask", "out_of_range"; |
| 1614 | }; |
Jean-Jacques Hiblot | 0ced26a | 2020-09-24 10:04:18 +0530 | [diff] [blame] | 1615 | |
Simon Glass | 3a8ee3d | 2020-11-05 06:32:05 -0700 | [diff] [blame] | 1616 | sysinfo { |
| 1617 | compatible = "sandbox,sysinfo-sandbox"; |
| 1618 | }; |
| 1619 | |
Sean Anderson | 1cbfed8 | 2021-04-20 10:50:58 -0400 | [diff] [blame] | 1620 | sysinfo-gpio { |
| 1621 | compatible = "gpio-sysinfo"; |
| 1622 | gpios = <&gpio_a 15>, <&gpio_a 16>, <&gpio_a 17>; |
| 1623 | revisions = <19>, <5>; |
| 1624 | names = "rev_a", "foo"; |
| 1625 | }; |
| 1626 | |
Jean-Jacques Hiblot | 0ced26a | 2020-09-24 10:04:18 +0530 | [diff] [blame] | 1627 | some_regmapped-bus { |
| 1628 | #address-cells = <0x1>; |
| 1629 | #size-cells = <0x1>; |
| 1630 | |
| 1631 | ranges = <0x0 0x0 0x10>; |
| 1632 | compatible = "simple-bus"; |
| 1633 | |
| 1634 | regmap-test_0 { |
| 1635 | reg = <0 0x10>; |
| 1636 | compatible = "sandbox,regmap_test"; |
| 1637 | }; |
| 1638 | }; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 1639 | }; |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 1640 | |
| 1641 | #include "sandbox_pmic.dtsi" |
Heinrich Schuchardt | 4a2a78c | 2021-02-18 13:01:35 +0100 | [diff] [blame] | 1642 | #include "cros-ec-keyboard.dtsi" |