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