1/* 2 * Copyright (c) 2020, Linaro Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Application overlay for testing driver builds 7 * 8 * Names in this file should be chosen in a way that won't conflict 9 * with real-world devicetree nodes, to allow these tests to run on 10 * (and be extended to test) real hardware. 11 */ 12 13/ { 14 test { 15 #address-cells = <1>; 16 #size-cells = <1>; 17 18 adc_emul { 19 compatible = "zephyr,adc-emul"; 20 nchannels = <2>; 21 ref-internal-mv = <3300>; 22 ref-external1-mv = <5000>; 23 #io-channel-cells = <1>; 24 status = "okay"; 25 }; 26 27 test_gpio: gpio@deadbeef { 28 compatible = "vnd,gpio"; 29 gpio-controller; 30 reg = <0xdeadbeef 0x1000>; 31 #gpio-cells = <0x2>; 32 status = "okay"; 33 }; 34 35 test_i2c: i2c@11112222 { 36 #address-cells = <1>; 37 #size-cells = <0>; 38 compatible = "vnd,i2c"; 39 reg = <0x11112222 0x1000>; 40 status = "okay"; 41 clock-frequency = <100000>; 42 43 test_i2c_ads1013: ads1013@0 { 44 compatible = "ti,ads1013"; 45 reg = <0x0>; 46 #io-channel-cells = <1>; 47 }; 48 49 test_i2c_ads1014: ads1014@1 { 50 compatible = "ti,ads1014"; 51 reg = <0x1>; 52 alert-rdy-gpios = <&test_gpio 0 0>; 53 #io-channel-cells = <1>; 54 }; 55 56 test_i2c_ads1015: ads1015@2 { 57 compatible = "ti,ads1015"; 58 reg = <0x2>; 59 alert-rdy-gpios = <&test_gpio 0 0>; 60 #io-channel-cells = <1>; 61 }; 62 63 test_i2c_ads1113: ads1113@3 { 64 compatible = "ti,ads1113"; 65 reg = <0x3>; 66 #io-channel-cells = <1>; 67 }; 68 69 test_i2c_ads1114: ads1114@4 { 70 compatible = "ti,ads1114"; 71 reg = <0x4>; 72 alert-rdy-gpios = <&test_gpio 0 0>; 73 #io-channel-cells = <1>; 74 }; 75 76 test_i2c_ads1115: ads1115@5 { 77 compatible = "ti,ads1115"; 78 reg = <0x5>; 79 alert-rdy-gpios = <&test_gpio 0 0>; 80 #io-channel-cells = <1>; 81 }; 82 83 test_i2c_ads1119: ads1119@6 { 84 compatible = "ti,ads1119"; 85 reg = <0x6>; 86 #io-channel-cells = <1>; 87 }; 88 89 test_i2c_ads1112: ads1112@7 { 90 compatible = "ti,ads1112"; 91 reg = <0x7>; 92 #io-channel-cells = <1>; 93 }; 94 95 test_i2c_ltc2451: ltc2451@8{ 96 compatible = "lltc,ltc2451"; 97 reg = <0x8>; 98 conversion-speed = <60>; 99 #io-channel-cells = <1>; 100 }; 101 102 test_i2c_ad559x: ad559x@9 { 103 compatible = "adi,ad559x"; 104 status = "okay"; 105 reg = <0x9>; 106 #io-channel-cells = <1>; 107 reset-gpios = <&test_gpio 0 0>; 108 109 test_i2c_ad559x_adc: adc-controller { 110 compatible = "adi,ad559x-adc"; 111 #io-channel-cells = <1>; 112 }; 113 }; 114 115 test_i2c_tla2021: tla2021@a { 116 compatible = "ti,tla2021"; 117 reg = <0xa>; 118 #io-channel-cells = <1>; 119 }; 120 121 test_i2c_tla2022: tla2022@b { 122 compatible = "ti,tla2022"; 123 reg = <0xb>; 124 #io-channel-cells = <1>; 125 }; 126 127 test_i2c_tla2024: tla2024@c { 128 compatible = "ti,tla2024"; 129 reg = <0xc>; 130 #io-channel-cells = <1>; 131 }; 132 }; 133 134 test_spi: spi@33334444 { 135 #address-cells = <1>; 136 #size-cells = <0>; 137 compatible = "vnd,spi"; 138 reg = <0x33334444 0x1000>; 139 status = "okay"; 140 clock-frequency = <2000000>; 141 142 /* one entry for every devices at spi.dtsi */ 143 cs-gpios = <&test_gpio 0 0>, 144 <&test_gpio 0 0>, 145 <&test_gpio 0 0>, 146 <&test_gpio 0 0>, 147 <&test_gpio 0 0>, 148 <&test_gpio 0 0>, 149 <&test_gpio 0 0>, 150 <&test_gpio 0 0>, 151 <&test_gpio 0 0>, 152 <&test_gpio 0 0>, 153 <&test_gpio 0 0>, 154 <&test_gpio 0 0>, 155 <&test_gpio 0 0>, 156 <&test_gpio 0 0>, 157 <&test_gpio 0 0>, 158 <&test_gpio 0 0>, 159 <&test_gpio 0 0>, 160 <&test_gpio 0 0>, 161 <&test_gpio 0 0>, 162 <&test_gpio 0 0>, 163 <&test_gpio 0 0>, 164 <&test_gpio 0 0>, 165 <&test_gpio 0 0>, 166 <&test_gpio 0 0>; 167 168 test_spi_mcp3204: mcp3204@0 { 169 compatible = "microchip,mcp3204"; 170 reg = <0>; 171 spi-max-frequency = <0>; 172 #io-channel-cells = <1>; 173 }; 174 175 test_spi_lmp90077: lmp90077@1 { 176 compatible = "ti,lmp90077"; 177 reg = <0x1>; 178 spi-max-frequency = <0>; 179 drdyb-gpios = <&test_gpio 0 0>; 180 #io-channel-cells = <1>; 181 }; 182 183 test_spi_lmp90078: lmp90078@2 { 184 compatible = "ti,lmp90078"; 185 reg = <0x2>; 186 spi-max-frequency = <0>; 187 drdyb-gpios = <&test_gpio 0 0>; 188 #io-channel-cells = <1>; 189 }; 190 191 test_spi_lmp90079: lmp90079@3 { 192 compatible = "ti,lmp90079"; 193 reg = <0x3>; 194 spi-max-frequency = <0>; 195 drdyb-gpios = <&test_gpio 0 0>; 196 #io-channel-cells = <1>; 197 }; 198 199 test_spi_lmp90080: lmp90080@4 { 200 compatible = "ti,lmp90080"; 201 reg = <0x4>; 202 spi-max-frequency = <0>; 203 drdyb-gpios = <&test_gpio 0 0>; 204 #io-channel-cells = <1>; 205 }; 206 207 test_spi_lmp90097: lmp90097@5 { 208 compatible = "ti,lmp90097"; 209 reg = <0x5>; 210 spi-max-frequency = <0>; 211 drdyb-gpios = <&test_gpio 0 0>; 212 #io-channel-cells = <1>; 213 }; 214 215 test_spi_lmp90098: lmp90098@6 { 216 compatible = "ti,lmp90098"; 217 reg = <0x6>; 218 spi-max-frequency = <0>; 219 drdyb-gpios = <&test_gpio 0 0>; 220 #io-channel-cells = <1>; 221 }; 222 223 test_spi_lmp90099: lmp90099@7 { 224 compatible = "ti,lmp90099"; 225 reg = <0x7>; 226 spi-max-frequency = <0>; 227 drdyb-gpios = <&test_gpio 0 0>; 228 #io-channel-cells = <1>; 229 }; 230 231 test_spi_lmp90100: lmp90100@8 { 232 compatible = "ti,lmp90100"; 233 reg = <0x8>; 234 spi-max-frequency = <0>; 235 drdyb-gpios = <&test_gpio 0 0>; 236 #io-channel-cells = <1>; 237 }; 238 239 test_spi_ads7052: ads7052@9 { 240 compatible = "ti,ads7052"; 241 reg = <0x9>; 242 spi-max-frequency = <12000000>; 243 #io-channel-cells = <1>; 244 }; 245 246 test_spi_max11254: max11254@a { 247 compatible = "maxim,max11254"; 248 reg = <0xa>; 249 spi-max-frequency = <0>; 250 gpio0-enable; 251 gpio1-enable; 252 gpio0-direction; 253 gpio1-direction; 254 gpo0-enable; 255 gpo1-enable; 256 drdy-gpios = <&test_gpio 0 0>; 257 self-calibration; 258 #io-channel-cells = <1>; 259 }; 260 261 test_spi_max11253: max11253@b { 262 compatible = "maxim,max11253"; 263 reg = <0xb>; 264 spi-max-frequency = <0>; 265 gpio0-enable; 266 gpio1-enable; 267 gpio0-direction; 268 gpio1-direction; 269 gpo0-enable; 270 gpo1-enable; 271 drdy-gpios = <&test_gpio 0 0>; 272 self-calibration; 273 #io-channel-cells = <1>; 274 }; 275 276 277 test_spi_ads114s08: ads114s08@c { 278 compatible = "ti,ads114s08"; 279 reg = <0xc>; 280 spi-max-frequency = <0>; 281 #io-channel-cells = <1>; 282 reset-gpios = <&test_gpio 0 0>; 283 drdy-gpios = <&test_gpio 0 0>; 284 start-sync-gpios = <&test_gpio 0 0>; 285 }; 286 287 test_spi_max11102: max11102@d { 288 compatible = "maxim,max11102"; 289 reg = <0xd>; 290 spi-max-frequency = <0>; 291 #io-channel-cells = <1>; 292 chsel-gpios = <&test_gpio 0 0>; 293 }; 294 295 test_spi_max11103: max11103@e { 296 compatible = "maxim,max11103"; 297 reg = <0xe>; 298 spi-max-frequency = <0>; 299 #io-channel-cells = <1>; 300 chsel-gpios = <&test_gpio 0 0>; 301 }; 302 303 test_spi_max11105: max11105@f { 304 compatible = "maxim,max11105"; 305 reg = <0xf>; 306 spi-max-frequency = <0>; 307 #io-channel-cells = <1>; 308 }; 309 310 test_spi_max11106: max11106@10 { 311 compatible = "maxim,max11106"; 312 reg = <0x10>; 313 spi-max-frequency = <0>; 314 #io-channel-cells = <1>; 315 chsel-gpios = <&test_gpio 0 0>; 316 }; 317 318 test_spi_max11110: max11110@11 { 319 compatible = "maxim,max11110"; 320 reg = <0x11>; 321 spi-max-frequency = <0>; 322 #io-channel-cells = <1>; 323 }; 324 325 test_spi_max11111: max11111@12 { 326 compatible = "maxim,max11111"; 327 reg = <0x12>; 328 spi-max-frequency = <0>; 329 #io-channel-cells = <1>; 330 chsel-gpios = <&test_gpio 0 0>; 331 }; 332 333 test_spi_max11115: max11115@13 { 334 compatible = "maxim,max11115"; 335 reg = <0x13>; 336 spi-max-frequency = <0>; 337 #io-channel-cells = <1>; 338 }; 339 340 test_spi_max11116: max11116@14 { 341 compatible = "maxim,max11116"; 342 reg = <0x14>; 343 spi-max-frequency = <0>; 344 #io-channel-cells = <1>; 345 }; 346 347 test_spi_max11117: max11117@15 { 348 compatible = "maxim,max11117"; 349 reg = <0x15>; 350 spi-max-frequency = <0>; 351 #io-channel-cells = <1>; 352 }; 353 354 test_spi_ad559x: ad559x@16 { 355 compatible = "adi,ad559x"; 356 status = "okay"; 357 reg = <0x16>; 358 spi-max-frequency = <0>; 359 reset-gpios = <&test_gpio 0 0>; 360 361 test_spi_ad559x_adc: adc-controller { 362 compatible = "adi,ad559x-adc"; 363 #io-channel-cells = <1>; 364 }; 365 }; 366 367 test_spi_ads131m02: ads131m02@17 { 368 compatible = "ti,ads131m02"; 369 reg = <0x17>; 370 spi-max-frequency = <0>; 371 #io-channel-cells = <1>; 372 drdy-gpios = <&test_gpio 0 0>; 373 }; 374 375 test_spi_ad7124: ad7124@18 { 376 compatible = "adi,ad7124-adc"; 377 reg = <0x18>; 378 spi-max-frequency = <0>; 379 #io-channel-cells = <1>; 380 active-device = <1>; 381 }; 382 }; 383 }; 384}; 385