[SRU] [jammy:linux-xilinx-zynqmp 01/14] dt-bindings: serial: cdsn, uart: add power-domains

Portia Stephens portia.stephens at canonical.com
Thu Aug 22 09:11:04 UTC 2024


From: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>

BugLink: https://bugs.launchpad.net/bugs/2055237

Few Xilinx DTS have power domains in serial node:

  zynqmp-zc1232-revA.dtb: serial at ff000000: Unevaluated properties are not allowed ('power-domains' was unexpected)

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
Reviewed-by: Michal Simek <michal.simek at amd.com>
Acked-by: Rob Herring <robh at kernel.org>
Link: https://lore.kernel.org/r/20230124091916.45054-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
(cherry picked from commit 3a7f73e3475d4f4288f8bd560253aca5cd0d0cad)
Signed-off-by: Portia Stephens <portia.stephens at canonical.com>
---
 .../devicetree/bindings/serial/cdns,uart.yaml   | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml
index fcdbe6f87e980..490a48ae92775 100644
--- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml
+++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml
@@ -9,9 +9,6 @@ title: Cadence UART Controller Device Tree Bindings
 maintainers:
   - Michal Simek <michal.simek at xilinx.com>
 
-allOf:
-  - $ref: /schemas/serial.yaml#
-
 properties:
   compatible:
     oneOf:
@@ -46,6 +43,9 @@ properties:
       port does not use this pin.
     type: boolean
 
+  power-domains:
+    maxItems: 1
+
 required:
   - compatible
   - reg
@@ -53,6 +53,17 @@ required:
   - clocks
   - clock-names
 
+allOf:
+  - $ref: serial.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: cdns,uart-r1p8
+    then:
+      properties:
+        power-domains: false
+
 unevaluatedProperties: false
 
 examples:
-- 
2.34.1




More information about the kernel-team mailing list