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