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