Path: blob/master/Documentation/devicetree/bindings/dma/apple,admac.yaml
29282 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/dma/apple,admac.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Apple Audio DMA Controller (ADMAC)78description: |9Apple's Audio DMA Controller (ADMAC) is used to fetch and store audio samples10on SoCs from the "Apple Silicon" family.1112The controller has been seen with up to 24 channels. Even-numbered channels13are TX-only, odd-numbered are RX-only. Individual channels are coupled to14fixed device endpoints.1516maintainers:17- Martin Povišer <povik+lin@cutebit.org>1819allOf:20- $ref: dma-controller.yaml#2122properties:23compatible:24oneOf:25- items:26- const: apple,t6020-admac27- const: apple,t8103-admac28- items:29- enum:30# Do not add additional SoC to this list.31- apple,t6000-admac32- apple,t8103-admac33- apple,t8112-admac34- const: apple,admac3536reg:37maxItems: 13839'#dma-cells':40const: 141description:42Clients specify a single cell with channel number.4344dma-channels:45maximum: 244647interrupts:48minItems: 449maxItems: 450description:51Interrupts that correspond to the 4 IRQ outputs of the controller. Usually52only one of the controller outputs will be connected as an usable interrupt53source. The remaining interrupts will be left without a valid value, e.g.54in an interrupts-extended list the disconnected positions will contain55an empty phandle reference <0>.5657iommus:58minItems: 159maxItems: 26061power-domains:62maxItems: 16364resets:65maxItems: 16667required:68- compatible69- reg70- '#dma-cells'71- dma-channels72- interrupts7374additionalProperties: false7576examples:77- |78#include <dt-bindings/interrupt-controller/apple-aic.h>79#include <dt-bindings/interrupt-controller/irq.h>8081aic: interrupt-controller {82interrupt-controller;83#interrupt-cells = <3>;84};8586admac: dma-controller@238200000 {87compatible = "apple,t8103-admac", "apple,admac";88reg = <0x38200000 0x34000>;89dma-channels = <24>;90interrupts-extended = <0>,91<&aic AIC_IRQ 626 IRQ_TYPE_LEVEL_HIGH>,92<0>,93<0>;94#dma-cells = <1>;95};969798