FILE
ti,tas2770.yaml
File preview with syntax highlighting.
linux-6.19.14/Documentation/devicetree/bindings/sound/ti,tas2770.yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2# Copyright (C) 2019-20 Texas Instruments Incorporated 3%YAML 1.2 4--- 5$id: http://devicetree.org/schemas/sound/ti,tas2770.yaml# 6$schema: http://devicetree.org/meta-schemas/core.yaml# 7 8title: Texas Instruments TAS2770 Smart PA 9 10maintainers: 11 - Shi Fu <shifu0704@thundersoft.com> 12 13description: | 14 The TAS2770 is a mono, digital input Class-D audio amplifier optimized for 15 efficiently driving high peak power into small loudspeakers. 16 Integrated speaker voltage and current sense provides for 17 real time monitoring of loudspeaker behavior. 18 19allOf: 20 - $ref: dai-common.yaml# 21 22properties: 23 compatible: 24 enum: 25 - ti,tas2770 26 - ti,tas5770l # Apple variant 27 28 reg: 29 maxItems: 1 30 description: | 31 I2C address of the device can be between 0x41 to 0x48. 32 33 reset-gpio: 34 maxItems: 1 35 description: GPIO used to reset the device. 36 37 shutdown-gpios: 38 maxItems: 1 39 description: GPIO used to control the state of the device. 40 41 interrupts: 42 maxItems: 1 43 44 ti,imon-slot-no: 45 $ref: /schemas/types.yaml#/definitions/uint32 46 description: TDM TX current sense time slot. 47 48 ti,vmon-slot-no: 49 $ref: /schemas/types.yaml#/definitions/uint32 50 description: TDM TX voltage sense time slot. 51 52 ti,asi-format: 53 deprecated: true 54 $ref: /schemas/types.yaml#/definitions/uint32 55 description: Sets TDM RX capture edge. 56 enum: 57 - 0 # Rising edge 58 - 1 # Falling edge 59 60 '#sound-dai-cells': 61 # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward 62 # compatibility but is deprecated. 63 enum: [0, 1] 64 65required: 66 - compatible 67 - reg 68 69unevaluatedProperties: false 70 71examples: 72 - | 73 #include <dt-bindings/gpio/gpio.h> 74 75 i2c { 76 #address-cells = <1>; 77 #size-cells = <0>; 78 79 codec@41 { 80 compatible = "ti,tas2770"; 81 reg = <0x41>; 82 #sound-dai-cells = <0>; 83 interrupt-parent = <&gpio1>; 84 interrupts = <14>; 85 reset-gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>; 86 shutdown-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; 87 ti,imon-slot-no = <0>; 88 ti,vmon-slot-no = <2>; 89 }; 90 };
~/
Read-only file preview.