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 #io-channel-cells = <1>; 53 }; 54 55 test_i2c_ads1015: ads1015@2 { 56 compatible = "ti,ads1015"; 57 reg = <0x2>; 58 #io-channel-cells = <1>; 59 }; 60 61 test_i2c_ads1113: ads1113@3 { 62 compatible = "ti,ads1113"; 63 reg = <0x3>; 64 #io-channel-cells = <1>; 65 }; 66 67 test_i2c_ads1114: ads1114@4 { 68 compatible = "ti,ads1114"; 69 reg = <0x4>; 70 #io-channel-cells = <1>; 71 }; 72 73 test_i2c_ads1115: ads1115@5 { 74 compatible = "ti,ads1115"; 75 reg = <0x5>; 76 #io-channel-cells = <1>; 77 }; 78 79 test_i2c_ads1119: ads1119@6 { 80 compatible = "ti,ads1119"; 81 reg = <0x6>; 82 #io-channel-cells = <1>; 83 }; 84 85 test_i2c_ads1112: ads1112@7 { 86 compatible = "ti,ads1112"; 87 reg = <0x7>; 88 #io-channel-cells = <1>; 89 }; 90 }; 91 92 test_spi: spi@33334444 { 93 #address-cells = <1>; 94 #size-cells = <0>; 95 compatible = "vnd,spi"; 96 reg = <0x33334444 0x1000>; 97 status = "okay"; 98 clock-frequency = <2000000>; 99 100 /* one entry for every devices at spi.dtsi */ 101 cs-gpios = <&test_gpio 0 0>, 102 <&test_gpio 0 0>, 103 <&test_gpio 0 0>, 104 <&test_gpio 0 0>, 105 <&test_gpio 0 0>, 106 <&test_gpio 0 0>, 107 <&test_gpio 0 0>, 108 <&test_gpio 0 0>, 109 <&test_gpio 0 0>, 110 <&test_gpio 0 0>, 111 <&test_gpio 0 0>, 112 <&test_gpio 0 0>, 113 <&test_gpio 0 0>, 114 <&test_gpio 0 0>, 115 <&test_gpio 0 0>, 116 <&test_gpio 0 0>, 117 <&test_gpio 0 0>, 118 <&test_gpio 0 0>, 119 <&test_gpio 0 0>, 120 <&test_gpio 0 0>, 121 <&test_gpio 0 0>; 122 123 test_spi_mcp3204: mcp3204@0 { 124 compatible = "microchip,mcp3204"; 125 reg = <0>; 126 spi-max-frequency = <0>; 127 #io-channel-cells = <1>; 128 }; 129 130 test_spi_lmp90077: lmp90077@1 { 131 compatible = "ti,lmp90077"; 132 reg = <0x1>; 133 spi-max-frequency = <0>; 134 drdyb-gpios = <&test_gpio 0 0>; 135 #io-channel-cells = <2>; 136 }; 137 138 test_spi_lmp90078: lmp90078@2 { 139 compatible = "ti,lmp90078"; 140 reg = <0x2>; 141 spi-max-frequency = <0>; 142 drdyb-gpios = <&test_gpio 0 0>; 143 #io-channel-cells = <2>; 144 }; 145 146 test_spi_lmp90079: lmp90079@3 { 147 compatible = "ti,lmp90079"; 148 reg = <0x3>; 149 spi-max-frequency = <0>; 150 drdyb-gpios = <&test_gpio 0 0>; 151 #io-channel-cells = <2>; 152 }; 153 154 test_spi_lmp90080: lmp90080@4 { 155 compatible = "ti,lmp90080"; 156 reg = <0x4>; 157 spi-max-frequency = <0>; 158 drdyb-gpios = <&test_gpio 0 0>; 159 #io-channel-cells = <2>; 160 }; 161 162 test_spi_lmp90097: lmp90097@5 { 163 compatible = "ti,lmp90097"; 164 reg = <0x5>; 165 spi-max-frequency = <0>; 166 drdyb-gpios = <&test_gpio 0 0>; 167 #io-channel-cells = <2>; 168 }; 169 170 test_spi_lmp90098: lmp90098@6 { 171 compatible = "ti,lmp90098"; 172 reg = <0x6>; 173 spi-max-frequency = <0>; 174 drdyb-gpios = <&test_gpio 0 0>; 175 #io-channel-cells = <2>; 176 }; 177 178 test_spi_lmp90099: lmp90099@7 { 179 compatible = "ti,lmp90099"; 180 reg = <0x7>; 181 spi-max-frequency = <0>; 182 drdyb-gpios = <&test_gpio 0 0>; 183 #io-channel-cells = <2>; 184 }; 185 186 test_spi_lmp90100: lmp90100@8 { 187 compatible = "ti,lmp90100"; 188 reg = <0x8>; 189 spi-max-frequency = <0>; 190 drdyb-gpios = <&test_gpio 0 0>; 191 #io-channel-cells = <2>; 192 }; 193 194 test_spi_ads7052: ads7052@9 { 195 compatible = "ti,ads7052"; 196 reg = <0x9>; 197 spi-max-frequency = <12000000>; 198 #io-channel-cells = <1>; 199 }; 200 201 test_spi_max11254: max11254@a { 202 compatible = "maxim,max11254"; 203 reg = <0xa>; 204 spi-max-frequency = <0>; 205 gpio0-enable; 206 gpio1-enable; 207 gpio0-direction; 208 gpio1-direction; 209 gpo0-enable; 210 gpo1-enable; 211 drdy-gpios = <&test_gpio 0 0>; 212 self-calibration; 213 #io-channel-cells = <1>; 214 }; 215 216 test_spi_max11253: max11253@b { 217 compatible = "maxim,max11253"; 218 reg = <0xb>; 219 spi-max-frequency = <0>; 220 gpio0-enable; 221 gpio1-enable; 222 gpio0-direction; 223 gpio1-direction; 224 gpo0-enable; 225 gpo1-enable; 226 drdy-gpios = <&test_gpio 0 0>; 227 self-calibration; 228 #io-channel-cells = <1>; 229 }; 230 231 232 test_spi_ads114s08: ads114s08@9 { 233 compatible = "ti,ads114s08"; 234 reg = <0x9>; 235 spi-max-frequency = <0>; 236 #io-channel-cells = <1>; 237 reset-gpios = <&test_gpio 0 0>; 238 drdy-gpios = <&test_gpio 0 0>; 239 start-sync-gpios = <&test_gpio 0 0>; 240 }; 241 242 test_spi_max11102: max11102@a { 243 compatible = "maxim,max11102"; 244 reg = <0xa>; 245 spi-max-frequency = <0>; 246 #io-channel-cells = <1>; 247 chsel-gpios = <&test_gpio 0 0>; 248 }; 249 250 test_spi_max11103: max11103@b { 251 compatible = "maxim,max11103"; 252 reg = <0xb>; 253 spi-max-frequency = <0>; 254 #io-channel-cells = <1>; 255 chsel-gpios = <&test_gpio 0 0>; 256 }; 257 258 test_spi_max11105: max11105@c { 259 compatible = "maxim,max11105"; 260 reg = <0xc>; 261 spi-max-frequency = <0>; 262 #io-channel-cells = <1>; 263 }; 264 265 test_spi_max11106: max11106@d { 266 compatible = "maxim,max11106"; 267 reg = <0xd>; 268 spi-max-frequency = <0>; 269 #io-channel-cells = <1>; 270 chsel-gpios = <&test_gpio 0 0>; 271 }; 272 273 test_spi_max11110: max11110@e { 274 compatible = "maxim,max11110"; 275 reg = <0xe>; 276 spi-max-frequency = <0>; 277 #io-channel-cells = <1>; 278 }; 279 280 test_spi_max11111: max11111@f { 281 compatible = "maxim,max11111"; 282 reg = <0xf>; 283 spi-max-frequency = <0>; 284 #io-channel-cells = <1>; 285 chsel-gpios = <&test_gpio 0 0>; 286 }; 287 288 test_spi_max11115: max11115@10 { 289 compatible = "maxim,max11115"; 290 reg = <0x10>; 291 spi-max-frequency = <0>; 292 #io-channel-cells = <1>; 293 }; 294 295 test_spi_max11116: max11116@11 { 296 compatible = "maxim,max11116"; 297 reg = <0x11>; 298 spi-max-frequency = <0>; 299 #io-channel-cells = <1>; 300 }; 301 302 test_spi_max11117: max11117@12 { 303 compatible = "maxim,max11117"; 304 reg = <0x12>; 305 spi-max-frequency = <0>; 306 #io-channel-cells = <1>; 307 }; 308 }; 309 }; 310}; 311