xref: /freebsd-src/sys/contrib/device-tree/Bindings/dma/qcom,bam-dma.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/dma/qcom,bam-dma.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7b97ee269SEmmanuel Vadottitle: Qualcomm Technologies Inc BAM DMA controller
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Andy Gross <agross@kernel.org>
117ef62cebSEmmanuel Vadot  - Bjorn Andersson <andersson@kernel.org>
12b97ee269SEmmanuel Vadot
13b97ee269SEmmanuel VadotallOf:
14cb7aa33aSEmmanuel Vadot  - $ref: dma-controller.yaml#
15b97ee269SEmmanuel Vadot
16b97ee269SEmmanuel Vadotproperties:
17b97ee269SEmmanuel Vadot  compatible:
18*aa1a8ff2SEmmanuel Vadot    oneOf:
19*aa1a8ff2SEmmanuel Vadot      - enum:
20b97ee269SEmmanuel Vadot          # APQ8064, IPQ8064 and MSM8960
21b97ee269SEmmanuel Vadot          - qcom,bam-v1.3.0
22b97ee269SEmmanuel Vadot          # MSM8974, APQ8074 and APQ8084
23b97ee269SEmmanuel Vadot          - qcom,bam-v1.4.0
24*aa1a8ff2SEmmanuel Vadot          # MSM8916, SDM630
25b97ee269SEmmanuel Vadot          - qcom,bam-v1.7.0
26*aa1a8ff2SEmmanuel Vadot      - items:
27*aa1a8ff2SEmmanuel Vadot          - enum:
28*aa1a8ff2SEmmanuel Vadot              # SDM845, SM6115, SM8150, SM8250 and QCM2290
29*aa1a8ff2SEmmanuel Vadot              - qcom,bam-v1.7.4
30*aa1a8ff2SEmmanuel Vadot          - const: qcom,bam-v1.7.0
31b97ee269SEmmanuel Vadot
32b97ee269SEmmanuel Vadot  clocks:
33b97ee269SEmmanuel Vadot    maxItems: 1
34b97ee269SEmmanuel Vadot
35b97ee269SEmmanuel Vadot  clock-names:
36b97ee269SEmmanuel Vadot    items:
37b97ee269SEmmanuel Vadot      - const: bam_clk
38b97ee269SEmmanuel Vadot
39b97ee269SEmmanuel Vadot  "#dma-cells":
40b97ee269SEmmanuel Vadot    const: 1
41b97ee269SEmmanuel Vadot
42b97ee269SEmmanuel Vadot  interrupts:
43b97ee269SEmmanuel Vadot    maxItems: 1
44b97ee269SEmmanuel Vadot
45b97ee269SEmmanuel Vadot  iommus:
46b97ee269SEmmanuel Vadot    minItems: 1
47*aa1a8ff2SEmmanuel Vadot    maxItems: 6
48b97ee269SEmmanuel Vadot
49b97ee269SEmmanuel Vadot  num-channels:
50b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
51b97ee269SEmmanuel Vadot    description:
52b97ee269SEmmanuel Vadot      Indicates supported number of DMA channels in a remotely controlled bam.
53b97ee269SEmmanuel Vadot
54b97ee269SEmmanuel Vadot  qcom,controlled-remotely:
55b97ee269SEmmanuel Vadot    type: boolean
56b97ee269SEmmanuel Vadot    description:
57*aa1a8ff2SEmmanuel Vadot      Indicates that the bam is controlled by remote processor i.e. execution
58b97ee269SEmmanuel Vadot      environment.
59b97ee269SEmmanuel Vadot
60b97ee269SEmmanuel Vadot  qcom,ee:
61b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
62b97ee269SEmmanuel Vadot    minimum: 0
63b97ee269SEmmanuel Vadot    maximum: 7
64b97ee269SEmmanuel Vadot    description:
65b97ee269SEmmanuel Vadot      Indicates the active Execution Environment identifier (0-7) used in the
66b97ee269SEmmanuel Vadot      secure world.
67b97ee269SEmmanuel Vadot
68b97ee269SEmmanuel Vadot  qcom,num-ees:
69b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
70b97ee269SEmmanuel Vadot    description:
71b97ee269SEmmanuel Vadot      Indicates supported number of Execution Environments in a remotely
72b97ee269SEmmanuel Vadot      controlled bam.
73b97ee269SEmmanuel Vadot
74b97ee269SEmmanuel Vadot  qcom,powered-remotely:
75b97ee269SEmmanuel Vadot    type: boolean
76b97ee269SEmmanuel Vadot    description:
77b97ee269SEmmanuel Vadot      Indicates that the bam is powered up by a remote processor but must be
78b97ee269SEmmanuel Vadot      initialized by the local processor.
79b97ee269SEmmanuel Vadot
80b97ee269SEmmanuel Vadot  reg:
81b97ee269SEmmanuel Vadot    maxItems: 1
82b97ee269SEmmanuel Vadot
83b97ee269SEmmanuel Vadotrequired:
84b97ee269SEmmanuel Vadot  - compatible
85b97ee269SEmmanuel Vadot  - "#dma-cells"
86b97ee269SEmmanuel Vadot  - interrupts
87b97ee269SEmmanuel Vadot  - qcom,ee
88b97ee269SEmmanuel Vadot  - reg
89b97ee269SEmmanuel Vadot
90*aa1a8ff2SEmmanuel VadotanyOf:
91*aa1a8ff2SEmmanuel Vadot  - required:
92*aa1a8ff2SEmmanuel Vadot      - qcom,powered-remotely
93*aa1a8ff2SEmmanuel Vadot  - required:
94*aa1a8ff2SEmmanuel Vadot      - qcom,controlled-remotely
95*aa1a8ff2SEmmanuel Vadot  - required:
96*aa1a8ff2SEmmanuel Vadot      - clocks
97*aa1a8ff2SEmmanuel Vadot      - clock-names
98*aa1a8ff2SEmmanuel Vadot
99b97ee269SEmmanuel VadotadditionalProperties: false
100b97ee269SEmmanuel Vadot
101b97ee269SEmmanuel Vadotexamples:
102b97ee269SEmmanuel Vadot  - |
103b97ee269SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
104b97ee269SEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-msm8974.h>
105b97ee269SEmmanuel Vadot
106b97ee269SEmmanuel Vadot    dma-controller@f9944000 {
107b97ee269SEmmanuel Vadot        compatible = "qcom,bam-v1.4.0";
1087ef62cebSEmmanuel Vadot        reg = <0xf9944000 0x19000>;
1097ef62cebSEmmanuel Vadot        interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
110b97ee269SEmmanuel Vadot        clocks = <&gcc GCC_BLSP2_AHB_CLK>;
111b97ee269SEmmanuel Vadot        clock-names = "bam_clk";
112b97ee269SEmmanuel Vadot        #dma-cells = <1>;
113b97ee269SEmmanuel Vadot        qcom,ee = <0>;
114b97ee269SEmmanuel Vadot    };
115b97ee269SEmmanuel Vadot...
116