1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2354d7675SEmmanuel Vadot%YAML 1.2 3354d7675SEmmanuel Vadot--- 4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/dac/adi,ad5064.yaml# 5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6354d7675SEmmanuel Vadot 7354d7675SEmmanuel Vadottitle: Analog Devices AD5064 and similar DACs 8354d7675SEmmanuel Vadot 9354d7675SEmmanuel Vadotmaintainers: 10354d7675SEmmanuel Vadot - Lars-Peter Clausen <lars@metafoo.de> 11354d7675SEmmanuel Vadot - Jonathan Cameron <jic23@kernel.org> 12354d7675SEmmanuel Vadot 13354d7675SEmmanuel Vadotdescription: | 14354d7675SEmmanuel Vadot A range of similar DAC devices with between 1 and 12 channels. Some parts 15354d7675SEmmanuel Vadot have internal references, others require a single shared external reference 16354d7675SEmmanuel Vadot and the remainder have a separate reference pin for each DAC. 17354d7675SEmmanuel Vadot 18354d7675SEmmanuel Vadotproperties: 19354d7675SEmmanuel Vadot compatible: 20354d7675SEmmanuel Vadot oneOf: 21354d7675SEmmanuel Vadot - description: I2C devics 22354d7675SEmmanuel Vadot enum: 23354d7675SEmmanuel Vadot - adi,ad5024 24354d7675SEmmanuel Vadot - adi,ad5025 25354d7675SEmmanuel Vadot - adi,ad5044 26354d7675SEmmanuel Vadot - adi,ad5045 27354d7675SEmmanuel Vadot - adi,ad5064 28354d7675SEmmanuel Vadot - adi,ad5064-1 29354d7675SEmmanuel Vadot - adi,ad5065 30354d7675SEmmanuel Vadot - adi,ad5628-1 31354d7675SEmmanuel Vadot - adi,ad5628-2 32354d7675SEmmanuel Vadot - adi,ad5648-1 33354d7675SEmmanuel Vadot - adi,ad5648-2 34354d7675SEmmanuel Vadot - adi,ad5666-1 35354d7675SEmmanuel Vadot - adi,ad5666-2 36354d7675SEmmanuel Vadot - adi,ad5668-1 37354d7675SEmmanuel Vadot - adi,ad5668-2 38354d7675SEmmanuel Vadot - adi,ad5668-3 39354d7675SEmmanuel Vadot - description: SPI devices 40354d7675SEmmanuel Vadot enum: 41354d7675SEmmanuel Vadot - adi,ad5625 42354d7675SEmmanuel Vadot - adi,ad5625r-1v25 43354d7675SEmmanuel Vadot - adi,ad5625r-2v5 44354d7675SEmmanuel Vadot - adi,ad5627 45354d7675SEmmanuel Vadot - adi,ad5627r-1v25 46354d7675SEmmanuel Vadot - adi,ad5627r-2v5 47354d7675SEmmanuel Vadot - adi,ad5629-1 48354d7675SEmmanuel Vadot - adi,ad5629-2 49354d7675SEmmanuel Vadot - adi,ad5629-3 50354d7675SEmmanuel Vadot - adi,ad5645r-1v25 51354d7675SEmmanuel Vadot - adi,ad5645r-2v5 52354d7675SEmmanuel Vadot - adi,ad5665 53354d7675SEmmanuel Vadot - adi,ad5665r-1v25 54354d7675SEmmanuel Vadot - adi,ad5665r-2v5 55354d7675SEmmanuel Vadot - adi,ad5667 56354d7675SEmmanuel Vadot - adi,ad5667r-1v25 57354d7675SEmmanuel Vadot - adi,ad5667r-2v5 58354d7675SEmmanuel Vadot - adi,ad5669-1 59354d7675SEmmanuel Vadot - adi,ad5669-2 60354d7675SEmmanuel Vadot - adi,ad5669-3 61354d7675SEmmanuel Vadot - lltc,ltc2606 62354d7675SEmmanuel Vadot - lltc,ltc2607 63354d7675SEmmanuel Vadot - lltc,ltc2609 64354d7675SEmmanuel Vadot - lltc,ltc2616 65354d7675SEmmanuel Vadot - lltc,ltc2617 66354d7675SEmmanuel Vadot - lltc,ltc2619 67354d7675SEmmanuel Vadot - lltc,ltc2626 68354d7675SEmmanuel Vadot - lltc,ltc2627 69354d7675SEmmanuel Vadot - lltc,ltc2629 70354d7675SEmmanuel Vadot - lltc,ltc2631-l12 71354d7675SEmmanuel Vadot - lltc,ltc2631-h12 72354d7675SEmmanuel Vadot - lltc,ltc2631-l10 73354d7675SEmmanuel Vadot - lltc,ltc2631-h10 74354d7675SEmmanuel Vadot - lltc,ltc2631-l8 75354d7675SEmmanuel Vadot - lltc,ltc2631-h8 76354d7675SEmmanuel Vadot - lltc,ltc2633-l12 77354d7675SEmmanuel Vadot - lltc,ltc2633-h12 78354d7675SEmmanuel Vadot - lltc,ltc2633-l10 79354d7675SEmmanuel Vadot - lltc,ltc2633-h10 80354d7675SEmmanuel Vadot - lltc,ltc2633-l8 81354d7675SEmmanuel Vadot - lltc,ltc2633-h8 82354d7675SEmmanuel Vadot - lltc,ltc2635-l12 83354d7675SEmmanuel Vadot - lltc,ltc2635-h12 84354d7675SEmmanuel Vadot - lltc,ltc2635-l10 85354d7675SEmmanuel Vadot - lltc,ltc2635-h10 86354d7675SEmmanuel Vadot - lltc,ltc2635-l8 87354d7675SEmmanuel Vadot - lltc,ltc2635-h8 88354d7675SEmmanuel Vadot 89354d7675SEmmanuel Vadot reg: 90354d7675SEmmanuel Vadot maxItems: 1 91354d7675SEmmanuel Vadot 92354d7675SEmmanuel Vadot vrefA-supply: true 93354d7675SEmmanuel Vadot vrefB-supply: true 94354d7675SEmmanuel Vadot vrefC-supply: true 95354d7675SEmmanuel Vadot vrefD-supply: true 96354d7675SEmmanuel Vadot vref-supply: true 97354d7675SEmmanuel Vadot 98354d7675SEmmanuel Vadotrequired: 99354d7675SEmmanuel Vadot - compatible 100354d7675SEmmanuel Vadot - reg 101354d7675SEmmanuel Vadot 102354d7675SEmmanuel VadotallOf: 103*7ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 104354d7675SEmmanuel Vadot - # Shared external vref, no internal reference 105354d7675SEmmanuel Vadot if: 106354d7675SEmmanuel Vadot properties: 107354d7675SEmmanuel Vadot compatible: 108354d7675SEmmanuel Vadot contains: 109354d7675SEmmanuel Vadot enum: 110354d7675SEmmanuel Vadot - adi,ad5064-1 111354d7675SEmmanuel Vadot - adi,ad5625 112354d7675SEmmanuel Vadot - adi,ad5627 113354d7675SEmmanuel Vadot - adi,ad5665 114354d7675SEmmanuel Vadot - adi,ad5667 115354d7675SEmmanuel Vadot - lltc,ltc2606 116354d7675SEmmanuel Vadot - lltc,ltc2607 117354d7675SEmmanuel Vadot - lltc,ltc2616 118354d7675SEmmanuel Vadot - lltc,ltc2617 119354d7675SEmmanuel Vadot - lltc,ltc2626 120354d7675SEmmanuel Vadot - lltc,ltc2627 121354d7675SEmmanuel Vadot then: 122354d7675SEmmanuel Vadot properties: 123354d7675SEmmanuel Vadot vref-supply: true 124354d7675SEmmanuel Vadot vrefA-supply: false 125354d7675SEmmanuel Vadot vrefB-supply: false 126354d7675SEmmanuel Vadot vrefC-supply: false 127354d7675SEmmanuel Vadot vrefD-supply: false 128354d7675SEmmanuel Vadot required: 129354d7675SEmmanuel Vadot - vref-supply 130354d7675SEmmanuel Vadot - # Shared external vref, internal reference available 131354d7675SEmmanuel Vadot if: 132354d7675SEmmanuel Vadot properties: 133354d7675SEmmanuel Vadot compatible: 134354d7675SEmmanuel Vadot contains: 135354d7675SEmmanuel Vadot enum: 136354d7675SEmmanuel Vadot - adi,ad5625r-1v25 137354d7675SEmmanuel Vadot - adi,ad5625r-2v5 138354d7675SEmmanuel Vadot - adi,ad5627r-1v25 139354d7675SEmmanuel Vadot - adi,ad5627r-2v5 140354d7675SEmmanuel Vadot - adi,ad5628-1 141354d7675SEmmanuel Vadot - adi,ad5628-2 142354d7675SEmmanuel Vadot - adi,ad5629-1 143354d7675SEmmanuel Vadot - adi,ad5629-2 144354d7675SEmmanuel Vadot - adi,ad5629-3 145354d7675SEmmanuel Vadot - adi,ad5645r-1v25 146354d7675SEmmanuel Vadot - adi,ad5645r-2v5 147354d7675SEmmanuel Vadot - adi,ad5647r-1v25 148354d7675SEmmanuel Vadot - adi,ad5647r-2v5 149354d7675SEmmanuel Vadot - adi,ad5648-1 150354d7675SEmmanuel Vadot - adi,ad5648-2 151354d7675SEmmanuel Vadot - adi,ad5665r-1v25 152354d7675SEmmanuel Vadot - adi,ad5665r-2v5 153354d7675SEmmanuel Vadot - adi,ad5666-1 154354d7675SEmmanuel Vadot - adi,ad5666-2 155354d7675SEmmanuel Vadot - adi,ad5667r-1v25 156354d7675SEmmanuel Vadot - adi,ad5667r-2v5 157354d7675SEmmanuel Vadot - adi,ad5668-1 158354d7675SEmmanuel Vadot - adi,ad5668-2 159354d7675SEmmanuel Vadot - adi,ad5668-3 160354d7675SEmmanuel Vadot - adi,ad5669-1 161354d7675SEmmanuel Vadot - adi,ad5669-2 162354d7675SEmmanuel Vadot - adi,ad5669-3 163354d7675SEmmanuel Vadot - lltc,ltc2631-l12 164354d7675SEmmanuel Vadot - lltc,ltc2631-h12 165354d7675SEmmanuel Vadot - lltc,ltc2631-l10 166354d7675SEmmanuel Vadot - lltc,ltc2631-h10 167354d7675SEmmanuel Vadot - lltc,ltc2631-l8 168354d7675SEmmanuel Vadot - lltc,ltc2631-h8 169354d7675SEmmanuel Vadot - lltc,ltc2633-l12 170354d7675SEmmanuel Vadot - lltc,ltc2633-h12 171354d7675SEmmanuel Vadot - lltc,ltc2633-l10 172354d7675SEmmanuel Vadot - lltc,ltc2633-h10 173354d7675SEmmanuel Vadot - lltc,ltc2633-l8 174354d7675SEmmanuel Vadot - lltc,ltc2633-h8 175354d7675SEmmanuel Vadot - lltc,ltc2635-l12 176354d7675SEmmanuel Vadot - lltc,ltc2635-h12 177354d7675SEmmanuel Vadot - lltc,ltc2635-l10 178354d7675SEmmanuel Vadot - lltc,ltc2635-h10 179354d7675SEmmanuel Vadot - lltc,ltc2635-l8 180354d7675SEmmanuel Vadot - lltc,ltc2635-h8 181354d7675SEmmanuel Vadot then: 182354d7675SEmmanuel Vadot properties: 183354d7675SEmmanuel Vadot vref-supply: true 184354d7675SEmmanuel Vadot vrefA-supply: false 185354d7675SEmmanuel Vadot vrefB-supply: false 186354d7675SEmmanuel Vadot vrefC-supply: false 187354d7675SEmmanuel Vadot vrefD-supply: false 188354d7675SEmmanuel Vadot - # 4 input devices, separate vrefs, no internal reference 189354d7675SEmmanuel Vadot if: 190354d7675SEmmanuel Vadot properties: 191354d7675SEmmanuel Vadot compatible: 192354d7675SEmmanuel Vadot contains: 193354d7675SEmmanuel Vadot enum: 194354d7675SEmmanuel Vadot - adi,ad5024 195354d7675SEmmanuel Vadot - adi,ad5044 196354d7675SEmmanuel Vadot - adi,ad5064 197354d7675SEmmanuel Vadot - lltc,ltc2609 198354d7675SEmmanuel Vadot - lltc,ltc2619 199354d7675SEmmanuel Vadot - lltc,ltc2629 200354d7675SEmmanuel Vadot then: 201354d7675SEmmanuel Vadot properties: 202354d7675SEmmanuel Vadot vrefA-supply: true 203354d7675SEmmanuel Vadot vrefB-supply: true 204354d7675SEmmanuel Vadot vrefC-supply: true 205354d7675SEmmanuel Vadot vrefD-supply: true 206354d7675SEmmanuel Vadot vref-supply: false 207354d7675SEmmanuel Vadot required: 208354d7675SEmmanuel Vadot - vrefA-supply 209354d7675SEmmanuel Vadot - vrefB-supply 210354d7675SEmmanuel Vadot - vrefC-supply 211354d7675SEmmanuel Vadot - vrefD-supply 212354d7675SEmmanuel Vadot - # 2 input devices, separate vrefs, no internal reference 213354d7675SEmmanuel Vadot if: 214354d7675SEmmanuel Vadot properties: 215354d7675SEmmanuel Vadot compatible: 216354d7675SEmmanuel Vadot contains: 217354d7675SEmmanuel Vadot enum: 218354d7675SEmmanuel Vadot - adi,ad5025 219354d7675SEmmanuel Vadot - adi,ad5045 220354d7675SEmmanuel Vadot - adi,ad5065 221354d7675SEmmanuel Vadot then: 222354d7675SEmmanuel Vadot properties: 223354d7675SEmmanuel Vadot vrefA-supply: true 224354d7675SEmmanuel Vadot vrefB-supply: true 225354d7675SEmmanuel Vadot vrefC-supply: false 226354d7675SEmmanuel Vadot vrefD-supply: false 227354d7675SEmmanuel Vadot vref-supply: false 228354d7675SEmmanuel Vadot required: 229354d7675SEmmanuel Vadot - vrefA-supply 230354d7675SEmmanuel Vadot - vrefB-supply 231354d7675SEmmanuel Vadot 232*7ef62cebSEmmanuel VadotunevaluatedProperties: false 233*7ef62cebSEmmanuel Vadot 234354d7675SEmmanuel Vadotexamples: 235354d7675SEmmanuel Vadot - | 236354d7675SEmmanuel Vadot spi { 237354d7675SEmmanuel Vadot #address-cells = <1>; 238354d7675SEmmanuel Vadot #size-cells = <0>; 239354d7675SEmmanuel Vadot dac@0 { 240354d7675SEmmanuel Vadot reg = <0>; 241354d7675SEmmanuel Vadot compatible = "adi,ad5625"; 242354d7675SEmmanuel Vadot vref-supply = <&dac_vref>; 243354d7675SEmmanuel Vadot }; 244354d7675SEmmanuel Vadot }; 245354d7675SEmmanuel Vadot - | 246354d7675SEmmanuel Vadot spi { 247354d7675SEmmanuel Vadot #address-cells = <1>; 248354d7675SEmmanuel Vadot #size-cells = <0>; 249354d7675SEmmanuel Vadot dac@0 { 250354d7675SEmmanuel Vadot reg = <0>; 251354d7675SEmmanuel Vadot compatible = "adi,ad5625r-1v25"; 252354d7675SEmmanuel Vadot }; 253354d7675SEmmanuel Vadot }; 254354d7675SEmmanuel Vadot - | 255354d7675SEmmanuel Vadot i2c { 256354d7675SEmmanuel Vadot #address-cells = <1>; 257354d7675SEmmanuel Vadot #size-cells = <0>; 258354d7675SEmmanuel Vadot dac@42 { 259354d7675SEmmanuel Vadot reg = <0x42>; 260354d7675SEmmanuel Vadot compatible = "adi,ad5024"; 261354d7675SEmmanuel Vadot vrefA-supply = <&dac_vref>; 262354d7675SEmmanuel Vadot vrefB-supply = <&dac_vref>; 263354d7675SEmmanuel Vadot vrefC-supply = <&dac_vref2>; 264354d7675SEmmanuel Vadot vrefD-supply = <&dac_vref2>; 265354d7675SEmmanuel Vadot }; 266354d7675SEmmanuel Vadot }; 267354d7675SEmmanuel Vadot... 268