Qualcomm Technologies Inc GPI DMA controller

Schema identifier ($id): "http://devicetree.org/schemas/dma/qcom,gpi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"

QCOM GPI DMA controller provides DMA capabilities for peripheral buses such as I2C, UART, and SPI.

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

Allowed values (enum): "qcom,sdm845-gpi-dma", "qcom,sm6350-gpi-dma"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,glymur-gpi-dma", "qcom,kaanapali-gpi-dma", "qcom,milos-gpi-dma", "qcom,qcm2290-gpi-dma", "qcom,qcs8300-gpi-dma", "qcom,qdu1000-gpi-dma", "qcom,sa8775p-gpi-dma", "qcom,sar2130p-gpi-dma", "qcom,sc7280-gpi-dma", "qcom,sc8280xp-gpi-dma", "qcom,sdx75-gpi-dma", "qcom,sm6115-gpi-dma", "qcom,sm6375-gpi-dma", "qcom,sm8350-gpi-dma", "qcom,sm8450-gpi-dma", "qcom,sm8550-gpi-dma", "qcom,sm8650-gpi-dma", "qcom,sm8750-gpi-dma", "qcom,x1e80100-gpi-dma"

Item 2

Exact value (const): "qcom,sm6350-gpi-dma"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "qcom,qcs615-gpi-dma", "qcom,sdm670-gpi-dma", "qcom,sm6125-gpi-dma", "qcom,sm8150-gpi-dma", "qcom,sm8250-gpi-dma"

Item 2

Exact value (const): "qcom,sdm845-gpi-dma"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Interrupt lines for each GPI instance

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

#dma-cells — required here #

Exact value (const): 3

DMA clients must use the format described in dma.txt, giving a phandle to the DMA controller plus the following 3 integer cells: - channel: if set to 0xffffffff, any available channel will be allocated
  for the client. Otherwise, the exact channel specified will be used.
- seid: serial id of the client as defined in the SoC documentation. - client: type of the client as defined in dt-bindings/dma/qcom-gpi.h

iommus — required here #

Maximum number of items (maxItems): 1

dma-channels — required here #

Maximum value (maximum): 31

dma-channel-mask — required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "iommus", "dma-channels", "dma-channel-mask"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/dma/qcom-gpi.h>
gpi_dma0: dma-controller@800000 {
    compatible = "qcom,sdm845-gpi-dma";
    #dma-cells = <3>;
    reg = <0x00800000 0x60000>;
    iommus = <&apps_smmu 0x0016 0x0>;
    dma-channels = <13>;
    dma-channel-mask = <0xfa>;
    interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page