summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/serial.yaml
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-10-16 21:19:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-21 19:26:10 +0300
commit22088bbb02259d813d797e2d6a4ba7ca6ff4b96c (patch)
tree3526feeccf6344cd9565b06dff65a18b2429ec50 /Documentation/devicetree/bindings/serial/serial.yaml
parent0059bc9a29e02853dbbaa0f6d0635a687c8b9835 (diff)
downloadlinux-22088bbb02259d813d797e2d6a4ba7ca6ff4b96c.tar.xz
dt-bindings: serial: re-order entries to match coding convention
The DT schema coding convention expressed in Documentation/devicetree/bindings/example-schema.yaml expects entries in following order: - properties, patternProperties - required - if blocks, allOf with if-blocks - additionalProperties/unevaluatedProperties Re-order few schemas to match the convention to avoid repeating review comments for new patches using existing code as template. No functional changes. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20231016181909.368429-1-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/serial.yaml')
-rw-r--r--Documentation/devicetree/bindings/serial/serial.yaml16
1 files changed, 8 insertions, 8 deletions
diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml
index 468af429c3e6..65804ca274ae 100644
--- a/Documentation/devicetree/bindings/serial/serial.yaml
+++ b/Documentation/devicetree/bindings/serial/serial.yaml
@@ -87,14 +87,6 @@ properties:
description:
TX FIFO threshold configuration (in bytes).
-if:
- required:
- - uart-has-rtscts
-then:
- properties:
- cts-gpios: false
- rts-gpios: false
-
patternProperties:
"^(bluetooth|bluetooth-gnss|gnss|gps|mcu)$":
if:
@@ -136,6 +128,14 @@ patternProperties:
required:
- compatible
+if:
+ required:
+ - uart-has-rtscts
+then:
+ properties:
+ cts-gpios: false
+ rts-gpios: false
+
additionalProperties: true
examples: