xref: /freebsd/sys/contrib/device-tree/Bindings/sound/ti,tpa6130a2.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,tpa6130a2.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Texas Instruments - tpa6130a2 Codec module
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
11*b2d2a78aSEmmanuel Vadot
12*b2d2a78aSEmmanuel Vadotdescription:
13*b2d2a78aSEmmanuel Vadot  Stereo, analog input headphone amplifier
14*b2d2a78aSEmmanuel Vadot
15*b2d2a78aSEmmanuel Vadotproperties:
16*b2d2a78aSEmmanuel Vadot  compatible:
17*b2d2a78aSEmmanuel Vadot    enum:
18*b2d2a78aSEmmanuel Vadot      - ti,tpa6130a2
19*b2d2a78aSEmmanuel Vadot      - ti,tpa6140a2
20*b2d2a78aSEmmanuel Vadot
21*b2d2a78aSEmmanuel Vadot  reg:
22*b2d2a78aSEmmanuel Vadot    maxItems: 1
23*b2d2a78aSEmmanuel Vadot
24*b2d2a78aSEmmanuel Vadot  Vdd-supply:
25*b2d2a78aSEmmanuel Vadot    description: power supply regulator
26*b2d2a78aSEmmanuel Vadot
27*b2d2a78aSEmmanuel Vadot  power-gpio:
28*b2d2a78aSEmmanuel Vadot    description: gpio pin to power the device
29*b2d2a78aSEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadotrequired:
31*b2d2a78aSEmmanuel Vadot  - compatible
32*b2d2a78aSEmmanuel Vadot  - reg
33*b2d2a78aSEmmanuel Vadot  - Vdd-supply
34*b2d2a78aSEmmanuel Vadot
35*b2d2a78aSEmmanuel VadotallOf:
36*b2d2a78aSEmmanuel Vadot  - $ref: dai-common.yaml#
37*b2d2a78aSEmmanuel Vadot
38*b2d2a78aSEmmanuel VadotunevaluatedProperties: false
39*b2d2a78aSEmmanuel Vadot
40*b2d2a78aSEmmanuel Vadotexamples:
41*b2d2a78aSEmmanuel Vadot  - |
42*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
43*b2d2a78aSEmmanuel Vadot
44*b2d2a78aSEmmanuel Vadot    i2c {
45*b2d2a78aSEmmanuel Vadot        #address-cells = <1>;
46*b2d2a78aSEmmanuel Vadot        #size-cells = <0>;
47*b2d2a78aSEmmanuel Vadot
48*b2d2a78aSEmmanuel Vadot        amplifier@60 {
49*b2d2a78aSEmmanuel Vadot            compatible = "ti,tpa6130a2";
50*b2d2a78aSEmmanuel Vadot            reg = <0x60>;
51*b2d2a78aSEmmanuel Vadot            Vdd-supply = <&vmmc2>;
52*b2d2a78aSEmmanuel Vadot            power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>;
53*b2d2a78aSEmmanuel Vadot       };
54*b2d2a78aSEmmanuel Vadot    };
55*b2d2a78aSEmmanuel Vadot
56