forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 37
ASoC: codecs: add TAS2557 mono smart amplifier driver and tulip/jasmine_sprout enablement #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
M0Rf30
wants to merge
6
commits into
qcom-sdm660-7.0.y
Choose a base branch
from
m0rf30/qcom-sdm660-7.0.y-tas2557-working
base: qcom-sdm660-7.0.y
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8bff9d3
dt-bindings: sound: add Texas Instruments TAS2557
M0Rf30 4ec10d4
ASoC: codecs: add TAS2557 mono smart amplifier driver
M0Rf30 9f3da0a
ASoC: qcom: sdm660-internal: add Primary MI2S support
M0Rf30 a37a079
fixup! sdm660_defconfig
M0Rf30 69ce523
fixup! arm64: dts: qcom: add device-tree for Redmi Note 6 Pro (tulip)
M0Rf30 a2981b9
fixup! arm64: dts: qcom: sdm660: Add device tree for Xiaomi Mi A2 (ja…
M0Rf30 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
123 changes: 123 additions & 0 deletions
123
Documentation/devicetree/bindings/sound/ti,tas2557.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,123 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| # Copyright (C) 2026 Gianluca Boiano <morf3089@gmail.com> | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/sound/ti,tas2557.yaml# | ||
| $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
|
||
| title: Texas Instruments TAS2557 Mono Smart Amplifier | ||
|
|
||
| maintainers: | ||
| - Gianluca Boiano <morf3089@gmail.com> | ||
|
|
||
| description: | | ||
| The TAS2557 is a mono, digital-input Class-D amplifier with an | ||
| integrated DSP for speaker protection. Audio is carried over I2S/TDM | ||
| (ASI). The on-chip DSP boots from a firmware image that is generated | ||
| for a specific speaker design using the TI PurePath Console tuning | ||
| tools. | ||
|
|
||
| Stereo playback is built from two devices, each reproducing one audio | ||
| slot selected through the ti,channel property and applying the | ||
| matching per-device tuning contained in a stereo-tuned firmware | ||
| image. | ||
|
|
||
| Datasheet: https://www.ti.com/lit/gpn/tas2557 | ||
|
|
||
| allOf: | ||
| - $ref: dai-common.yaml# | ||
|
|
||
| properties: | ||
| compatible: | ||
| const: ti,tas2557 | ||
|
|
||
| reg: | ||
| maxItems: 1 | ||
|
|
||
| '#sound-dai-cells': | ||
| const: 0 | ||
|
|
||
| reset-gpios: | ||
| maxItems: 1 | ||
| description: GPIO connected to the active-low RESET pin. | ||
|
|
||
| interrupts: | ||
| maxItems: 1 | ||
| description: Fault interrupt output (INT). | ||
|
|
||
| vbat-supply: | ||
| description: Battery/boost input supply (VBAT), 2.9 V to 5.5 V. | ||
|
|
||
| iovdd-supply: | ||
| description: Digital I/O supply, 1.62 V to 3.6 V. | ||
|
|
||
| avdd-supply: | ||
| description: Analog supply, 1.65 V to 1.95 V. | ||
|
|
||
| dvdd-supply: | ||
| description: Digital core supply, 1.65 V to 1.95 V. | ||
|
|
||
| ti,imon-slot-no: | ||
| $ref: /schemas/types.yaml#/definitions/uint32 | ||
| description: TDM TX time slot for current-sense data. | ||
| default: 0 | ||
| minimum: 0 | ||
| maximum: 7 | ||
|
|
||
| ti,vmon-slot-no: | ||
| $ref: /schemas/types.yaml#/definitions/uint32 | ||
| description: TDM TX time slot for voltage-sense data. | ||
| default: 2 | ||
| minimum: 0 | ||
| maximum: 7 | ||
|
|
||
| ti,channel: | ||
| $ref: /schemas/types.yaml#/definitions/uint32 | ||
| description: | | ||
| Audio slot of the stereo stream reproduced by this device (0 = | ||
| left, 1 = right). With stereo firmware this also selects which | ||
| per-device tuning set is applied. | ||
| enum: [0, 1] | ||
| default: 0 | ||
|
|
||
| firmware-name: | ||
| $ref: /schemas/types.yaml#/definitions/string | ||
| description: | | ||
| Name of the DSP firmware image to load. Defaults to a name | ||
| derived from the silicon revision. Stereo systems typically use | ||
| a stereo-tuned image shared by both devices. | ||
|
|
||
| required: | ||
| - compatible | ||
| - reg | ||
| - '#sound-dai-cells' | ||
|
|
||
| unevaluatedProperties: false | ||
|
|
||
| examples: | ||
| - | | ||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/interrupt-controller/irq.h> | ||
|
|
||
| i2c { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| audio-codec@4c { | ||
| compatible = "ti,tas2557"; | ||
| reg = <0x4c>; | ||
| #sound-dai-cells = <0>; | ||
| reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>; | ||
| interrupt-parent = <&tlmm>; | ||
| interrupts = <73 IRQ_TYPE_LEVEL_HIGH>; | ||
|
|
||
| vbat-supply = <&vph_pwr>; | ||
| iovdd-supply = <&vreg_l6b_1p8>; | ||
| avdd-supply = <&vreg_l6b_1p8>; | ||
| dvdd-supply = <&vreg_l6b_1p8>; | ||
|
|
||
| ti,imon-slot-no = <0>; | ||
| ti,vmon-slot-no = <2>; | ||
| ti,channel = <0>; | ||
| }; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.