1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5f62a964SEmmanuel Vadot%YAML 1.2 3*5f62a964SEmmanuel Vadot--- 4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/adi,adau1373.yaml# 5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5f62a964SEmmanuel Vadot 7*5f62a964SEmmanuel Vadottitle: Analog Devices ADAU1373 CODEC 8*5f62a964SEmmanuel Vadot 9*5f62a964SEmmanuel Vadotmaintainers: 10*5f62a964SEmmanuel Vadot - Nuno Sá <nuno.sa@analog.com> 11*5f62a964SEmmanuel Vadot 12*5f62a964SEmmanuel Vadotdescription: | 13*5f62a964SEmmanuel Vadot Analog Devices ADAU1373 Low power codec with speaker and headphone amplifiers. 14*5f62a964SEmmanuel Vadot https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1373.pdf 15*5f62a964SEmmanuel Vadot 16*5f62a964SEmmanuel VadotallOf: 17*5f62a964SEmmanuel Vadot - $ref: dai-common.yaml# 18*5f62a964SEmmanuel Vadot 19*5f62a964SEmmanuel Vadotproperties: 20*5f62a964SEmmanuel Vadot compatible: 21*5f62a964SEmmanuel Vadot enum: 22*5f62a964SEmmanuel Vadot - adi,adau1373 23*5f62a964SEmmanuel Vadot 24*5f62a964SEmmanuel Vadot reg: 25*5f62a964SEmmanuel Vadot maxItems: 1 26*5f62a964SEmmanuel Vadot 27*5f62a964SEmmanuel Vadot "#sound-dai-cells": 28*5f62a964SEmmanuel Vadot const: 0 29*5f62a964SEmmanuel Vadot 30*5f62a964SEmmanuel Vadot powerdown-gpios: 31*5f62a964SEmmanuel Vadot description: GPIO used for hardware power-down. 32*5f62a964SEmmanuel Vadot maxItems: 1 33*5f62a964SEmmanuel Vadot 34*5f62a964SEmmanuel Vadot adi,micbias1-microvolt: 35*5f62a964SEmmanuel Vadot description: 36*5f62a964SEmmanuel Vadot This property sets the microphone bias voltage for the first microphone. 37*5f62a964SEmmanuel Vadot enum: [1800000, 2200000, 2600000, 2900000] 38*5f62a964SEmmanuel Vadot default: 2900000 39*5f62a964SEmmanuel Vadot 40*5f62a964SEmmanuel Vadot adi,micbias2-microvolt: 41*5f62a964SEmmanuel Vadot description: 42*5f62a964SEmmanuel Vadot This property sets the microphone bias voltage for the second microphone. 43*5f62a964SEmmanuel Vadot enum: [1800000, 2200000, 2600000, 2900000] 44*5f62a964SEmmanuel Vadot default: 2900000 45*5f62a964SEmmanuel Vadot 46*5f62a964SEmmanuel Vadot adi,input1-differential: 47*5f62a964SEmmanuel Vadot description: This property sets the first analog input as differential. 48*5f62a964SEmmanuel Vadot type: boolean 49*5f62a964SEmmanuel Vadot 50*5f62a964SEmmanuel Vadot adi,input2-differential: 51*5f62a964SEmmanuel Vadot description: This property sets the second analog input as differential. 52*5f62a964SEmmanuel Vadot type: boolean 53*5f62a964SEmmanuel Vadot 54*5f62a964SEmmanuel Vadot adi,input3-differential: 55*5f62a964SEmmanuel Vadot description: This property sets the third analog input as differential. 56*5f62a964SEmmanuel Vadot type: boolean 57*5f62a964SEmmanuel Vadot 58*5f62a964SEmmanuel Vadot adi,input4-differential: 59*5f62a964SEmmanuel Vadot description: This property sets the fourth analog input as differential. 60*5f62a964SEmmanuel Vadot type: boolean 61*5f62a964SEmmanuel Vadot 62*5f62a964SEmmanuel Vadot adi,lineout-differential: 63*5f62a964SEmmanuel Vadot description: This property sets the line output as differential. 64*5f62a964SEmmanuel Vadot type: boolean 65*5f62a964SEmmanuel Vadot 66*5f62a964SEmmanuel Vadot adi,lineout-gnd-sense: 67*5f62a964SEmmanuel Vadot description: This property enables the line output ground sense control. 68*5f62a964SEmmanuel Vadot type: boolean 69*5f62a964SEmmanuel Vadot 70*5f62a964SEmmanuel Vadot adi,drc-settings: 71*5f62a964SEmmanuel Vadot description: 72*5f62a964SEmmanuel Vadot This setting is used to control the dynamic range of the signal. The 73*5f62a964SEmmanuel Vadot device provides a maximum of three full band DRCs with 13 entries each. 74*5f62a964SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint8-array 75*5f62a964SEmmanuel Vadot oneOf: 76*5f62a964SEmmanuel Vadot - minItems: 13 77*5f62a964SEmmanuel Vadot maxItems: 13 78*5f62a964SEmmanuel Vadot - minItems: 26 79*5f62a964SEmmanuel Vadot maxItems: 26 80*5f62a964SEmmanuel Vadot - minItems: 39 81*5f62a964SEmmanuel Vadot maxItems: 39 82*5f62a964SEmmanuel Vadot 83*5f62a964SEmmanuel Vadotrequired: 84*5f62a964SEmmanuel Vadot - "#sound-dai-cells" 85*5f62a964SEmmanuel Vadot - compatible 86*5f62a964SEmmanuel Vadot - reg 87*5f62a964SEmmanuel Vadot 88*5f62a964SEmmanuel VadotunevaluatedProperties: false 89*5f62a964SEmmanuel Vadot 90*5f62a964SEmmanuel Vadotexamples: 91*5f62a964SEmmanuel Vadot - | 92*5f62a964SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 93*5f62a964SEmmanuel Vadot 94*5f62a964SEmmanuel Vadot i2c { 95*5f62a964SEmmanuel Vadot #address-cells = <1>; 96*5f62a964SEmmanuel Vadot #size-cells = <0>; 97*5f62a964SEmmanuel Vadot audio-codec@1a { 98*5f62a964SEmmanuel Vadot compatible = "adi,adau1373"; 99*5f62a964SEmmanuel Vadot reg = <0x1a>; 100*5f62a964SEmmanuel Vadot #sound-dai-cells = <0>; 101*5f62a964SEmmanuel Vadot powerdown-gpios = <&gpio 100 GPIO_ACTIVE_LOW>; 102*5f62a964SEmmanuel Vadot adi,input2-differential; 103*5f62a964SEmmanuel Vadot adi,input1-differential; 104*5f62a964SEmmanuel Vadot adi,lineout-differential; 105*5f62a964SEmmanuel Vadot adi,micbias2-microvolt = <1800000>; 106*5f62a964SEmmanuel Vadot adi,drc-settings = /bits/ 8 < 107*5f62a964SEmmanuel Vadot 0xff 0xff 0x1 0x2 0xa 0xa 0xd 0x1 0xff 0xff 0x5 0xd 0xff 108*5f62a964SEmmanuel Vadot >; 109*5f62a964SEmmanuel Vadot }; 110*5f62a964SEmmanuel Vadot }; 111*5f62a964SEmmanuel Vadot... 112