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,tas2552.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Texas Instruments TAS2552 Codec 8 9maintainers: 10 - Shenghao Ding <shenghao-ding@ti.com> 11 - Kevin Lu <kevin-lu@ti.com> 12 - Baojun Xu <baojun.xu@ti.com> 13 14description: > 15 The TAS2552 can receive its reference clock via MCLK, BCLK, IVCLKIN pin or 16 use the internal 1.8MHz. This CLKIN is used by the PLL. In addition to PLL, 17 the PDM reference clock is also selectable: PLL, IVCLKIN, BCLK or MCLK. 18 19 For system integration the dt-bindings/sound/tas2552.h header file provides 20 defined values to select and configure the PLL and PDM reference clocks. 21 22properties: 23 compatible: 24 const: ti,tas2552 25 26 reg: 27 maxItems: 1 28 29 vbat-supply: true 30 iovdd-supply: true 31 avdd-supply: true 32 33 enable-gpio: 34 maxItems: 1 35 description: gpio pin to enable/disable the device 36 37 '#sound-dai-cells': 38 const: 0 39 40required: 41 - compatible 42 - reg 43 - vbat-supply 44 - iovdd-supply 45 - avdd-supply 46 47allOf: 48 - $ref: dai-common.yaml# 49 50unevaluatedProperties: false 51 52examples: 53 - | 54 #include <dt-bindings/gpio/gpio.h> 55 56 i2c { 57 #address-cells = <1>; 58 #size-cells = <0>; 59 60 audio-codec@41 { 61 compatible = "ti,tas2552"; 62 reg = <0x41>; 63 #sound-dai-cells = <0>; 64 vbat-supply = <®_vbat>; 65 iovdd-supply = <®_iovdd>; 66 avdd-supply = <®_avdd>; 67 enable-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; 68 }; 69 }; 70