-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add Zephyr support for Mediatek MT8365 platform #96824
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
andrew-mtk
wants to merge
4
commits into
zephyrproject-rtos:main
Choose a base branch
from
andrew-mtk:mt8365-v2
base: main
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.
+472
−65
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0ca0f19
soc/mediatek/adsp: Add MT8365 SOC
andrew-mtk de6c67a
drivers/timer: Add support for MT8365 timer
andrew-mtk 80fdfab
boards/mediatek: Add board support files for MT8365 SOC
andrew-mtk 556fb9b
boards/mediatek: Add documentation for MT8365
andrew-mtk 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
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,5 @@ | ||
| # Copyright 2025 Mediatek | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config BOARD_MT8365 | ||
| select SOC_MT8365 |
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,111 @@ | ||
| /* Copyright 2025 Mediatek | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
| afe_dl1: afe_dl1 { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "DL1"; | ||
| dai-id = <0>; | ||
| downlink; | ||
| base = <0x00000000 0x11220040>; | ||
| cur = <0x00000000 0x11220044>; | ||
| end = <0x00000000 0x11220048>; | ||
| fs = <0x11220014 0 4>; | ||
| mono = <0x11220014 21 1>; | ||
| enable = <0x11220010 1 1>; | ||
| hd = <0x112203d8 16 1>; | ||
| }; | ||
|
|
||
| afe_dl2: afe_dl2 { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "DL2"; | ||
| dai-id = <1>; | ||
| downlink; | ||
| base = <0x00000000 0x11220050>; | ||
| cur = <0x00000000 0x11220054>; | ||
| end = <0x00000000 0x11220058>; | ||
| fs = <0x11220014 4 4>; | ||
| mono = <0x11220014 22 1>; | ||
| enable = <0x11220010 2 1>; | ||
| hd = <0x112203d8 18 1>; | ||
| }; | ||
|
|
||
| afe_tdm_out: afe_tdm_out { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "TDM_OUT"; | ||
| dai-id = <4>; | ||
| downlink; | ||
| base = <0x00000000 0x11220374>; | ||
| cur = <0x00000000 0x11220378>; | ||
| end = <0x00000000 0x1122037c>; | ||
| enable = <0x11220370 0 1>; | ||
| hd = <0x112203d8 28 1>; | ||
| }; | ||
|
|
||
| afe_awb: afe_awb { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "AWB"; | ||
| dai-id = <2>; | ||
| base = <0x00000000 0x11220070>; | ||
| cur = <0x00000000 0x1122007c>; | ||
| end = <0x00000000 0x11220078>; | ||
| fs = <0x11220014 12 4>; | ||
| mono = <0x11220014 24 1>; | ||
| enable = <0x11220010 6 1>; | ||
| hd = <0x112203d8 20 1>; | ||
| msb = <0x112200cc 17 1>; | ||
| }; | ||
|
|
||
| afe_vul: afe_vul { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "VUL"; | ||
| dai-id = <3>; | ||
| base = <0x00000000 0x11220080>; | ||
| cur = <0x00000000 0x1122008c>; | ||
| end = <0x00000000 0x11220088>; | ||
| fs = <0x11220014 16 4>; | ||
| mono = <0x11220014 27 1>; | ||
| enable = <0x11220010 3 1>; | ||
| hd = <0x112203d8 22 1>; | ||
| msb = <0x112200cc 20 1>; | ||
| }; | ||
|
|
||
| afe_vul2: afe_vul2 { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "VUL2"; | ||
| dai-id = <5>; | ||
| base = <0x00000000 0x11220350>; | ||
| cur = <0x00000000 0x1122035c>; | ||
| end = <0x00000000 0x11220358>; | ||
| fs = <0x11220010 20 4>; | ||
| mono = <0x11220010 10 1>; | ||
| enable = <0x11220010 9 1>; | ||
| hd = <0x112203d8 14 1>; | ||
| msb = <0x112200cc 21 1>; | ||
| }; | ||
|
|
||
| afe_vul3: afe_vul3 { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "VUL3"; | ||
| dai-id = <6>; | ||
| base = <0x00000000 0x112208c0>; | ||
| cur = <0x00000000 0x112208c4>; | ||
| end = <0x00000000 0x112208c8>; | ||
| fs = <0x11220014 8 4>; | ||
| mono = <0x11220010 13 1>; | ||
| enable = <0x11220010 12 1>; | ||
| hd = <0x112203ec 10 1>; | ||
| msb = <0x112200cc 27 1>; | ||
| }; | ||
|
|
||
| afe_tdm_in: afe_tdm_in { | ||
| compatible = "mediatek,afe"; | ||
| afe-name = "TDM_IN"; | ||
| dai-id = <7>; | ||
| base = <0x00000000 0x112209c4>; | ||
| cur = <0x00000000 0x112209cc>; | ||
| end = <0x00000000 0x112209c8>; | ||
| mono = <0x112209c0 1 1>; | ||
| enable = <0x112209c0 0 1>; | ||
| hd = <0x112203ec 8 1>; | ||
| msb = <0x112200cc 28 1>; | ||
| }; |
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,6 @@ | ||
| boards: | ||
| - name: mt8365 | ||
| full_name: MT8365 ADSP | ||
| vendor: mediatek | ||
| socs: | ||
| - name: mt8365 |
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,80 @@ | ||
| /* Copyright 2025 Mediatek | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
| #include <mem.h> | ||
|
|
||
| /dts-v1/; | ||
| / { | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| sram1: memory@1e000000 { | ||
| device_type = "memory"; | ||
| compatible = "mmio-sram"; | ||
| reg = <0x1e000000 DT_SIZE_K(416)>; | ||
| }; | ||
|
|
||
| sram0: memory@40020000 { | ||
| device_type = "memory"; | ||
| compatible = "mmio-sram"; | ||
| reg = <0x40020000 DT_SIZE_K(256)>; | ||
| }; | ||
|
|
||
| dram0: memory@60000000 { | ||
| device_type = "memory"; | ||
| compatible = "mmio-sram"; | ||
| reg = <0x60000000 DT_SIZE_K(13824)>; | ||
| }; | ||
|
|
||
| dram1: memory@60d80000 { | ||
| device_type = "memory"; | ||
| compatible = "mmio-sram"; | ||
| reg = <0x60d80000 DT_SIZE_K(2560)>; | ||
| }; | ||
|
|
||
| soc { | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
|
|
||
| core_intc: core_intc@0 { | ||
| compatible = "cdns,xtensa-core-intc"; | ||
| reg = <0 4>; | ||
| interrupt-controller; | ||
| #interrupt-cells = <3>; | ||
| }; | ||
|
|
||
| intc1: intc@1d062130 { | ||
| compatible = "mediatek,adsp_intc"; | ||
| interrupt-controller; | ||
| #interrupt-cells = <3>; | ||
| reg = <0x1d062130 4>; | ||
| status-reg = <0x1d062150>; | ||
| interrupts = <1 0 0>; | ||
| mask = <0x3ff>; | ||
| interrupt-parent = <&core_intc>; | ||
| }; | ||
|
|
||
| ostimer64: ostimer64@1d060000 { | ||
| compatible = "mediatek,ostimer64"; | ||
| reg = <0x1d060000 30>; | ||
| }; | ||
|
|
||
| ostimer0: ostimer@1d060040 { | ||
| compatible = "mediatek,ostimer"; | ||
| reg = <0x1d060040 8>; | ||
| interrupt-parent = <&core_intc>; | ||
| interrupts = <2 0 0>; | ||
| }; | ||
|
|
||
| ipi: ipi@1d062114 { | ||
| compatible = "mediatek,ipi"; | ||
| reg = <0x1d062114 4>; | ||
| interrupt-parent = <&intc1>; | ||
| interrupts = < 9 0 0 >; | ||
| }; | ||
|
|
||
| /* Generated code for AFE devices */ | ||
| #include "afe-mt8365.dts" | ||
|
|
||
| }; /* soc */ | ||
| }; |
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,11 @@ | ||
| identifier: mt8365/mt8365/adsp | ||
| name: Mediatek mt8365 Audio DSP | ||
| type: mcu | ||
| arch: xtensa | ||
| toolchain: | ||
| - zephyr | ||
| testing: | ||
| only_tags: | ||
| - kernel | ||
| - sof | ||
| vendor: mediatek |
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
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.