Skip to contentSkip to conversation

dt-bindings: serial: snps-dw-apb-uart: add dma & dma-names properties

PATCH In review Conor Dooley 2 participants 2 messages Feb 8, 2023 – Feb 9, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: serial: snps-dw-apb-uart: add dma & dma-names properties

From: Conor Dooley <[email protected]>

Commit 0c559bc8abfb ("dt-bindings: serial: restrict possible child node
names") exposed the Allwinner D1 devicetrees as users of unevaluated
properties, with a slew of similar warnings now appearing during
dtbs_check:
sun20i-d1-nezha.dtb: serial@2500400: Unevaluated properties are not allowed ('dma-names', 'dmas' were unexpected)

Document the missing properties.

---
The commit exposing it is in Rob's tree, but I figure this can go either way as it has no dependancy.

---
 .../devicetree/bindings/serial/snps-dw-apb-uart.yaml      | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +8 -0
index b9c2287c5d1e..2becdfab4f15 100644
@@ -67,6 +67,14 @@ properties:
       - const: baudclk
       - const: apb_pclk
 
+  dmas:
+    minItems: 2
+
+  dma-names:
+    items:
+      - const: rx
+      - const: tx
+
   snps,uart-16550-compatible:
     description: reflects the value of UART_16550_COMPATIBLE configuration
       parameter. Define this if your UART does not implement the busy functionality.
Signature · 1 line
2.39.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Commit 0c559bc8abfb ("dt-bindings: serial: restrict possible child node
names") exposed the Allwinner D1 devicetrees as users of unevaluated
properties, with a slew of similar warnings now appearing during
dtbs_check:
sun20i-d1-nezha.dtb: serial@2500400: Unevaluated properties are not allowed ('dma-names', 'dmas' were unexpected)

Document the missing properties.

Best regards,
Krzysztof