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