1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2d5b0e70fSEmmanuel Vadot# Copyright (C) 2020-2022 Texas Instruments Incorporated 3d5b0e70fSEmmanuel Vadot%YAML 1.2 4d5b0e70fSEmmanuel Vadot--- 5*f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/tas27xx.yaml# 6*f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7d5b0e70fSEmmanuel Vadot 8d5b0e70fSEmmanuel Vadottitle: Texas Instruments TAS2764/TAS2780 Smart PA 9d5b0e70fSEmmanuel Vadot 10d5b0e70fSEmmanuel Vadotmaintainers: 11d5b0e70fSEmmanuel Vadot - Shenghao Ding <shenghao-ding@ti.com> 12d5b0e70fSEmmanuel Vadot 13d5b0e70fSEmmanuel Vadotdescription: | 14d5b0e70fSEmmanuel Vadot The TAS2764/TAS2780 is a mono, digital input Class-D audio amplifier 15d5b0e70fSEmmanuel Vadot optimized for efficiently driving high peak power into small 16d5b0e70fSEmmanuel Vadot loudspeakers. Integrated speaker voltage and current sense provides 17d5b0e70fSEmmanuel Vadot for real time monitoring of loudspeaker behavior. 18d5b0e70fSEmmanuel Vadot 198bab661aSEmmanuel VadotallOf: 208bab661aSEmmanuel Vadot - $ref: dai-common.yaml# 218bab661aSEmmanuel Vadot 22d5b0e70fSEmmanuel Vadotproperties: 23d5b0e70fSEmmanuel Vadot compatible: 24d5b0e70fSEmmanuel Vadot enum: 25d5b0e70fSEmmanuel Vadot - ti,tas2764 26d5b0e70fSEmmanuel Vadot - ti,tas2780 27d5b0e70fSEmmanuel Vadot 28d5b0e70fSEmmanuel Vadot reg: 29d5b0e70fSEmmanuel Vadot maxItems: 1 30d5b0e70fSEmmanuel Vadot description: | 31d5b0e70fSEmmanuel Vadot I2C address of the device can be between 0x38 to 0x45. 32d5b0e70fSEmmanuel Vadot 33d5b0e70fSEmmanuel Vadot reset-gpios: 34d5b0e70fSEmmanuel Vadot maxItems: 1 35d5b0e70fSEmmanuel Vadot description: GPIO used to reset the device. 36d5b0e70fSEmmanuel Vadot 37d5b0e70fSEmmanuel Vadot shutdown-gpios: 38d5b0e70fSEmmanuel Vadot maxItems: 1 39d5b0e70fSEmmanuel Vadot description: GPIO used to control the state of the device. 40d5b0e70fSEmmanuel Vadot 41d5b0e70fSEmmanuel Vadot interrupts: 42d5b0e70fSEmmanuel Vadot maxItems: 1 43d5b0e70fSEmmanuel Vadot 44d5b0e70fSEmmanuel Vadot ti,imon-slot-no: 45d5b0e70fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 46d5b0e70fSEmmanuel Vadot description: TDM TX current sense time slot. 47d5b0e70fSEmmanuel Vadot 48d5b0e70fSEmmanuel Vadot ti,vmon-slot-no: 49d5b0e70fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 50d5b0e70fSEmmanuel Vadot description: TDM TX voltage sense time slot. 51d5b0e70fSEmmanuel Vadot 52d5b0e70fSEmmanuel Vadot '#sound-dai-cells': 53fac71e4eSEmmanuel Vadot # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward 54fac71e4eSEmmanuel Vadot # compatibility but is deprecated. 55fac71e4eSEmmanuel Vadot enum: [0, 1] 56d5b0e70fSEmmanuel Vadot 57d5b0e70fSEmmanuel Vadotrequired: 58d5b0e70fSEmmanuel Vadot - compatible 59d5b0e70fSEmmanuel Vadot - reg 60d5b0e70fSEmmanuel Vadot 618bab661aSEmmanuel VadotunevaluatedProperties: false 62d5b0e70fSEmmanuel Vadot 63d5b0e70fSEmmanuel Vadotexamples: 64d5b0e70fSEmmanuel Vadot - | 65d5b0e70fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 66fac71e4eSEmmanuel Vadot i2c { 67d5b0e70fSEmmanuel Vadot #address-cells = <1>; 68d5b0e70fSEmmanuel Vadot #size-cells = <0>; 69d5b0e70fSEmmanuel Vadot codec: codec@38 { 70d5b0e70fSEmmanuel Vadot compatible = "ti,tas2764"; 71d5b0e70fSEmmanuel Vadot reg = <0x38>; 72fac71e4eSEmmanuel Vadot #sound-dai-cells = <0>; 73d5b0e70fSEmmanuel Vadot interrupt-parent = <&gpio1>; 74d5b0e70fSEmmanuel Vadot interrupts = <14>; 75d5b0e70fSEmmanuel Vadot reset-gpios = <&gpio1 15 0>; 76d5b0e70fSEmmanuel Vadot shutdown-gpios = <&gpio1 15 0>; 77d5b0e70fSEmmanuel Vadot ti,imon-slot-no = <0>; 78d5b0e70fSEmmanuel Vadot ti,vmon-slot-no = <2>; 79d5b0e70fSEmmanuel Vadot }; 80d5b0e70fSEmmanuel Vadot }; 81d5b0e70fSEmmanuel Vadot 82d5b0e70fSEmmanuel Vadot... 83