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 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 48required: 49 - reg 50 - compatible 51 - AVDD-supply 52 53allOf: 54 - $ref: /schemas/spi/spi-peripheral-props.yaml# 55 56unevaluatedProperties: false 57 58examples: 59 - | 60 #include <dt-bindings/gpio/gpio.h> 61 62 spi { 63 #address-cells = <1>; 64 #size-cells = <0>; 65 adau1977_spi: adau1977@0 { 66 compatible = "adi,adau1977"; 67 reg = <0>; 68 spi-max-frequency = <600000>; 69 70 AVDD-supply = <®ulator>; 71 DVDD-supply = <®ulator_digital>; 72 73 reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 74 75 adi,micbias = <3>; 76 }; 77 }; 78 - | 79 #include <dt-bindings/gpio/gpio.h> 80 81 i2c { 82 #address-cells = <1>; 83 #size-cells = <0>; 84 adau1977_i2c: adau1977@11 { 85 compatible = "adi,adau1977"; 86 reg = <0x11>; 87 88 AVDD-supply = <®ulator>; 89 DVDD-supply = <®ulator_digital>; 90 91 reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 92 }; 93 }; 94