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