]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: dma: qcom: bam-dma: Add missing required properties
authorStephan Gerhold <stephan.gerhold@linaro.org>
Wed, 12 Feb 2025 17:03:53 +0000 (18:03 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Aug 2025 05:22:43 +0000 (10:52 +0530)
num-channels and qcom,num-ees are required when there are no clocks
specified in the device tree, because we have no reliable way to read them
from the hardware registers if we cannot ensure the BAM hardware is up when
the device is being probed.

This has often been forgotten when adding new SoC device trees, so make
this clear by describing this requirement in the schema.

Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Link: https://lore.kernel.org/r/20250212-bam-dma-fixes-v1-7-f560889e65d8@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml

index f2f87f0f545bc54f1c01419d7c6d438a128050e1..6493a6968bb4b93e4071baf93b847394cdbac4cc 100644 (file)
@@ -92,8 +92,12 @@ required:
 anyOf:
   - required:
       - qcom,powered-remotely
+      - num-channels
+      - qcom,num-ees
   - required:
       - qcom,controlled-remotely
+      - num-channels
+      - qcom,num-ees
   - required:
       - clocks
       - clock-names