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_mcp4725: mcp4725@60 { 47 compatible = "microchip,mcp4725"; 48 reg = <0x60>; 49 #io-channel-cells = <1>; 50 }; 51 52 test_i2c_mcp4728: mcp4728@61 { 53 compatible = "microchip,mcp4728"; 54 reg = <0x61>; 55 #io-channel-cells = <1>; 56 voltage_reference = <0>; 57 power_down_mode = <0>; 58 }; 59 }; 60 61 test_spi: spi@33334444 { 62 #address-cells = <1>; 63 #size-cells = <0>; 64 compatible = "vnd,spi"; 65 reg = <0x33334444 0x1000>; 66 status = "okay"; 67 clock-frequency = <2000000>; 68 69 /* one entry for every devices at spi.dtsi */ 70 cs-gpios = <&test_gpio 0 0>, 71 <&test_gpio 0 0>, 72 <&test_gpio 0 0>, 73 <&test_gpio 0 0>, 74 <&test_gpio 0 0>; 75 76 test_spi_dac60508: dac60508@0 { 77 compatible = "ti,dac60508"; 78 reg = <0x0>; 79 spi-max-frequency = <0>; 80 #io-channel-cells = <1>; 81 voltage-reference = <0>; 82 channel0-gain = <0>; 83 channel1-gain = <0>; 84 channel2-gain = <0>; 85 channel3-gain = <0>; 86 channel4-gain = <0>; 87 channel5-gain = <0>; 88 channel6-gain = <0>; 89 channel7-gain = <0>; 90 }; 91 92 test_spi_dac70508: dac70508@1 { 93 compatible = "ti,dac70508"; 94 reg = <0x1>; 95 spi-max-frequency = <0>; 96 #io-channel-cells = <1>; 97 voltage-reference = <0>; 98 channel0-gain = <0>; 99 channel1-gain = <0>; 100 channel2-gain = <0>; 101 channel3-gain = <0>; 102 channel4-gain = <0>; 103 channel5-gain = <0>; 104 channel6-gain = <0>; 105 channel7-gain = <0>; 106 }; 107 108 test_spi_dac80508: dac80508@2 { 109 compatible = "ti,dac80508"; 110 reg = <0x2>; 111 spi-max-frequency = <0>; 112 #io-channel-cells = <1>; 113 voltage-reference = <0>; 114 channel0-gain = <0>; 115 channel1-gain = <0>; 116 channel2-gain = <0>; 117 channel3-gain = <0>; 118 channel4-gain = <0>; 119 channel5-gain = <0>; 120 channel6-gain = <0>; 121 channel7-gain = <0>; 122 }; 123 124 test_spi_ltc1660: ltc1660@3 { 125 compatible = "lltc,ltc1660"; 126 reg = <0x3>; 127 spi-max-frequency = <0>; 128 #io-channel-cells = <1>; 129 }; 130 131 test_spi_ltc1665: ltc1665@4 { 132 compatible = "lltc,ltc1665"; 133 reg = <0x4>; 134 spi-max-frequency = <0>; 135 #io-channel-cells = <1>; 136 }; 137 }; 138 }; 139}; 140