Message ID | 20230402100509.1154220-1-bhupesh.sharma@linaro.org |
---|---|
Headers | show |
Series | arm64: qcom: Enable Crypto Engine for a few Qualcomm SoCs | expand |
On Mon, 3 Apr 2023 at 11:06, Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> wrote: > > On 4/2/23 13:05, Bhupesh Sharma wrote: > > Currently the compatible list available in 'qce' dt-bindings does not > > support SM8150 and IPQ4019 SoCs directly which may lead to potential > > 'dtbs_check' error(s). > > > > Fix the same. > > > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > > --- > > Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml > > index e375bd981300..90ddf98a6df9 100644 > > --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml > > +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml > > @@ -24,6 +24,12 @@ properties: > > deprecated: true > > description: Kept only for ABI backward compatibility > > > > + - items: > > + - enum: > > + - qcom,ipq4019-qce > > + - qcom,sm8150-qce > > + - const: qcom,qce > > + > > - items: > > - enum: > > - qcom,ipq6018-qce > > Two commit tags given for v2 are missing. Cannot get your comment. Please be more descriptive. Thanks, Bhupesh
On 3.04.2023 08:15, Bhupesh Sharma wrote: > On Mon, 3 Apr 2023 at 11:06, Vladimir Zapolskiy > <vladimir.zapolskiy@linaro.org> wrote: >> >> On 4/2/23 13:05, Bhupesh Sharma wrote: >>> Currently the compatible list available in 'qce' dt-bindings does not >>> support SM8150 and IPQ4019 SoCs directly which may lead to potential >>> 'dtbs_check' error(s). >>> >>> Fix the same. >>> >>> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> >>> --- >>> Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 6 ++++++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml >>> index e375bd981300..90ddf98a6df9 100644 >>> --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml >>> +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml >>> @@ -24,6 +24,12 @@ properties: >>> deprecated: true >>> description: Kept only for ABI backward compatibility >>> >>> + - items: >>> + - enum: >>> + - qcom,ipq4019-qce >>> + - qcom,sm8150-qce >>> + - const: qcom,qce >>> + >>> - items: >>> - enum: >>> - qcom,ipq6018-qce >> >> Two commit tags given for v2 are missing. > > Cannot get your comment. Please be more descriptive. https://lore.kernel.org/linux-arm-msm/333081a2-6b31-3fca-1a95-4273b5a46fb7@linaro.org/ Konrad > > Thanks, > Bhupesh
Hi Bhupesh, On 2.04.23 13:05, Bhupesh Sharma wrote: > Add crypto engine (CE) and CE BAM related nodes and definitions to > 'sm8350.dtsi'. > > Co-developed-by and Signed-off-by: Robert Foss <rfoss@kernel.org> > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8350.dtsi | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi > index 7fbc288eca58..090ee07d1800 100644 > --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi > @@ -1730,6 +1730,28 @@ ufs_mem_phy_lanes: phy@1d87400 { > }; > }; > > + cryptobam: dma-controller@1dc4000 { > + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; > + reg = <0 0x01dc4000 0 0x24000>; > + interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>; > + #dma-cells = <1>; > + qcom,ee = <0>; > + qcom,controlled-remotely; > + iommus = <&apps_smmu 0x594 0x0011>, > + <&apps_smmu 0x596 0x0011>; > + }; > + > + crypto: crypto@1dfa000 { > + compatible = "qcom,sm8350-qce", "qcom,sm8150-qce", "qcom,qce"; > + reg = <0 0x01dfa000 0 0x6000>; > + dmas = <&cryptobam 4>, <&cryptobam 5>; > + dma-names = "rx", "tx"; > + iommus = <&apps_smmu 0x594 0x0011>, > + <&apps_smmu 0x596 0x0011>; > + interconnects = <&aggre2_noc MASTER_CRYPTO &mc_virt SLAVE_EBI1>; > + interconnect-names = "memory"; We switched to #interconnect-cells = <2> (since commit 4f287e31ff5f), so maybe #include dt-bindings/interconnect/qcom,icc.h and add the tags. BR, Georgi > + }; > + > ipa: ipa@1e40000 { > compatible = "qcom,sm8350-ipa"; >
On Mon, 3 Apr 2023 at 17:46, Georgi Djakov <djakov@kernel.org> wrote: > > Hi Bhupesh, > > On 2.04.23 13:05, Bhupesh Sharma wrote: > > Add crypto engine (CE) and CE BAM related nodes and definitions to > > 'sm8350.dtsi'. > > > > Co-developed-by and Signed-off-by: Robert Foss <rfoss@kernel.org> > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sm8350.dtsi | 22 ++++++++++++++++++++++ > > 1 file changed, 22 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi > > index 7fbc288eca58..090ee07d1800 100644 > > --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi > > @@ -1730,6 +1730,28 @@ ufs_mem_phy_lanes: phy@1d87400 { > > }; > > }; > > > > + cryptobam: dma-controller@1dc4000 { > > + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; > > + reg = <0 0x01dc4000 0 0x24000>; > > + interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>; > > + #dma-cells = <1>; > > + qcom,ee = <0>; > > + qcom,controlled-remotely; > > + iommus = <&apps_smmu 0x594 0x0011>, > > + <&apps_smmu 0x596 0x0011>; > > + }; > > + > > + crypto: crypto@1dfa000 { > > + compatible = "qcom,sm8350-qce", "qcom,sm8150-qce", "qcom,qce"; > > + reg = <0 0x01dfa000 0 0x6000>; > > + dmas = <&cryptobam 4>, <&cryptobam 5>; > > + dma-names = "rx", "tx"; > > + iommus = <&apps_smmu 0x594 0x0011>, > > + <&apps_smmu 0x596 0x0011>; > > + interconnects = <&aggre2_noc MASTER_CRYPTO &mc_virt SLAVE_EBI1>; > > + interconnect-names = "memory"; > > We switched to #interconnect-cells = <2> (since commit 4f287e31ff5f), so maybe #include > dt-bindings/interconnect/qcom,icc.h and add the tags. Sure Georgi, I will fix it in the next version. Thanks, Bhupesh
On Sun, 02 Apr 2023 15:34:59 +0530, Bhupesh Sharma wrote: > Add new compatible for BAM DMA engine version v1.7.4 which is > found on Qualcomm SM6115 and QCM2290 SoCs. Since its very similar > to v1.7.0 used on SM8150 like SoCs, mark the comptible scheme > accordingly. > > While at it, also update qcom,bam-dma bindings to add comments > which describe the BAM DMA versions used in SM8150 and SM8250 SoCs. > This provides an easy reference for identifying the actual BAM DMA > version available on Qualcomm SoCs. > > Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> > --- > .../devicetree/bindings/dma/qcom,bam-dma.yaml | 20 ++++++++++++------- > 1 file changed, 13 insertions(+), 7 deletions(-) > Acked-by: Rob Herring <robh@kernel.org>