^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) # Copyright (C) 2019 Texas Instruments Incorporated
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $id: "http://devicetree.org/schemas/sound/tas2562.yaml#"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) $schema: "http://devicetree.org/meta-schemas/core.yaml#"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) title: Texas Instruments TAS2562 Smart PA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - Dan Murphy <dmurphy@ti.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) description: |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) The TAS2562 is a mono, digital input Class-D audio amplifier optimized for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) efficiently driving high peak power into small loudspeakers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Integrated speaker voltage and current sense provides for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) real time monitoring of loudspeaker behavior.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Specifications about the audio amplifier can be found at:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) https://www.ti.com/lit/gpn/tas2562
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) https://www.ti.com/lit/gpn/tas2563
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) https://www.ti.com/lit/gpn/tas2564
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) https://www.ti.com/lit/gpn/tas2110
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - ti,tas2562
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - ti,tas2563
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - ti,tas2564
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) - ti,tas2110
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) description: |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) I2C address of the device can be one of these 0x4c, 0x4d, 0x4e or 0x4f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) shut-down-gpios:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) description: GPIO used to control the state of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) deprecated: true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) shutdown-gpios:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) description: GPIO used to control the state of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) interrupts:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) ti,imon-slot-no:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) description: TDM TX current sense time slot.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) '#sound-dai-cells':
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) const: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #include <dt-bindings/gpio/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) i2c0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) codec: codec@4c {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) compatible = "ti,tas2562";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) reg = <0x4c>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #sound-dai-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) interrupt-parent = <&gpio1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) interrupts = <14>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) shutdown-gpios = <&gpio1 15 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) ti,imon-slot-no = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)