* [PATCH v9 1/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs
2023-06-30 8:22 [PATCH v9 0/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Bhupesh Sharma
@ 2023-06-30 8:22 ` Bhupesh Sharma
2023-06-30 8:22 ` [PATCH v9 2/2] dt-bindings: dma: Increase iommu maxItems for BAM DMA Bhupesh Sharma
2023-07-11 16:43 ` [PATCH v9 0/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Bhupesh Sharma @ 2023-06-30 8:22 UTC (permalink / raw)
To: devicetree, dmaengine
Cc: vkoul, krzysztof.kozlowski+dt, linux-kernel, linux-arm-msm,
andersson, bhupesh.sharma, bhupesh.linux, agross, konrad.dybcio,
conor+dt, robh+dt, Rob Herring, Anders Roxell,
Linux Kernel Functional Testing
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.
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
.../devicetree/bindings/dma/qcom,bam-dma.yaml | 20 ++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
index f1ddcf672261..c663b6102f50 100644
--- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
@@ -15,13 +15,19 @@ allOf:
properties:
compatible:
- enum:
- # APQ8064, IPQ8064 and MSM8960
- - qcom,bam-v1.3.0
- # MSM8974, APQ8074 and APQ8084
- - qcom,bam-v1.4.0
- # MSM8916 and SDM845
- - qcom,bam-v1.7.0
+ oneOf:
+ - enum:
+ # APQ8064, IPQ8064 and MSM8960
+ - qcom,bam-v1.3.0
+ # MSM8974, APQ8074 and APQ8084
+ - qcom,bam-v1.4.0
+ # MSM8916, SDM630
+ - qcom,bam-v1.7.0
+ - items:
+ - enum:
+ # SDM845, SM6115, SM8150, SM8250 and QCM2290
+ - qcom,bam-v1.7.4
+ - const: qcom,bam-v1.7.0
clocks:
maxItems: 1
--
2.38.1
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v9 2/2] dt-bindings: dma: Increase iommu maxItems for BAM DMA
2023-06-30 8:22 [PATCH v9 0/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Bhupesh Sharma
2023-06-30 8:22 ` [PATCH v9 1/2] " Bhupesh Sharma
@ 2023-06-30 8:22 ` Bhupesh Sharma
2023-07-11 16:43 ` [PATCH v9 0/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Bhupesh Sharma @ 2023-06-30 8:22 UTC (permalink / raw)
To: devicetree, dmaengine
Cc: vkoul, krzysztof.kozlowski+dt, linux-kernel, linux-arm-msm,
andersson, bhupesh.sharma, bhupesh.linux, agross, konrad.dybcio,
conor+dt, robh+dt, Krzysztof Kozlowski, Anders Roxell,
Linux Kernel Functional Testing
Since SM8250 BAM DMA engine supports six iommu entries,
increase the maxItems in the iommu property section, without
which 'dtbs_check' would throw errors.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
index c663b6102f50..6433f2892ae4 100644
--- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
@@ -44,7 +44,7 @@ properties:
iommus:
minItems: 1
- maxItems: 4
+ maxItems: 6
num-channels:
$ref: /schemas/types.yaml#/definitions/uint32
--
2.38.1
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH v9 0/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs
2023-06-30 8:22 [PATCH v9 0/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Bhupesh Sharma
2023-06-30 8:22 ` [PATCH v9 1/2] " Bhupesh Sharma
2023-06-30 8:22 ` [PATCH v9 2/2] dt-bindings: dma: Increase iommu maxItems for BAM DMA Bhupesh Sharma
@ 2023-07-11 16:43 ` Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2023-07-11 16:43 UTC (permalink / raw)
To: devicetree, dmaengine, Bhupesh Sharma
Cc: krzysztof.kozlowski+dt, linux-kernel, linux-arm-msm, andersson,
bhupesh.linux, agross, konrad.dybcio, conor+dt, robh+dt
On Fri, 30 Jun 2023 13:52:28 +0530, Bhupesh Sharma wrote:
> Add support for SM6115 and QCM2290 SoCs in qcom,bam-dma bindings.
> Also increase iommu maxItems for BAM DMA to 6 which is the number
> required on sm8250 SoC.
>
> This patchset is rebased on linux-next/master.
>
> Changes since v8:
> -----------------
> - v8 can be viewed here: https://www.spinics.net/lists/linux-crypto/msg72349.html
> - As rest of the patches from v8 have been applied to linux-next, dropped them from v9.
> - Added dma list and maintainer in Cc again as the Cc list got messed up while
> sending out v8.
>
> [...]
Applied, thanks!
[1/2] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs
commit: 80159ca4314224f5778d5fa8ded24d6ef7876c53
[2/2] dt-bindings: dma: Increase iommu maxItems for BAM DMA
commit: ffcde05811d97e9320358674625f28002102f7c9
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread