1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/dma/apple,a 4 $id: http://devicetree.org/schemas/dma/apple,admac.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Apple Audio DMA Controller (ADMAC) 7 title: Apple Audio DMA Controller (ADMAC) 8 8 9 description: | 9 description: | 10 Apple's Audio DMA Controller (ADMAC) is used 10 Apple's Audio DMA Controller (ADMAC) is used to fetch and store audio samples 11 on SoCs from the "Apple Silicon" family. 11 on SoCs from the "Apple Silicon" family. 12 12 13 The controller has been seen with up to 24 c 13 The controller has been seen with up to 24 channels. Even-numbered channels 14 are TX-only, odd-numbered are RX-only. Indiv 14 are TX-only, odd-numbered are RX-only. Individual channels are coupled to 15 fixed device endpoints. 15 fixed device endpoints. 16 16 17 maintainers: 17 maintainers: 18 - Martin Povišer <povik+lin@cutebit.org> 18 - Martin Povišer <povik+lin@cutebit.org> 19 19 20 allOf: 20 allOf: 21 - $ref: dma-controller.yaml# 21 - $ref: dma-controller.yaml# 22 22 23 properties: 23 properties: 24 compatible: 24 compatible: 25 items: 25 items: 26 - enum: 26 - enum: 27 - apple,t6000-admac 27 - apple,t6000-admac 28 - apple,t8103-admac 28 - apple,t8103-admac 29 - apple,t8112-admac << 30 - const: apple,admac 29 - const: apple,admac 31 30 32 reg: 31 reg: 33 maxItems: 1 32 maxItems: 1 34 33 35 '#dma-cells': 34 '#dma-cells': 36 const: 1 35 const: 1 37 description: 36 description: 38 Clients specify a single cell with chann 37 Clients specify a single cell with channel number. 39 38 40 dma-channels: 39 dma-channels: 41 maximum: 24 40 maximum: 24 42 41 43 interrupts: 42 interrupts: 44 minItems: 4 43 minItems: 4 45 maxItems: 4 44 maxItems: 4 46 description: 45 description: 47 Interrupts that correspond to the 4 IRQ 46 Interrupts that correspond to the 4 IRQ outputs of the controller. Usually 48 only one of the controller outputs will 47 only one of the controller outputs will be connected as an usable interrupt 49 source. The remaining interrupts will be 48 source. The remaining interrupts will be left without a valid value, e.g. 50 in an interrupts-extended list the disco 49 in an interrupts-extended list the disconnected positions will contain 51 an empty phandle reference <0>. 50 an empty phandle reference <0>. 52 51 53 iommus: 52 iommus: 54 minItems: 1 53 minItems: 1 55 maxItems: 2 54 maxItems: 2 56 55 57 power-domains: 56 power-domains: 58 maxItems: 1 57 maxItems: 1 59 58 60 resets: 59 resets: 61 maxItems: 1 60 maxItems: 1 62 61 63 required: 62 required: 64 - compatible 63 - compatible 65 - reg 64 - reg 66 - '#dma-cells' 65 - '#dma-cells' 67 - dma-channels 66 - dma-channels 68 - interrupts 67 - interrupts 69 68 70 additionalProperties: false 69 additionalProperties: false 71 70 72 examples: 71 examples: 73 - | 72 - | 74 #include <dt-bindings/interrupt-controller 73 #include <dt-bindings/interrupt-controller/apple-aic.h> 75 #include <dt-bindings/interrupt-controller 74 #include <dt-bindings/interrupt-controller/irq.h> 76 75 77 aic: interrupt-controller { 76 aic: interrupt-controller { 78 interrupt-controller; 77 interrupt-controller; 79 #interrupt-cells = <3>; 78 #interrupt-cells = <3>; 80 }; 79 }; 81 80 82 admac: dma-controller@238200000 { 81 admac: dma-controller@238200000 { 83 compatible = "apple,t8103-admac", "apple 82 compatible = "apple,t8103-admac", "apple,admac"; 84 reg = <0x38200000 0x34000>; 83 reg = <0x38200000 0x34000>; 85 dma-channels = <24>; 84 dma-channels = <24>; 86 interrupts-extended = <0>, 85 interrupts-extended = <0>, 87 <&aic AIC_IRQ 626 86 <&aic AIC_IRQ 626 IRQ_TYPE_LEVEL_HIGH>, 88 <0>, 87 <0>, 89 <0>; 88 <0>; 90 #dma-cells = <1>; 89 #dma-cells = <1>; 91 }; 90 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.