^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-20 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/tas2770.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 TAS2770 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) - Shi Fu <shifu0704@thundersoft.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 TAS2770 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,tas2770
^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 0x41 to 0x48.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) reset-gpio:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) description: GPIO used to reset the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) shutdown-gpios:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) description: GPIO used to control the state of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) interrupts:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) ti,imon-slot-no:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) description: TDM TX current sense time slot.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) ti,vmon-slot-no:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) description: TDM TX voltage sense time slot.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) ti,asi-format:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) deprecated: true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) $ref: /schemas/types.yaml#/definitions/uint32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) description: Sets TDM RX capture edge.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) - 0 # Rising edge
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) - 1 # Falling edge
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) '#sound-dai-cells':
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) const: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #include <dt-bindings/gpio/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) i2c0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) codec: codec@41 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) compatible = "ti,tas2770";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) reg = <0x41>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #sound-dai-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) interrupt-parent = <&gpio1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) interrupts = <14>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) reset-gpio = <&gpio1 15 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) shutdown-gpios = <&gpio1 14 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) ti,imon-slot-no = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) ti,vmon-slot-no = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)