Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/sound/adi,adau1977.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Analog Devices ADAU1977/ADAU1978/ADAU1979 Quad ADC with Diagnostics |
| 8 | |
| 9 | maintainers: |
| 10 | - Lars-Peter Clausen <lars@metafoo.de> |
| 11 | - Bogdan Togorean <bogdan.togorean@analog.com> |
| 12 | |
| 13 | description: | |
| 14 | Analog Devices ADAU1977 and similar quad ADC with Diagnostics |
| 15 | https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1977.pdf |
| 16 | https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1978.pdf |
| 17 | https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1979.pdf |
| 18 | |
| 19 | properties: |
| 20 | compatible: |
| 21 | enum: |
| 22 | - adi,adau1977 |
| 23 | - adi,adau1978 |
| 24 | - adi,adau1979 |
| 25 | |
| 26 | reg: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | "#sound-dai-cells": |
| 30 | const: 0 |
| 31 | |
| 32 | reset-gpios: |
| 33 | maxItems: 1 |
| 34 | |
| 35 | AVDD-supply: |
| 36 | description: Analog power support for the device. |
| 37 | |
| 38 | DVDD-supply: |
| 39 | description: Supply voltage for digital core. |
| 40 | |
| 41 | adi,micbias: |
| 42 | description: | |
| 43 | Configures the voltage setting for the MICBIAS pin. |
| 44 | $ref: /schemas/types.yaml#/definitions/uint32 |
| 45 | enum: [0, 1, 2, 3, 4, 5, 6, 7, 8] |
| 46 | default: 7 |
| 47 | |
| 48 | required: |
| 49 | - reg |
| 50 | - compatible |
| 51 | - AVDD-supply |
| 52 | |
| 53 | allOf: |
| 54 | - $ref: dai-common.yaml# |
| 55 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 56 | |
| 57 | unevaluatedProperties: false |
| 58 | |
| 59 | examples: |
| 60 | - | |
| 61 | #include <dt-bindings/gpio/gpio.h> |
| 62 | |
| 63 | spi { |
| 64 | #address-cells = <1>; |
| 65 | #size-cells = <0>; |
| 66 | adau1977_spi: adau1977@0 { |
| 67 | compatible = "adi,adau1977"; |
| 68 | reg = <0>; |
| 69 | spi-max-frequency = <600000>; |
| 70 | |
| 71 | AVDD-supply = <®ulator>; |
| 72 | DVDD-supply = <®ulator_digital>; |
| 73 | |
| 74 | reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; |
| 75 | |
| 76 | adi,micbias = <3>; |
| 77 | }; |
| 78 | }; |
| 79 | - | |
| 80 | #include <dt-bindings/gpio/gpio.h> |
| 81 | |
| 82 | i2c { |
| 83 | #address-cells = <1>; |
| 84 | #size-cells = <0>; |
| 85 | adau1977_i2c: adau1977@11 { |
| 86 | compatible = "adi,adau1977"; |
| 87 | reg = <0x11>; |
| 88 | |
| 89 | AVDD-supply = <®ulator>; |
| 90 | DVDD-supply = <®ulator_digital>; |
| 91 | |
| 92 | reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; |
| 93 | }; |
| 94 | }; |