Qualcomm crypto engine driver
Schema identifier ($id): "http://devicetree.org/schemas/crypto/qcom-qce.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Konrad Dybcio <konradybcio@kernel.org>"
This document defines the binding for the QCE crypto controller found on Qualcomm parts.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"qcom,crypto-v5.1"Deprecated (
deprecated):trueKept only for ABI backward compatibility
Rule 2
Exact value (
const):"qcom,crypto-v5.4"Deprecated (
deprecated):trueKept only for ABI backward compatibility
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,ipq4019-qce","qcom,sm8150-qce"Item 2
Exact value (
const):"qcom,qce"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,ipq6018-qce","qcom,ipq8074-qce","qcom,ipq9574-qce","qcom,msm8996-qce","qcom,qcm2290-qce","qcom,sdm845-qce","qcom,sm6115-qce"Item 2
Exact value (
const):"qcom,ipq4019-qce"Item 3
Exact value (
const):"qcom,qce"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,kaanapali-qce","qcom,qcs615-qce","qcom,qcs8300-qce","qcom,sa8775p-qce","qcom,sc7280-qce","qcom,sm6350-qce","qcom,sm8250-qce","qcom,sm8350-qce","qcom,sm8450-qce","qcom,sm8550-qce","qcom,sm8650-qce","qcom,sm8750-qce","qcom,x1e80100-qce"Item 2
Exact value (
const):"qcom,sm8150-qce"Item 3
Exact value (
const):"qcom,qce"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
phandle to apps_smmu node with sid mask.
interconnects — not listed as required here #
Maximum number of items (maxItems): 1
Interconnect path between qce crypto and main memory.
interconnect-names — not listed as required here #
Exact value (const): "memory"
dmas — required here #
Array item rules (items) #
Item 1
DMA specifiers for rx dma channel.
Item 2
DMA specifiers for tx dma channel.
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,crypto-v5.1","qcom,crypto-v5.4","qcom,ipq6018-qce","qcom,ipq8074-qce","qcom,ipq9574-qce","qcom,msm8996-qce","qcom,sdm845-qce"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMaximum number of items (
maxItems):3
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"iface"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"core"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,qcm2290-qce","qcom,sm6115-qce"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMaximum number of items (
maxItems):1
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"core"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required here
false— Not permitted by this property rule.
clock-names— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "dmas", "dma-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-apq8084.h>
crypto-engine@fd45a000 {
compatible = "qcom,ipq6018-qce", "qcom,ipq4019-qce", "qcom,qce";
reg = <0xfd45a000 0x6000>;
clocks = <&gcc GCC_CE2_AHB_CLK>,
<&gcc GCC_CE2_AXI_CLK>,
<&gcc GCC_CE2_CLK>;
clock-names = "iface", "bus", "core";
dmas = <&cryptobam 2>, <&cryptobam 3>;
dma-names = "rx", "tx";
iommus = <&apps_smmu 0x584 0x0011>,
<&apps_smmu 0x586 0x0011>,
<&apps_smmu 0x594 0x0011>,
<&apps_smmu 0x596 0x0011>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)