Skip to content

Commit

Permalink
dt-bindings: dma: Add apple,admac binding
Browse files Browse the repository at this point in the history
The Audio DMA Controller (ADMAC) is used to load and store audio
samples from/to system memory. It is present on Apple SoCs from
the "Apple Silicon" family.

Signed-off-by: Martin Povišer <povik@protonmail.com>
  • Loading branch information
povik authored and svenpeter42 committed Dec 20, 2021
1 parent 322a067 commit 5e84d7a
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions Documentation/devicetree/bindings/dma/apple,admac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/dma/apple,admac.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple Audio DMA Controller (ADMAC)

description: |
The Audio DMA Controller (ADMAC) is used to load and store audio
samples from/to system memory. It is present on Apple SoCs
from the "Apple Silicon" family.
maintainers:
- Martin Povišer <povik@protonmail.com>

allOf:
- $ref: "dma-controller.yaml#"

properties:
compatible:
items:
- const: apple,t8103-admac
- const: apple,admac

reg:
maxItems: 1

'#dma-cells':
const: 1

interrupts:
maxItems: 1

required:
- compatible
- reg
- interrupts
- '#dma-cells'
- dma-channels

additionalProperties: false

examples:
- |
dart_sio: iommu@235004000 {
compatible = "apple,t8103-dart", "apple,dart";
reg = <0x2 0x35004000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 635 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
};
admac: dma-controller@238200000 {
compatible = "apple,t8103-admac", "apple,admac";
reg = <0x2 0x38200000 0x0 0x34000>;
dma-channels = <12>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 626 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <1>;
iommus = <&dart_sio 2>;
};

0 comments on commit 5e84d7a

Please sign in to comment.