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,ad5791.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Analog Devices AD5791 and similar DACs |
| 8 | |
| 9 | maintainers: |
| 10 | - Michael Hennerich <michael.hennerich@analog.com> |
| 11 | - Jonathan Cameron <jic23@kernel.org> |
| 12 | |
| 13 | properties: |
| 14 | |
| 15 | compatible: |
| 16 | enum: |
| 17 | - adi,ad5760 |
| 18 | - adi,ad5780 |
| 19 | - adi,ad5781 |
| 20 | - adi,ad5790 |
| 21 | - adi,ad5791 |
| 22 | |
| 23 | reg: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | vdd-supply: true |
| 27 | vss-supply: true |
| 28 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 29 | adi,rbuf-gain2-en: |
| 30 | description: Specify to allow an external amplifier to be connected in a |
| 31 | gain of two configuration. |
| 32 | type: boolean |
| 33 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 34 | required: |
| 35 | - compatible |
| 36 | - reg |
| 37 | - vdd-supply |
| 38 | - vss-supply |
| 39 | |
| 40 | allOf: |
| 41 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 42 | |
| 43 | unevaluatedProperties: false |
| 44 | |
| 45 | examples: |
| 46 | - | |
| 47 | spi { |
| 48 | #address-cells = <1>; |
| 49 | #size-cells = <0>; |
| 50 | |
| 51 | dac@0 { |
| 52 | compatible = "adi,ad5791"; |
| 53 | reg = <0>; |
| 54 | vss-supply = <&dac_vss>; |
| 55 | vdd-supply = <&dac_vdd>; |
| 56 | }; |
| 57 | }; |
| 58 | ... |