Commit 22088bbb authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231016181909.368429-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0059bc9a
...@@ -91,11 +91,6 @@ properties: ...@@ -91,11 +91,6 @@ properties:
- description: range upper bound - description: range upper bound
- description: adjustment (in permyriad, i.e. 0.01%) - description: adjustment (in permyriad, i.e. 0.01%)
allOf:
- $ref: serial.yaml
unevaluatedProperties: false
required: required:
- compatible - compatible
- reg - reg
...@@ -106,6 +101,11 @@ required: ...@@ -106,6 +101,11 @@ required:
- dmas - dmas
- dma-names - dma-names
allOf:
- $ref: serial.yaml
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/tegra30-car.h> #include <dt-bindings/clock/tegra30-car.h>
......
...@@ -40,11 +40,11 @@ required: ...@@ -40,11 +40,11 @@ required:
- interrupts - interrupts
- reg - reg
unevaluatedProperties: false
allOf: allOf:
- $ref: /schemas/serial/serial.yaml# - $ref: /schemas/serial/serial.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
serial@a9c00000 { serial@a9c00000 {
......
...@@ -78,8 +78,6 @@ required: ...@@ -78,8 +78,6 @@ required:
- interrupts - interrupts
- reg - reg
unevaluatedProperties: false
allOf: allOf:
- $ref: /schemas/serial/serial.yaml# - $ref: /schemas/serial/serial.yaml#
...@@ -97,6 +95,8 @@ allOf: ...@@ -97,6 +95,8 @@ allOf:
reg: reg:
maxItems: 1 maxItems: 1
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -38,6 +38,13 @@ properties: ...@@ -38,6 +38,13 @@ properties:
- const: sclk - const: sclk
- const: pclk - const: pclk
required:
- compatible
- reg
- interrupts
- clocks
- clock-names
allOf: allOf:
- $ref: serial.yaml# - $ref: serial.yaml#
...@@ -53,13 +60,6 @@ allOf: ...@@ -53,13 +60,6 @@ allOf:
clock-names: clock-names:
minItems: 2 minItems: 2
required:
- compatible
- reg
- interrupts
- clocks
- clock-names
unevaluatedProperties: false unevaluatedProperties: false
examples: examples:
......
...@@ -111,8 +111,6 @@ required: ...@@ -111,8 +111,6 @@ required:
- clock-names - clock-names
- power-domains - power-domains
unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
...@@ -125,6 +123,8 @@ then: ...@@ -125,6 +123,8 @@ then:
required: required:
- resets - resets
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a7795-cpg-mssr.h> #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
......
...@@ -77,8 +77,6 @@ required: ...@@ -77,8 +77,6 @@ required:
- clock-names - clock-names
- power-domains - power-domains
unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
...@@ -89,6 +87,8 @@ then: ...@@ -89,6 +87,8 @@ then:
required: required:
- resets - resets
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a7790-cpg-mssr.h> #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
......
...@@ -77,8 +77,6 @@ required: ...@@ -77,8 +77,6 @@ required:
- clock-names - clock-names
- power-domains - power-domains
unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
...@@ -89,6 +87,8 @@ then: ...@@ -89,6 +87,8 @@ then:
required: required:
- resets - resets
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/r8a7740-clock.h> #include <dt-bindings/clock/r8a7740-clock.h>
......
...@@ -86,8 +86,6 @@ required: ...@@ -86,8 +86,6 @@ required:
- interrupts - interrupts
- reg - reg
unevaluatedProperties: false
allOf: allOf:
- $ref: serial.yaml# - $ref: serial.yaml#
...@@ -128,6 +126,8 @@ allOf: ...@@ -128,6 +126,8 @@ allOf:
- const: uart - const: uart
- const: clk_uart_baud0 - const: clk_uart_baud0
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/samsung,s3c64xx-clock.h> #include <dt-bindings/clock/samsung,s3c64xx-clock.h>
......
...@@ -87,14 +87,6 @@ properties: ...@@ -87,14 +87,6 @@ properties:
description: description:
TX FIFO threshold configuration (in bytes). TX FIFO threshold configuration (in bytes).
if:
required:
- uart-has-rtscts
then:
properties:
cts-gpios: false
rts-gpios: false
patternProperties: patternProperties:
"^(bluetooth|bluetooth-gnss|gnss|gps|mcu)$": "^(bluetooth|bluetooth-gnss|gnss|gps|mcu)$":
if: if:
...@@ -136,6 +128,14 @@ patternProperties: ...@@ -136,6 +128,14 @@ patternProperties:
required: required:
- compatible - compatible
if:
required:
- uart-has-rtscts
then:
properties:
cts-gpios: false
rts-gpios: false
additionalProperties: true additionalProperties: true
examples: examples:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment