xref: /freebsd/sys/contrib/device-tree/Bindings/sound/ti,tlv320dac3100.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/ti,tlv320dac3100.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Texas Instruments - tlv320aic31xx Codec module
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Shenghao Ding <shenghao-ding@ti.com>
11*b2d2a78aSEmmanuel Vadot
12*b2d2a78aSEmmanuel Vadotdescription: |
13*b2d2a78aSEmmanuel Vadot  CODEC output pins:
14*b2d2a78aSEmmanuel Vadot    * HPL
15*b2d2a78aSEmmanuel Vadot    * HPR
16*b2d2a78aSEmmanuel Vadot    * SPL, devices with stereo speaker amp
17*b2d2a78aSEmmanuel Vadot    * SPR, devices with stereo speaker amp
18*b2d2a78aSEmmanuel Vadot    * SPK, devices with mono speaker amp
19*b2d2a78aSEmmanuel Vadot    * MICBIAS
20*b2d2a78aSEmmanuel Vadot
21*b2d2a78aSEmmanuel Vadot  CODEC input pins:
22*b2d2a78aSEmmanuel Vadot    * MIC1LP, devices with ADC
23*b2d2a78aSEmmanuel Vadot    * MIC1RP, devices with ADC
24*b2d2a78aSEmmanuel Vadot    * MIC1LM, devices with ADC
25*b2d2a78aSEmmanuel Vadot    * AIN1, devices without ADC
26*b2d2a78aSEmmanuel Vadot    * AIN2, devices without ADC
27*b2d2a78aSEmmanuel Vadot
28*b2d2a78aSEmmanuel Vadot  The pins can be used in referring sound node's audio-routing property.
29*b2d2a78aSEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadotproperties:
31*b2d2a78aSEmmanuel Vadot  compatible:
32*b2d2a78aSEmmanuel Vadot    enum:
33*b2d2a78aSEmmanuel Vadot      - ti,tlv320aic310x # - Generic TLV320AIC31xx with mono speaker amp
34*b2d2a78aSEmmanuel Vadot      - ti,tlv320aic311x # - Generic TLV320AIC31xx with stereo speaker amp
35*b2d2a78aSEmmanuel Vadot      - ti,tlv320aic3100 # - TLV320AIC3100 (mono speaker amp, no MiniDSP)
36*b2d2a78aSEmmanuel Vadot      - ti,tlv320aic3110 # - TLV320AIC3110 (stereo speaker amp, no MiniDSP)
37*b2d2a78aSEmmanuel Vadot      - ti,tlv320aic3120 # - TLV320AIC3120 (mono speaker amp, MiniDSP)
38*b2d2a78aSEmmanuel Vadot      - ti,tlv320aic3111 # - TLV320AIC3111 (stereo speaker amp, MiniDSP)
39*b2d2a78aSEmmanuel Vadot      - ti,tlv320dac3100 # - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP)
40*b2d2a78aSEmmanuel Vadot      - ti,tlv320dac3101 # - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP)
41*b2d2a78aSEmmanuel Vadot
42*b2d2a78aSEmmanuel Vadot  reg:
43*b2d2a78aSEmmanuel Vadot    maxItems: 1
44*b2d2a78aSEmmanuel Vadot
45*b2d2a78aSEmmanuel Vadot  '#sound-dai-cells':
46*b2d2a78aSEmmanuel Vadot    const: 0
47*b2d2a78aSEmmanuel Vadot
48*b2d2a78aSEmmanuel Vadot  HPVDD-supply: true
49*b2d2a78aSEmmanuel Vadot
50*b2d2a78aSEmmanuel Vadot  SPRVDD-supply: true
51*b2d2a78aSEmmanuel Vadot
52*b2d2a78aSEmmanuel Vadot  SPLVDD-supply: true
53*b2d2a78aSEmmanuel Vadot
54*b2d2a78aSEmmanuel Vadot  AVDD-supply: true
55*b2d2a78aSEmmanuel Vadot
56*b2d2a78aSEmmanuel Vadot  IOVDD-supply: true
57*b2d2a78aSEmmanuel Vadot
58*b2d2a78aSEmmanuel Vadot  DVDD-supply: true
59*b2d2a78aSEmmanuel Vadot
60*b2d2a78aSEmmanuel Vadot  reset-gpios:
61*b2d2a78aSEmmanuel Vadot    description: GPIO specification for the active low RESET input.
62*b2d2a78aSEmmanuel Vadot
63*b2d2a78aSEmmanuel Vadot  ai31xx-micbias-vg:
64*b2d2a78aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
65*b2d2a78aSEmmanuel Vadot    default: 1
66*b2d2a78aSEmmanuel Vadot    enum: [1, 2, 3]
67*b2d2a78aSEmmanuel Vadot    description: |
68*b2d2a78aSEmmanuel Vadot      MicBias Voltage setting
69*b2d2a78aSEmmanuel Vadot        1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V
70*b2d2a78aSEmmanuel Vadot        2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V
71*b2d2a78aSEmmanuel Vadot        3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD
72*b2d2a78aSEmmanuel Vadot
73*b2d2a78aSEmmanuel Vadot  ai31xx-ocmv:
74*b2d2a78aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
75*b2d2a78aSEmmanuel Vadot    enum: [0, 1, 2, 3]
76*b2d2a78aSEmmanuel Vadot    description: |
77*b2d2a78aSEmmanuel Vadot      output common-mode voltage setting
78*b2d2a78aSEmmanuel Vadot        0 - 1.35V,
79*b2d2a78aSEmmanuel Vadot        1 - 1.5V,
80*b2d2a78aSEmmanuel Vadot        2 - 1.65V,
81*b2d2a78aSEmmanuel Vadot        3 - 1.8V
82*b2d2a78aSEmmanuel Vadot
83*b2d2a78aSEmmanuel Vadot  gpio-reset:
84*b2d2a78aSEmmanuel Vadot    description: gpio pin number used for codec reset
85*b2d2a78aSEmmanuel Vadot    deprecated: true
86*b2d2a78aSEmmanuel Vadot
87*b2d2a78aSEmmanuel Vadot
88*b2d2a78aSEmmanuel Vadotrequired:
89*b2d2a78aSEmmanuel Vadot  - compatible
90*b2d2a78aSEmmanuel Vadot  - reg
91*b2d2a78aSEmmanuel Vadot  - HPVDD-supply
92*b2d2a78aSEmmanuel Vadot  - SPRVDD-supply
93*b2d2a78aSEmmanuel Vadot  - SPLVDD-supply
94*b2d2a78aSEmmanuel Vadot  - AVDD-supply
95*b2d2a78aSEmmanuel Vadot  - IOVDD-supply
96*b2d2a78aSEmmanuel Vadot  - DVDD-supply
97*b2d2a78aSEmmanuel Vadot
98*b2d2a78aSEmmanuel VadotallOf:
99*b2d2a78aSEmmanuel Vadot  - $ref: dai-common.yaml#
100*b2d2a78aSEmmanuel Vadot
101*b2d2a78aSEmmanuel VadotunevaluatedProperties: false
102*b2d2a78aSEmmanuel Vadot
103*b2d2a78aSEmmanuel Vadotexamples:
104*b2d2a78aSEmmanuel Vadot  - |
105*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
106*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/sound/tlv320aic31xx.h>
107*b2d2a78aSEmmanuel Vadot
108*b2d2a78aSEmmanuel Vadot    i2c {
109*b2d2a78aSEmmanuel Vadot        #address-cells = <1>;
110*b2d2a78aSEmmanuel Vadot        #size-cells = <0>;
111*b2d2a78aSEmmanuel Vadot
112*b2d2a78aSEmmanuel Vadot        sound@18 {
113*b2d2a78aSEmmanuel Vadot            compatible = "ti,tlv320aic311x";
114*b2d2a78aSEmmanuel Vadot            reg = <0x18>;
115*b2d2a78aSEmmanuel Vadot
116*b2d2a78aSEmmanuel Vadot            ai31xx-micbias-vg = <MICBIAS_2_0V>;
117*b2d2a78aSEmmanuel Vadot            reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
118*b2d2a78aSEmmanuel Vadot
119*b2d2a78aSEmmanuel Vadot            HPVDD-supply = <&regulator>;
120*b2d2a78aSEmmanuel Vadot            SPRVDD-supply = <&regulator>;
121*b2d2a78aSEmmanuel Vadot            SPLVDD-supply = <&regulator>;
122*b2d2a78aSEmmanuel Vadot            AVDD-supply = <&regulator>;
123*b2d2a78aSEmmanuel Vadot            IOVDD-supply = <&regulator>;
124*b2d2a78aSEmmanuel Vadot            DVDD-supply = <&regulator>;
125*b2d2a78aSEmmanuel Vadot       };
126*b2d2a78aSEmmanuel Vadot    };
127*b2d2a78aSEmmanuel Vadot
128