forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
ASoC: mediatek: add initial MT6572 + MT6323 PMIC audio (PAP5500 DUO + Lenovo A369i) #9
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
gabin8
wants to merge
13
commits into
mt6572-mainline:master
Choose a base branch
from
gabin8:pap5500-audio
base: master
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
13 commits
Select commit
Hold shift + click to select a range
3d6e3ee
dt-bindings: mfd: mediatek,mt6397: add the MT6323 audio codec compatible
gabin8 42e9de3
dt-bindings: sound: add the MediaTek MT6572 AFE
gabin8 95a8185
dt-bindings: sound: add the MediaTek MT6572 + MT6323 sound card
gabin8 b52fd10
ASoC: codecs: add the MediaTek MT6323 PMIC audio codec
gabin8 b5d97d0
ASoC: mediatek: add MT6572 AFE platform and MT6323 sound card
gabin8 702913d
mfd: mt6397: register the MT6323 audio codec cell
gabin8 0ae00fa
pinctrl: mediatek: mt6572: map GPIO142 to EINT7
gabin8 e1ecda2
ARM: dts: mediatek: mt6572: add the AFE audio-controller node
gabin8 81b94d5
ARM: dts: mediatek: mt6323: add the audio-codec node
gabin8 d0d2e21
ARM: dts: mediatek: pap5500-duo: wire up audio
gabin8 9606c76
README: document initial audio support
gabin8 d98243b
pinctrl: mediatek: mt6572: map GPIO136 to EINT2
gabin8 cfac629
ARM: dts: mediatek: lenovo-a369i: wire up audio
gabin8 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
Documentation/devicetree/bindings/sound/mediatek,mt6572-afe.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,32 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/sound/mediatek,mt6572-afe.yaml# | ||
| $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
|
||
| title: MediaTek AFE PCM controller for MT6572 | ||
|
|
||
| maintainers: | ||
| - Custom Firmware <gabin278@gmail.com> | ||
|
|
||
| properties: | ||
| compatible: | ||
| const: mediatek,mt6572-audio | ||
|
|
||
| clocks: | ||
| maxItems: 1 | ||
|
|
||
| interrupts: | ||
| maxItems: 1 | ||
|
|
||
| iram: | ||
| $ref: /schemas/types.yaml#/definitions/phandle | ||
| description: on-chip audio SRAM used for the DL1 playback buffers. | ||
|
|
||
| required: | ||
| - compatible | ||
| - clocks | ||
| - interrupts | ||
| - iram | ||
|
|
||
| additionalProperties: false |
41 changes: 41 additions & 0 deletions
41
Documentation/devicetree/bindings/sound/mediatek,mt6572-mt6323.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,41 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/sound/mediatek,mt6572-mt6323.yaml# | ||
| $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
|
||
| title: MediaTek MT6572 sound card with the MT6323 PMIC codec | ||
|
|
||
| maintainers: | ||
| - Custom Firmware <gabin278@gmail.com> | ||
|
|
||
| description: | ||
| MediaTek MT6572 SoC-based sound card using the MT6323 PMIC analog codec | ||
| for playback, with an optional external speaker amplifier. | ||
|
|
||
| allOf: | ||
| - $ref: sound-card-common.yaml# | ||
|
|
||
| properties: | ||
| compatible: | ||
| const: mediatek,mt6572-mt6323-sound | ||
|
|
||
| mediatek,platform: | ||
| $ref: /schemas/types.yaml#/definitions/phandle | ||
| description: phandle to the MT6572 AFE platform. | ||
|
|
||
| aux-devs: | ||
| $ref: /schemas/types.yaml#/definitions/phandle-array | ||
| description: | ||
| List of phandles pointing to auxiliary devices, such as an external | ||
| speaker amplifier, to be added to the sound card. | ||
|
|
||
| hp-det-gpios: | ||
| maxItems: 1 | ||
| description: Optional headphone-jack plug-detect GPIO. | ||
|
|
||
| required: | ||
| - compatible | ||
| - mediatek,platform | ||
|
|
||
| unevaluatedProperties: false | ||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,6 +151,9 @@ static const struct mfd_cell mt6323_devs[] = { | |
| .num_resources = ARRAY_SIZE(mt6323_pwrc_resources), | ||
| .resources = mt6323_pwrc_resources, | ||
| .of_compatible = "mediatek,mt6323-pwrc" | ||
| }, { | ||
| .name = "mt6323-sound", | ||
| .of_compatible = "mediatek,mt6323-sound" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong order, this goes before thermal |
||
| }, { | ||
| .name = "mt6323-thermal", | ||
| .of_compatible = "mediatek,mt6323-thermal", | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -1284,7 +1284,7 @@ static const struct mtk_pin_desc mtk_pins_mt6572[] = { | |
| ), | ||
| MTK_PIN( | ||
| 136, "GPIO136", | ||
| MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), | ||
| MTK_EINT_FUNCTION(4, 2), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unsquash. this should be separate commit so i can squash this with initial pinctrl commit |
||
| DRV_GRP0, | ||
| MTK_FUNCTION(0, "GPIO136"), | ||
| MTK_FUNCTION(1, "BPI_BUS6"), | ||
|
|
@@ -1348,7 +1348,7 @@ static const struct mtk_pin_desc mtk_pins_mt6572[] = { | |
| ), | ||
| MTK_PIN( | ||
| 142, "GPIO142", | ||
| MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT), | ||
| MTK_EINT_FUNCTION(3, 7), | ||
| DRV_GRP2, | ||
| MTK_FUNCTION(0, "GPIO142"), | ||
| MTK_FUNCTION(1, "BPI_BUS12"), | ||
|
|
||
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'the machine binding'? perhaps devicetree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rephrased similar to other mtk socs