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