^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) 2020 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/tas2764.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 TAS2764 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 TAS2764 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) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - ti,tas2764
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) description: |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) I2C address of the device can be between 0x38 to 0x45.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) reset-gpios:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) description: GPIO used to reset the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) shutdown-gpios:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) description: GPIO used to control the state of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) interrupts:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) ti,imon-slot-no:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) description: TDM TX current sense time slot.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) ti,vmon-slot-no:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) description: TDM TX voltage sense time slot.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) '#sound-dai-cells':
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) const: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #include <dt-bindings/gpio/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) i2c0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) codec: codec@38 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) compatible = "ti,tas2764";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) reg = <0x38>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #sound-dai-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) interrupt-parent = <&gpio1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) interrupts = <14>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) reset-gpios = <&gpio1 15 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) shutdown-gpios = <&gpio1 15 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) ti,imon-slot-no = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) ti,vmon-slot-no = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) ...