Skip to content

i.MX8: Add support for new board revisions#5303

Merged
dbaluta merged 3 commits intothesofproject:topic/sof-devfrom
dbaluta:add_platf
Jan 22, 2025
Merged

i.MX8: Add support for new board revisions#5303
dbaluta merged 3 commits intothesofproject:topic/sof-devfrom
dbaluta:add_platf

Conversation

@dbaluta
Copy link
Collaborator

@dbaluta dbaluta commented Jan 21, 2025

This adds support for new i.MX8MP, i.MX8QM and i.MX8QXP revisions and also help select the correct topology for cs42888 codec found on Audio IO card.

@bardliao
Copy link
Collaborator

Would you like to address the typo in the commit message? https://sof-ci.01.org/linuxpr/PR5303/build5873/checkpatch/index.html

dbaluta and others added 3 commits January 22, 2025 10:21
After commit 2b9cdef ("ASoC: SOF: imx: Add devicetree support
to select topologies") we select topology to be used by the board
compatible string in the dts.

Now that we have a way to know when the baseboard is installed, use
the board compatible and select proper topology files when the cs42888
Audio IO card is used.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
The new revisions for 8QM and 8QXP have wm8962 codec instead of wm8960.
Therefore add new entries in sof_imx8_machs, an array of snd_sof_of_mach,
where we describe topology name and driver name.
For the new revisions we have new compatible values and based on these,
we select the new topology file, for wm8962 codec.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
The new revision for 8M Plus has wm8962 codec instead of wm8960.
Therefore add new entry in sof_imx8mp_machs, an array of snd_sof_of_mach,
where we describe topology name and driver name.
For the new revision we have new compatible value and based on this,
we select the new topology file, for wm8962 codec.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
@dbaluta
Copy link
Collaborator Author

dbaluta commented Jan 22, 2025

@bardliao done.

@bardliao
Copy link
Collaborator

@dbaluta Would you like to submit the patches to ASoC tree by yourselves or you prefer us to submit them?

@dbaluta
Copy link
Collaborator Author

dbaluta commented Jan 22, 2025

@bardliao I will submit them myself to Asoc tree.

@dbaluta dbaluta merged commit 03c6071 into thesofproject:topic/sof-dev Jan 22, 2025
7 of 9 checks passed
@dbaluta dbaluta deleted the add_platf branch January 22, 2025 15:19
@bardliao
Copy link
Collaborator

@bardliao I will submit them myself to Asoc tree.

Then we should not merge it into SOF tree here. Otherwise, we may have merge conflicts when we do the next upstream merge.
Can you get the commits from https://github.com/thesofproject/linux/commits/topic/sof-dev-rebase when you submit the patches to prevent potential merge confit?
I.e.

ef82df08ba34 ASoC: SOF: imx8m: Add entry for new 8M Plus revision
e3664d35fba6 ASoC: SOF: imx8: Add entries for new 8QM and 8QXP revisions
83fd9268756a ASoC: SOF: imx: Add mach entry to select cs42888 topology

Thanks.

@dbaluta
Copy link
Collaborator Author

dbaluta commented Jan 23, 2025

@bardliao thanks for pointing out, I always took the patches from topic/sof-dev but I get your point. Will send v2 to community based on sof-dev-rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants