Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright (C) 2019 Texas Instruments Incorporated
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/sound/tas2562.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007 
0008 title: Texas Instruments TAS2562 Smart PA
0009 
0010 maintainers:
0011   - Andrew Davis <afd@ti.com>
0012 
0013 description: |
0014   The TAS2562 is a mono, digital input Class-D audio amplifier optimized for
0015   efficiently driving high peak power into small loudspeakers.
0016   Integrated speaker voltage and current sense provides for
0017   real time monitoring of loudspeaker behavior.
0018 
0019   Specifications about the audio amplifier can be found at:
0020     https://www.ti.com/lit/gpn/tas2562
0021     https://www.ti.com/lit/gpn/tas2563
0022     https://www.ti.com/lit/gpn/tas2564
0023     https://www.ti.com/lit/gpn/tas2110
0024 
0025 properties:
0026   compatible:
0027     enum:
0028       - ti,tas2562
0029       - ti,tas2563
0030       - ti,tas2564
0031       - ti,tas2110
0032 
0033   reg:
0034     maxItems: 1
0035     description: |
0036        I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
0037 
0038   shut-down-gpios:
0039     maxItems: 1
0040     description: GPIO used to control the state of the device.
0041     deprecated: true
0042 
0043   shutdown-gpios:
0044     maxItems: 1
0045     description: GPIO used to control the state of the device.
0046 
0047   interrupts:
0048     maxItems: 1
0049 
0050   ti,imon-slot-no:
0051     $ref: /schemas/types.yaml#/definitions/uint32
0052     description: TDM TX current sense time slot.
0053 
0054   '#sound-dai-cells':
0055     const: 1
0056 
0057 required:
0058   - compatible
0059   - reg
0060 
0061 additionalProperties: false
0062 
0063 examples:
0064   - |
0065    #include <dt-bindings/gpio/gpio.h>
0066    i2c0 {
0067      #address-cells = <1>;
0068      #size-cells = <0>;
0069      codec: codec@4c {
0070        compatible = "ti,tas2562";
0071        reg = <0x4c>;
0072        #sound-dai-cells = <1>;
0073        interrupt-parent = <&gpio1>;
0074        interrupts = <14>;
0075        shutdown-gpios = <&gpio1 15 0>;
0076        ti,imon-slot-no = <0>;
0077      };
0078    };