2023-02-22 10:22:31 -07:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/crypto/qcom-qce.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Qualcomm crypto engine driver
|
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Bhupesh Sharma <bhupesh.sharma@linaro.org>
|
|
|
|
|
|
|
|
description:
|
|
|
|
This document defines the binding for the QCE crypto
|
|
|
|
controller found on Qualcomm parts.
|
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
2023-02-22 10:22:35 -07:00
|
|
|
oneOf:
|
|
|
|
- const: qcom,crypto-v5.1
|
|
|
|
deprecated: true
|
|
|
|
description: Kept only for ABI backward compatibility
|
|
|
|
|
|
|
|
- const: qcom,crypto-v5.4
|
|
|
|
deprecated: true
|
|
|
|
description: Kept only for ABI backward compatibility
|
|
|
|
|
2023-05-26 12:22:04 -07:00
|
|
|
- items:
|
|
|
|
- enum:
|
|
|
|
- qcom,ipq4019-qce
|
|
|
|
- qcom,sm8150-qce
|
|
|
|
- const: qcom,qce
|
|
|
|
|
2023-02-22 10:22:35 -07:00
|
|
|
- items:
|
|
|
|
- enum:
|
|
|
|
- qcom,ipq6018-qce
|
|
|
|
- qcom,ipq8074-qce
|
2023-07-14 02:30:32 -07:00
|
|
|
- qcom,ipq9574-qce
|
2023-02-22 10:22:35 -07:00
|
|
|
- qcom,msm8996-qce
|
2023-05-26 12:22:05 -07:00
|
|
|
- qcom,qcm2290-qce
|
2023-02-22 10:22:35 -07:00
|
|
|
- qcom,sdm845-qce
|
2023-05-26 12:22:05 -07:00
|
|
|
- qcom,sm6115-qce
|
2023-02-22 10:22:35 -07:00
|
|
|
- const: qcom,ipq4019-qce
|
|
|
|
- const: qcom,qce
|
|
|
|
|
|
|
|
- items:
|
|
|
|
- enum:
|
2023-12-14 03:35:59 -07:00
|
|
|
- qcom,sc7280-qce
|
2024-01-05 09:15:43 -07:00
|
|
|
- qcom,sm6350-qce
|
2023-02-22 10:22:35 -07:00
|
|
|
- qcom,sm8250-qce
|
|
|
|
- qcom,sm8350-qce
|
|
|
|
- qcom,sm8450-qce
|
|
|
|
- qcom,sm8550-qce
|
2023-10-25 00:28:22 -07:00
|
|
|
- qcom,sm8650-qce
|
2023-02-22 10:22:35 -07:00
|
|
|
- const: qcom,sm8150-qce
|
|
|
|
- const: qcom,qce
|
2023-02-22 10:22:31 -07:00
|
|
|
|
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
clocks:
|
2023-05-26 12:22:05 -07:00
|
|
|
minItems: 1
|
|
|
|
maxItems: 3
|
2023-02-22 10:22:31 -07:00
|
|
|
|
|
|
|
clock-names:
|
2023-05-26 12:22:05 -07:00
|
|
|
minItems: 1
|
|
|
|
maxItems: 3
|
2023-02-22 10:22:31 -07:00
|
|
|
|
2023-02-22 10:22:34 -07:00
|
|
|
iommus:
|
|
|
|
minItems: 1
|
|
|
|
maxItems: 8
|
|
|
|
description:
|
|
|
|
phandle to apps_smmu node with sid mask.
|
|
|
|
|
2023-02-22 10:22:33 -07:00
|
|
|
interconnects:
|
|
|
|
maxItems: 1
|
|
|
|
description:
|
|
|
|
Interconnect path between qce crypto and main memory.
|
|
|
|
|
|
|
|
interconnect-names:
|
|
|
|
const: memory
|
|
|
|
|
2023-02-22 10:22:31 -07:00
|
|
|
dmas:
|
|
|
|
items:
|
|
|
|
- description: DMA specifiers for rx dma channel.
|
|
|
|
- description: DMA specifiers for tx dma channel.
|
|
|
|
|
|
|
|
dma-names:
|
|
|
|
items:
|
|
|
|
- const: rx
|
|
|
|
- const: tx
|
|
|
|
|
2023-02-22 10:22:36 -07:00
|
|
|
allOf:
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,crypto-v5.1
|
|
|
|
- qcom,crypto-v5.4
|
2023-05-26 12:22:05 -07:00
|
|
|
- qcom,ipq6018-qce
|
|
|
|
- qcom,ipq8074-qce
|
2023-12-12 03:00:43 -07:00
|
|
|
- qcom,ipq9574-qce
|
2023-05-26 12:22:05 -07:00
|
|
|
- qcom,msm8996-qce
|
|
|
|
- qcom,sdm845-qce
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
maxItems: 3
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: iface
|
|
|
|
- const: bus
|
|
|
|
- const: core
|
|
|
|
required:
|
|
|
|
- clocks
|
|
|
|
- clock-names
|
2023-02-22 10:22:36 -07:00
|
|
|
|
2023-05-26 12:22:05 -07:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,qcm2290-qce
|
|
|
|
- qcom,sm6115-qce
|
2023-02-22 10:22:36 -07:00
|
|
|
then:
|
2023-05-26 12:22:05 -07:00
|
|
|
properties:
|
|
|
|
clocks:
|
|
|
|
maxItems: 1
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: core
|
2023-02-22 10:22:36 -07:00
|
|
|
required:
|
|
|
|
- clocks
|
|
|
|
- clock-names
|
|
|
|
|
2023-12-12 03:00:44 -07:00
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
|
|
|
- qcom,sm8150-qce
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
clocks: false
|
|
|
|
clock-names: false
|
|
|
|
|
2023-02-22 10:22:31 -07:00
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- dmas
|
|
|
|
- dma-names
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
#include <dt-bindings/clock/qcom,gcc-apq8084.h>
|
|
|
|
crypto-engine@fd45a000 {
|
2023-02-22 10:22:35 -07:00
|
|
|
compatible = "qcom,ipq6018-qce", "qcom,ipq4019-qce", "qcom,qce";
|
2023-02-22 10:22:31 -07:00
|
|
|
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";
|
2023-02-22 10:22:34 -07:00
|
|
|
iommus = <&apps_smmu 0x584 0x0011>,
|
|
|
|
<&apps_smmu 0x586 0x0011>,
|
|
|
|
<&apps_smmu 0x594 0x0011>,
|
|
|
|
<&apps_smmu 0x596 0x0011>;
|
2023-02-22 10:22:31 -07:00
|
|
|
};
|