Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: adau1977: convert text binding to yaml format

This change converts the old device-tree binding for ADAU1977 from text
format to the new yaml format.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201110084754.46756-1-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Alexandru Ardelean and committed by
Mark Brown
f077770b 4fb87241

+92 -61
-61
Documentation/devicetree/bindings/sound/adi,adau1977.txt
··· 1 - Analog Devices ADAU1977/ADAU1978/ADAU1979 2 - 3 - Datasheets: 4 - https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1977.pdf 5 - https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1978.pdf 6 - https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1979.pdf 7 - 8 - This driver supports both the I2C and SPI bus. 9 - 10 - Required properties: 11 - - compatible: Should contain one of the following: 12 - "adi,adau1977" 13 - "adi,adau1978" 14 - "adi,adau1979" 15 - 16 - - AVDD-supply: analog power supply for the device, please consult 17 - Documentation/devicetree/bindings/regulator/regulator.txt 18 - 19 - Optional properties: 20 - - reset-gpios: the reset pin for the chip, for more details consult 21 - Documentation/devicetree/bindings/gpio/gpio.txt 22 - 23 - - DVDD-supply: supply voltage for the digital core, please consult 24 - Documentation/devicetree/bindings/regulator/regulator.txt 25 - 26 - - adi,micbias: configures the voltage setting for the MICBIAS pin. 27 - Select 0/1/2/3/4/5/6/7/8 to specify MICBIAS voltage 28 - 5V/5.5V/6V/6.5V/7V/7.5V/8V/8.5V/9V 29 - If not specified the default value will be "7" meaning 8.5 Volts. 30 - This property is only valid for the ADAU1977 31 - 32 - For required properties on SPI, please consult 33 - Documentation/devicetree/bindings/spi/spi-bus.txt 34 - 35 - Required properties on I2C: 36 - 37 - - reg: The i2c address. Value depends on the state of ADDR0 38 - and ADDR1, as wired in hardware. 39 - 40 - Examples: 41 - 42 - adau1977_spi: adau1977@0 { 43 - compatible = "adi,adau1977"; 44 - spi-max-frequency = <600000>; 45 - 46 - AVDD-supply = <&regulator>; 47 - DVDD-supply = <&regulator_digital>; 48 - 49 - adi,micbias = <3>; 50 - reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 51 - }; 52 - 53 - adau1977_i2c: adau1977@11 { 54 - compatible = "adi,adau1977"; 55 - reg = <0x11>; 56 - 57 - AVDD-supply = <&regulator>; 58 - DVDD-supply = <&regulator_digital>; 59 - 60 - reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 61 - };
+92
Documentation/devicetree/bindings/sound/adi,adau1977.yaml
··· 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 + 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 + 50 + required: 51 + - reg 52 + - compatible 53 + - AVDD-supply 54 + 55 + additionalProperties: false 56 + 57 + examples: 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 = <&regulator>; 70 + DVDD-supply = <&regulator_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 = <&regulator>; 88 + DVDD-supply = <&regulator_digital>; 89 + 90 + reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 91 + }; 92 + };