mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
94 lines
2.5 KiB
Diff
94 lines
2.5 KiB
Diff
From c67e6dd3d9c5590394faf5138021ba7ebe306343 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Martin=20Povi=C5=A1er?= <povik+lin@cutebit.org>
|
|
Date: Sat, 19 Feb 2022 09:50:39 +0100
|
|
Subject: [PATCH 070/171] dt-bindings: dma: Add apple,admac binding
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
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+lin@cutebit.org>
|
|
---
|
|
.../devicetree/bindings/dma/apple,admac.yaml | 65 +++++++++++++++++++
|
|
1 file changed, 65 insertions(+)
|
|
create mode 100644 Documentation/devicetree/bindings/dma/apple,admac.yaml
|
|
|
|
diff --git a/Documentation/devicetree/bindings/dma/apple,admac.yaml b/Documentation/devicetree/bindings/dma/apple,admac.yaml
|
|
new file mode 100644
|
|
index 000000000000..34ede3b0de2c
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/dma/apple,admac.yaml
|
|
@@ -0,0 +1,65 @@
|
|
+# 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:
|
|
+ - |
|
|
+ #include <dt-bindings/interrupt-controller/apple-aic.h>
|
|
+ #include <dt-bindings/interrupt-controller/irq.h>
|
|
+
|
|
+ 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>;
|
|
+ };
|
|
\ No newline at end of file
|
|
--
|
|
2.34.1
|
|
|