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