Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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,ad5761.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Analog Devices AD5761 and similar DACs |
| 8 | |
| 9 | maintainers: |
| 10 | - Ricardo Ribalda <ribalda@kernel.org> |
| 11 | - Jonathan Cameron <jic23@kernel.org> |
| 12 | |
| 13 | properties: |
| 14 | |
| 15 | compatible: |
| 16 | enum: |
| 17 | - adi,ad5721 |
| 18 | - adi,ad5721r |
| 19 | - adi,ad5761 |
| 20 | - adi,ad5761r |
| 21 | |
| 22 | reg: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | vref-supply: |
| 26 | description: If not supplied, internal reference will be used. |
| 27 | |
| 28 | required: |
| 29 | - compatible |
| 30 | - reg |
| 31 | |
| 32 | allOf: |
| 33 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 34 | - if: |
| 35 | properties: |
| 36 | compatible: |
| 37 | contains: |
| 38 | enum: |
| 39 | - adi,ad5721 |
| 40 | - adi,ad5761 |
| 41 | then: |
| 42 | required: |
| 43 | - vref-supply |
| 44 | |
| 45 | unevaluatedProperties: false |
| 46 | |
| 47 | examples: |
| 48 | - | |
| 49 | spi { |
| 50 | #address-cells = <1>; |
| 51 | #size-cells = <0>; |
| 52 | |
| 53 | dac@0 { |
| 54 | compatible = "adi,ad5721"; |
| 55 | reg = <0>; |
| 56 | vref-supply = <&dac_vref>; |
| 57 | }; |
| 58 | }; |
| 59 | ... |