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 7title: Analog Devices ADAU1977/ADAU1978/ADAU1979 Quad ADC with Diagnostics 8 9maintainers: 10 - Lars-Peter Clausen <lars@metafoo.de> 11 - Bogdan Togorean <bogdan.togorean@analog.com> 12 13description: | 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 19properties: 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 spi-max-frequency: true 36 37 AVDD-supply: 38 description: Analog power support for the device. 39 40 DVDD-supply: 41 description: Supply voltage for digital core. 42 43 adi,micbias: 44 description: | 45 Configures the voltage setting for the MICBIAS pin. 46 $ref: /schemas/types.yaml#/definitions/uint32 47 enum: [0, 1, 2, 3, 4, 5, 6, 7, 8] 48 default: 7 49 50required: 51 - reg 52 - compatible 53 - AVDD-supply 54 55additionalProperties: false 56 57examples: 58 - | 59 #include <dt-bindings/gpio/gpio.h> 60 61 spi { 62 #address-cells = <1>; 63 #size-cells = <0>; 64 adau1977_spi: adau1977@0 { 65 compatible = "adi,adau1977"; 66 reg = <0>; 67 spi-max-frequency = <600000>; 68 69 AVDD-supply = <®ulator>; 70 DVDD-supply = <®ulator_digital>; 71 72 reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 73 74 adi,micbias = <3>; 75 }; 76 }; 77 - | 78 #include <dt-bindings/gpio/gpio.h> 79 80 i2c { 81 #address-cells = <1>; 82 #size-cells = <0>; 83 adau1977_i2c: adau1977@11 { 84 compatible = "adi,adau1977"; 85 reg = <0x11>; 86 87 AVDD-supply = <®ulator>; 88 DVDD-supply = <®ulator_digital>; 89 90 reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 91 }; 92 }; 93