-
Notifications
You must be signed in to change notification settings - Fork 43
dmaengine: Add Peripheral DMA support for SpacemiT K3 SoC #321
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
Merged
sterling-teng
merged 15 commits into
RVCK-Project:rvck-6.6
from
EncrowThorne19:dev-dma-k3
Aug 3, 2026
+389
−1,602
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8327bdc
Revert "riscv: config: enable dma driver for spacemit k1"
encrow 03f9deb
Revert "driver: k1: add dma driver support for spacemit k1"
encrow c2eeddf
dt-bindings: dma: Add SpacemiT K1 PDMA controller
5ac0c5a
dt-bindings: dmaengine: Add SpacemiT K3 DMA compatible string
242cb4f
dmaengine: mmp_pdma: Convert to platform remove callback returning void
f72bb16
dmaengine: Drop unnecessary of_match_device() calls
robherring e85b900
dmaengine: mmp_pdma: Add clock support
6b04aeb
dmaengine: mmp_pdma: Add reset controller support
d89ad36
dmaengine: mmp_pdma: Add operations structure for controller abstraction
52c39b2
dmaengine: mmp_pdma: Add SpacemiT K1 PDMA support with 64-bit addressing
0f40905
dmaengine: mmp_pdma: fix DMA mask handling
ee05f45
dmaengine: mmp_pdma: refactor DRCMR access with helper function
6e2dd05
dmaengine: mmp_pdma: add SpacemiT K3 support
f374ade
riscv: dts: spacemit: Add PDMA controller node for K3 SoC
TroyMitchell911 4ef875d
riscv: config: enable dma driver for spacemit k1 and k3
encrow 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
70 changes: 70 additions & 0 deletions
70
Documentation/devicetree/bindings/dma/spacemit,k1-pdma.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,70 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/dma/spacemit,k1-pdma.yaml# | ||
| $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
|
||
| title: SpacemiT K1 PDMA Controller | ||
|
|
||
| maintainers: | ||
| - Guodong Xu <guodong@riscstar.com> | ||
|
|
||
| allOf: | ||
| - $ref: dma-controller.yaml# | ||
|
|
||
| properties: | ||
| compatible: | ||
| enum: | ||
| - spacemit,k1-pdma | ||
| - spacemit,k3-pdma | ||
|
|
||
| reg: | ||
| maxItems: 1 | ||
|
|
||
| interrupts: | ||
| description: Shared interrupt for all DMA channels | ||
| maxItems: 1 | ||
|
|
||
| clocks: | ||
| maxItems: 1 | ||
|
|
||
| resets: | ||
| maxItems: 1 | ||
|
|
||
| dma-channels: | ||
| maximum: 16 | ||
|
|
||
| '#dma-cells': | ||
| const: 1 | ||
| description: | ||
| The DMA request number for the peripheral device. | ||
|
|
||
| required: | ||
| - compatible | ||
| - reg | ||
| - interrupts | ||
| - clocks | ||
| - resets | ||
| - dma-channels | ||
| - '#dma-cells' | ||
|
|
||
| unevaluatedProperties: false | ||
|
|
||
| examples: | ||
| - | | ||
| #include <dt-bindings/clock/spacemit,k1-syscon.h> | ||
|
|
||
| soc { | ||
| #address-cells = <2>; | ||
| #size-cells = <2>; | ||
|
|
||
| dma-controller@d4000000 { | ||
| compatible = "spacemit,k1-pdma"; | ||
| reg = <0x0 0xd4000000 0x0 0x4000>; | ||
| interrupts = <72>; | ||
| clocks = <&syscon_apmu CLK_DMA>; | ||
| resets = <&syscon_apmu RESET_DMA>; | ||
| dma-channels = <16>; | ||
| #dma-cells = <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
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
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.