1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/sound/ti,tpa6130a2.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Texas Instruments - tpa6130a2 Codec module 8 9maintainers: 10 - Sebastian Reichel <sre@kernel.org> 11 12description: 13 Stereo, analog input headphone amplifier 14 15properties: 16 compatible: 17 enum: 18 - ti,tpa6130a2 19 - ti,tpa6140a2 20 21 reg: 22 maxItems: 1 23 24 Vdd-supply: 25 description: power supply regulator 26 27 power-gpio: 28 description: gpio pin to power the device 29 30required: 31 - compatible 32 - reg 33 - Vdd-supply 34 35allOf: 36 - $ref: dai-common.yaml# 37 38unevaluatedProperties: false 39 40examples: 41 - | 42 #include <dt-bindings/gpio/gpio.h> 43 44 i2c { 45 #address-cells = <1>; 46 #size-cells = <0>; 47 48 amplifier@60 { 49 compatible = "ti,tpa6130a2"; 50 reg = <0x60>; 51 Vdd-supply = <&vmmc2>; 52 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; 53 }; 54 }; 55 56