Apple Audio DMA Controller (ADMAC)
Schema identifier ($id): "http://devicetree.org/schemas/dma/apple,admac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Apple's Audio DMA Controller (ADMAC) is used to fetch and store audio samples on SoCs from the "Apple Silicon" family.
The controller has been seen with up to 24 channels. Even-numbered channels are TX-only, odd-numbered are RX-only. Individual channels are coupled to fixed device endpoints.
Maintainers (maintainers): "Martin Povišer <povik+lin@cutebit.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"apple,t6020-admac"Item 2
Exact value (
const):"apple,t8103-admac"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t6000-admac","apple,t8103-admac","apple,t8112-admac"Item 2
Exact value (
const):"apple,admac"
reg — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 1
Clients specify a single cell with channel number.
dma-channels — required here #
Maximum value (maximum): 24
interrupts — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
Interrupts that correspond to the 4 IRQ outputs of the controller. Usually only one of the controller outputs will be connected as an usable interrupt source. The remaining interrupts will be left without a valid value, e.g. in an interrupts-extended list the disconnected positions will contain an empty phandle reference <0>.
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#dma-cells", "dma-channels", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
aic: interrupt-controller {
interrupt-controller;
#interrupt-cells = <3>;
};
admac: dma-controller@238200000 {
compatible = "apple,t8103-admac", "apple,admac";
reg = <0x38200000 0x34000>;
dma-channels = <24>;
interrupts-extended = <0>,
<&aic AIC_IRQ 626 IRQ_TYPE_LEVEL_HIGH>,
<0>,
<0>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 31: Do not add additional SoC to this list.