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