xref: /freebsd/sys/contrib/device-tree/Bindings/sound/adi,adau1977.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/adi,adau1977.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Analog Devices ADAU1977/ADAU1978/ADAU1979 Quad ADC with Diagnostics
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Lars-Peter Clausen <lars@metafoo.de>
115def4c47SEmmanuel Vadot  - Bogdan Togorean <bogdan.togorean@analog.com>
125def4c47SEmmanuel Vadot
135def4c47SEmmanuel Vadotdescription: |
145def4c47SEmmanuel Vadot  Analog Devices ADAU1977 and similar quad ADC with Diagnostics
155def4c47SEmmanuel Vadot  https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1977.pdf
165def4c47SEmmanuel Vadot  https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1978.pdf
175def4c47SEmmanuel Vadot  https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1979.pdf
185def4c47SEmmanuel Vadot
195def4c47SEmmanuel Vadotproperties:
205def4c47SEmmanuel Vadot  compatible:
215def4c47SEmmanuel Vadot    enum:
225def4c47SEmmanuel Vadot      - adi,adau1977
235def4c47SEmmanuel Vadot      - adi,adau1978
245def4c47SEmmanuel Vadot      - adi,adau1979
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel Vadot  reg:
275def4c47SEmmanuel Vadot    maxItems: 1
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  "#sound-dai-cells":
305def4c47SEmmanuel Vadot    const: 0
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot  reset-gpios:
335def4c47SEmmanuel Vadot    maxItems: 1
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  AVDD-supply:
365def4c47SEmmanuel Vadot    description: Analog power support for the device.
375def4c47SEmmanuel Vadot
385def4c47SEmmanuel Vadot  DVDD-supply:
395def4c47SEmmanuel Vadot    description: Supply voltage for digital core.
405def4c47SEmmanuel Vadot
415def4c47SEmmanuel Vadot  adi,micbias:
425def4c47SEmmanuel Vadot    description: |
435def4c47SEmmanuel Vadot      Configures the voltage setting for the MICBIAS pin.
445def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
455def4c47SEmmanuel Vadot    enum: [0, 1, 2, 3, 4, 5, 6, 7, 8]
465def4c47SEmmanuel Vadot    default: 7
475def4c47SEmmanuel Vadot
485def4c47SEmmanuel Vadotrequired:
495def4c47SEmmanuel Vadot  - reg
505def4c47SEmmanuel Vadot  - compatible
515def4c47SEmmanuel Vadot  - AVDD-supply
525def4c47SEmmanuel Vadot
53b97ee269SEmmanuel VadotallOf:
54*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
55b97ee269SEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
56b97ee269SEmmanuel Vadot
57b97ee269SEmmanuel VadotunevaluatedProperties: false
585def4c47SEmmanuel Vadot
595def4c47SEmmanuel Vadotexamples:
605def4c47SEmmanuel Vadot  - |
615def4c47SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
625def4c47SEmmanuel Vadot
635def4c47SEmmanuel Vadot    spi {
645def4c47SEmmanuel Vadot        #address-cells = <1>;
655def4c47SEmmanuel Vadot        #size-cells = <0>;
665def4c47SEmmanuel Vadot        adau1977_spi: adau1977@0 {
675def4c47SEmmanuel Vadot            compatible = "adi,adau1977";
685def4c47SEmmanuel Vadot            reg = <0>;
695def4c47SEmmanuel Vadot            spi-max-frequency = <600000>;
705def4c47SEmmanuel Vadot
715def4c47SEmmanuel Vadot            AVDD-supply = <&regulator>;
725def4c47SEmmanuel Vadot            DVDD-supply = <&regulator_digital>;
735def4c47SEmmanuel Vadot
745def4c47SEmmanuel Vadot            reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
755def4c47SEmmanuel Vadot
765def4c47SEmmanuel Vadot            adi,micbias = <3>;
775def4c47SEmmanuel Vadot        };
785def4c47SEmmanuel Vadot    };
795def4c47SEmmanuel Vadot  - |
805def4c47SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
815def4c47SEmmanuel Vadot
825def4c47SEmmanuel Vadot    i2c {
835def4c47SEmmanuel Vadot        #address-cells = <1>;
845def4c47SEmmanuel Vadot        #size-cells = <0>;
855def4c47SEmmanuel Vadot        adau1977_i2c: adau1977@11 {
865def4c47SEmmanuel Vadot            compatible = "adi,adau1977";
875def4c47SEmmanuel Vadot            reg = <0x11>;
885def4c47SEmmanuel Vadot
895def4c47SEmmanuel Vadot            AVDD-supply = <&regulator>;
905def4c47SEmmanuel Vadot            DVDD-supply = <&regulator_digital>;
915def4c47SEmmanuel Vadot
925def4c47SEmmanuel Vadot            reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
935def4c47SEmmanuel Vadot        };
945def4c47SEmmanuel Vadot    };
95