[PATCH] dt-bindings: dma: qcom,bam: require one of control methods

Krzysztof Kozlowski posted 1 patch 2 years, 7 months ago
Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
[PATCH] dt-bindings: dma: qcom,bam: require one of control methods
Posted by Krzysztof Kozlowski 2 years, 7 months ago
The BAM DMA resources can be controlled remotely (e.g. by trusted
environment; needs qcom,powered-remotely or qcom,controlled-remotely
properties) or locally.  In the latter case we need to provide its
clock.

Require one of methods of such control to properly validate DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
index c9c34f7cdf5b..a0af90ec86f1 100644
--- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml
@@ -95,6 +95,15 @@ required:
   - qcom,ee
   - reg
 
+anyOf:
+  - required:
+      - qcom,powered-remotely
+  - required:
+      - qcom,controlled-remotely
+  - required:
+      - clocks
+      - clock-names
+
 additionalProperties: false
 
 examples:
-- 
2.34.1
Re: [PATCH] dt-bindings: dma: qcom,bam: require one of control methods
Posted by Vinod Koul 2 years, 7 months ago
On Mon, 26 Jun 2023 16:56:45 +0200, Krzysztof Kozlowski wrote:
> The BAM DMA resources can be controlled remotely (e.g. by trusted
> environment; needs qcom,powered-remotely or qcom,controlled-remotely
> properties) or locally.  In the latter case we need to provide its
> clock.
> 
> Require one of methods of such control to properly validate DTS.
> 
> [...]

Applied, thanks!

[1/1] dt-bindings: dma: qcom,bam: require one of control methods
      commit: 213d8e122f2d9e2c9bdda6b804cf1082919bece3

Best regards,
-- 
~Vinod
Re: [PATCH] dt-bindings: dma: qcom,bam: require one of control methods
Posted by Conor Dooley 2 years, 7 months ago
On Mon, Jun 26, 2023 at 04:56:45PM +0200, Krzysztof Kozlowski wrote:
> The BAM DMA resources can be controlled remotely (e.g. by trusted
> environment; needs qcom,powered-remotely or qcom,controlled-remotely
> properties) or locally.  In the latter case we need to provide its
> clock.
> 
> Require one of methods of such control to properly validate DTS.

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Cheers,
Conor.