1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/dac/adi,ad5449.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Analog Devices AD5449 and similar DACs 8 9maintainers: 10 - Lars-Peter Clausen <lars@metafoo.de> 11 - Jonathan Cameron <jic23@kernel.org> 12 13description: 14 Family of multiplying DACs from Analog Devices 15 16properties: 17 compatible: 18 enum: 19 - adi,ad5415 20 - adi,ad5426 21 - adi,ad5429 22 - adi,ad5432 23 - adi,ad5439 24 - adi,ad5443 25 - adi,ad5449 26 27 reg: 28 maxItems: 1 29 30 spi-max-frequency: true 31 32 VREF-supply: true 33 VREFA-supply: true 34 VREFB-supply: true 35 36additionalProperties: false 37 38required: 39 - compatible 40 - reg 41 42allOf: 43 - if: 44 properties: 45 compatible: 46 contains: 47 enum: 48 - adi,ad5415 49 - adi,ad5426 50 - adi,ad5432 51 then: 52 properties: 53 VREF-supply: true 54 VREFA-supply: false 55 VREFB-supply: false 56 required: 57 - VREF-supply 58 - if: 59 properties: 60 compatible: 61 contains: 62 enum: 63 - adi,ad5429 64 - adi,ad5439 65 - adi,ad5449 66 then: 67 properties: 68 VREF-supply: false 69 VREFA-supply: true 70 VREFB-supply: true 71 required: 72 - VREFA-supply 73 - VREFB-supply 74 75examples: 76 - | 77 spi { 78 #address-cells = <1>; 79 #size-cells = <0>; 80 dac@0 { 81 reg = <0>; 82 compatible = "adi,ad5415"; 83 VREF-supply = <&dac_ref>; 84 }; 85 }; 86 - | 87 spi { 88 #address-cells = <1>; 89 #size-cells = <0>; 90 dac@0 { 91 reg = <0>; 92 compatible = "adi,ad5429"; 93 VREFA-supply = <&dac_refA>; 94 VREFB-supply = <&dac_refB>; 95 }; 96 }; 97... 98