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 test_gpio: gpio@deadbeef { 19 compatible = "vnd,gpio"; 20 gpio-controller; 21 reg = <0xdeadbeef 0x1000>; 22 #gpio-cells = <0x2>; 23 status = "okay"; 24 }; 25 26 test_i2c: i2c@11112222 { 27 #address-cells = <1>; 28 #size-cells = <0>; 29 compatible = "vnd,i2c"; 30 reg = <0x11112222 0x1000>; 31 status = "okay"; 32 clock-frequency = <100000>; 33 34 test_i2c_dac43608: dac43608@1 { 35 compatible = "ti,dac43608"; 36 reg = <0x1>; 37 #io-channel-cells = <1>; 38 }; 39 40 test_i2c_dac53608: dac53608@2 { 41 compatible = "ti,dac53608"; 42 reg = <0x2>; 43 #io-channel-cells = <1>; 44 }; 45 46 test_i2c_ad559x: ad559x@3 { 47 compatible = "adi,ad559x"; 48 status = "okay"; 49 reg = <0x3>; 50 reset-gpios = <&test_gpio 0 0>; 51 52 test_i2c_ad559x_dac: dac-controller { 53 compatible = "adi,ad559x-dac"; 54 #io-channel-cells = <1>; 55 }; 56 }; 57 58 test_i2c_mcp4725: mcp4725@60 { 59 compatible = "microchip,mcp4725"; 60 reg = <0x60>; 61 #io-channel-cells = <1>; 62 }; 63 64 test_i2c_mcp4728: mcp4728@61 { 65 compatible = "microchip,mcp4728"; 66 reg = <0x61>; 67 #io-channel-cells = <1>; 68 voltage-reference = <0>; 69 power-down-mode = <0>; 70 }; 71 72 test_i2c_dacx0501:dacx0501@62 { 73 compatible = "ti,dacx0501"; 74 status = "okay"; 75 reg = <0x62>; 76 voltage-reference = "internal"; 77 output-gain = "mul2"; 78 }; 79 80 test_ad5691: ad5691@4a { 81 status = "okay"; 82 compatible = "adi,ad5691"; 83 reg = <0x4a>; 84 #io-channel-cells = < 1 >; 85 }; 86 87 test_ad5692: ad5692@4b { 88 status = "okay"; 89 compatible = "adi,ad5692"; 90 reg = <0x4b>; 91 #io-channel-cells = < 1 >; 92 }; 93 94 test_ad5693: ad5693@4c { 95 status = "okay"; 96 compatible = "adi,ad5693"; 97 reg = <0x4c>; 98 #io-channel-cells = < 1 >; 99 }; 100 }; 101 102 test_spi: spi@33334444 { 103 #address-cells = <1>; 104 #size-cells = <0>; 105 compatible = "vnd,spi"; 106 reg = <0x33334444 0x1000>; 107 status = "okay"; 108 clock-frequency = <2000000>; 109 110 /* one entry for every devices at spi.dtsi */ 111 cs-gpios = <&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 <&test_gpio 0 0>, 123 <&test_gpio 0 0>, 124 <&test_gpio 0 0>, 125 <&test_gpio 0 0>, 126 <&test_gpio 0 0>, 127 <&test_gpio 0 0>, 128 <&test_gpio 0 0>; 129 130 test_spi_dac60508: dac60508@0 { 131 compatible = "ti,dac60508"; 132 reg = <0x0>; 133 spi-max-frequency = <0>; 134 #io-channel-cells = <1>; 135 voltage-reference = <0>; 136 channel0-gain = <0>; 137 channel1-gain = <0>; 138 channel2-gain = <0>; 139 channel3-gain = <0>; 140 channel4-gain = <0>; 141 channel5-gain = <0>; 142 channel6-gain = <0>; 143 channel7-gain = <0>; 144 }; 145 146 test_spi_dac70508: dac70508@1 { 147 compatible = "ti,dac70508"; 148 reg = <0x1>; 149 spi-max-frequency = <0>; 150 #io-channel-cells = <1>; 151 voltage-reference = <0>; 152 channel0-gain = <0>; 153 channel1-gain = <0>; 154 channel2-gain = <0>; 155 channel3-gain = <0>; 156 channel4-gain = <0>; 157 channel5-gain = <0>; 158 channel6-gain = <0>; 159 channel7-gain = <0>; 160 }; 161 162 test_spi_dac80508: dac80508@2 { 163 compatible = "ti,dac80508"; 164 reg = <0x2>; 165 spi-max-frequency = <0>; 166 #io-channel-cells = <1>; 167 voltage-reference = <0>; 168 channel0-gain = <0>; 169 channel1-gain = <0>; 170 channel2-gain = <0>; 171 channel3-gain = <0>; 172 channel4-gain = <0>; 173 channel5-gain = <0>; 174 channel6-gain = <0>; 175 channel7-gain = <0>; 176 }; 177 178 test_spi_ltc1660: ltc1660@3 { 179 compatible = "lltc,ltc1660"; 180 reg = <0x3>; 181 spi-max-frequency = <0>; 182 #io-channel-cells = <1>; 183 }; 184 185 test_spi_ltc1665: ltc1665@4 { 186 compatible = "lltc,ltc1665"; 187 reg = <0x4>; 188 spi-max-frequency = <0>; 189 #io-channel-cells = <1>; 190 }; 191 192 test_spi_ad5628: ad5628@5 { 193 compatible = "adi,ad5628"; 194 reg = <0x5>; 195 spi-max-frequency = <0>; 196 #io-channel-cells = <1>; 197 reset-gpios = <&test_gpio 0 0>; 198 }; 199 200 test_spi_ad5648: ad5648@6 { 201 compatible = "adi,ad5648"; 202 reg = <0x6>; 203 spi-max-frequency = <0>; 204 #io-channel-cells = <1>; 205 reset-gpios = <&test_gpio 0 0>; 206 }; 207 208 test_spi_ad5668: ad5668@7 { 209 compatible = "adi,ad5668"; 210 reg = <0x7>; 211 spi-max-frequency = <0>; 212 #io-channel-cells = <1>; 213 reset-gpios = <&test_gpio 0 0>; 214 }; 215 216 test_spi_ad5672: ad5672@8 { 217 compatible = "adi,ad5672"; 218 reg = <0x8>; 219 spi-max-frequency = <0>; 220 #io-channel-cells = <1>; 221 reset-gpios = <&test_gpio 0 0>; 222 }; 223 224 test_spi_ad5674: ad5674@9 { 225 compatible = "adi,ad5674"; 226 reg = <0x9>; 227 spi-max-frequency = <0>; 228 #io-channel-cells = <1>; 229 reset-gpios = <&test_gpio 0 0>; 230 }; 231 232 test_spi_ad5676: ad5676@a { 233 compatible = "adi,ad5676"; 234 reg = <0xA>; 235 spi-max-frequency = <0>; 236 #io-channel-cells = <1>; 237 reset-gpios = <&test_gpio 0 0>; 238 }; 239 240 test_spi_ad5679: ad5679@b { 241 compatible = "adi,ad5679"; 242 reg = <0xB>; 243 spi-max-frequency = <0>; 244 #io-channel-cells = <1>; 245 reset-gpios = <&test_gpio 0 0>; 246 }; 247 248 test_spi_ad5684: ad5684@c { 249 compatible = "adi,ad5684"; 250 reg = <0xC>; 251 spi-max-frequency = <0>; 252 #io-channel-cells = <1>; 253 reset-gpios = <&test_gpio 0 0>; 254 }; 255 256 test_spi_ad5686: ad5686@d { 257 compatible = "adi,ad5686"; 258 reg = <0xD>; 259 spi-max-frequency = <0>; 260 #io-channel-cells = <1>; 261 reset-gpios = <&test_gpio 0 0>; 262 }; 263 264 test_spi_ad5687: ad5687@e { 265 compatible = "adi,ad5687"; 266 reg = <0xE>; 267 spi-max-frequency = <0>; 268 #io-channel-cells = <1>; 269 reset-gpios = <&test_gpio 0 0>; 270 }; 271 272 test_spi_ad5689: ad5689@f { 273 compatible = "adi,ad5689"; 274 reg = <0xF>; 275 spi-max-frequency = <0>; 276 #io-channel-cells = <1>; 277 reset-gpios = <&test_gpio 0 0>; 278 }; 279 280 test_spi_ad559x: ad559x@10 { 281 compatible = "adi,ad559x"; 282 status = "okay"; 283 reg = <0x10>; 284 spi-max-frequency = <0>; 285 reset-gpios = <&test_gpio 0 0>; 286 287 test_spi_ad559x_dac: dac-controller { 288 compatible = "adi,ad559x-dac"; 289 #io-channel-cells = <1>; 290 }; 291 }; 292 293 test_spi_max22017_mfd: max22017_mfd@11 { 294 compatible = "adi,max22017"; 295 status = "okay"; 296 spi-max-frequency = <1000000>; 297 reg = <0x11>; 298 299 test_spi_max22017_dac0: dac-controller { 300 compatible = "adi,max22017-dac"; 301 #io-channel-cells = <2>; 302 status = "okay"; 303 }; 304 }; 305 }; 306 }; 307}; 308