Skip to content

Conversation

@andrew-mtk
Copy link
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
Copy link
Collaborator

sofci commented Oct 7, 2025

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 <[email protected]>
Add configuration for Mediatek MT8365 board

Signed-off-by: Andrew Perepech <[email protected]>
Add MT8365 platform to the SOF Zephyr build script

Signed-off-by: Andrew Perepech <[email protected]>
 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 <[email protected]>
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 <[email protected]>
Copy link
Member

@lgirdwood lgirdwood left a comment

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
Copy link
Collaborator

kv2019i commented Oct 16, 2025

test this please

@kv2019i
Copy link
Collaborator

kv2019i commented Oct 16, 2025

@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
Contributor Author

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

@andrew-mtk
Copy link
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
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
Member

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

@lrudyX
Copy link

lrudyX commented Oct 20, 2025

@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