Skip to content

Add Zephyr support for Mediatek MT8365 platform#10285

Merged
lgirdwood merged 5 commits into
thesofproject:mainfrom
andrew-mtk:mt8365-v4
Oct 22, 2025
Merged

Add Zephyr support for Mediatek MT8365 platform#10285
lgirdwood merged 5 commits into
thesofproject:mainfrom
andrew-mtk:mt8365-v4

Conversation

@andrew-mtk

Copy link
Copy Markdown
Contributor

Add Zephyr based SOF firmware support for Mediatek MT8365 platform. This PR depends on zephyrproject-rtos/zephyr#96824 and zephyrproject-rtos/hal_xtensa#36

@sofci

sofci commented Oct 7, 2025

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

reply test this please to run this test once

Add Zephyr support for MTK MT8365 platform

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
Add configuration for Mediatek MT8365 board

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
Add MT8365 platform to the SOF Zephyr build script

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
 Allow creating DAI configs without .fs property. MT8365 afe_tdm_in and
 afe_tdm_out DAIs does not have register to configure sampling rate.

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
sram0 memory region holds vectors and heap. On MT8365 platform it is
assigned to DRAM. Allocate heap on MT8365 platform on ADSP SRAM instead.

Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrew-mtk the platform directory will be going away soon as all platform config will be defined in Zephyr. What drivers does Mediatek still have to upstream in Zephyr ?

@kv2019i

kv2019i commented Oct 16, 2025

Copy link
Copy Markdown
Collaborator

test this please

@kv2019i

kv2019i commented Oct 16, 2025

Copy link
Copy Markdown
Collaborator

@andrew-mtk Given this config is in the "extra-configs" in the build script, there is no hard dependency to the Zephyr PRs. Let me know if you are ok to proceed and merge this to SOF (or do you want to wait until the Zephyr PRs are merged). I kicked the mandatory CIs and they should complete today.

@andrew-mtk

Copy link
Copy Markdown
Contributor Author

@kv2019i, I'm ok if you go ahead and merge this PR.

@andrew-mtk

Copy link
Copy Markdown
Contributor Author

@lgirdwood , Mediatek SOC still have dependency on AFE driver. The platform/mtk directory has implementation for DAI initialization code and IPC handlers.

@lgirdwood

Copy link
Copy Markdown
Member

@lgirdwood , Mediatek SOC still have dependency on AFE driver. The platform/mtk directory has implementation for DAI initialization code and IPC handlers.

Ok, lets discuss this at next TSC meeting as we do still have some legacy non Zephyr drivers that are being used (and we really need to port these drivers into Zephyr and remove in SOF). One all drivers are in Zephyr, we can remove all abstraction, use native APIs and simplify code.

@lgirdwood

Copy link
Copy Markdown
Member

@lrudyX this should not fail Intel CI as its not being tested, good to merge ?

@lrudyX

lrudyX commented Oct 20, 2025

Copy link
Copy Markdown

@lrudyX this should not fail Intel CI as its not being tested, good to merge ?

I will rerun tests

@lgirdwood lgirdwood merged commit 55c51d4 into thesofproject:main Oct 22, 2025
36 of 45 checks passed
@andrew-mtk andrew-mtk deleted the mt8365-v4 branch October 23, 2025 22:36
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.

7 participants