Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Greg Kroah-Hartman
22088bbb 0059bc9a

+32 -32
+5 -5
Documentation/devicetree/bindings/serial/nvidia,tegra20-hsuart.yaml
··· 91 91 - description: range upper bound 92 92 - description: adjustment (in permyriad, i.e. 0.01%) 93 93 94 - allOf: 95 - - $ref: serial.yaml 96 - 97 - unevaluatedProperties: false 98 - 99 94 required: 100 95 - compatible 101 96 - reg ··· 100 105 - reset-names 101 106 - dmas 102 107 - dma-names 108 + 109 + allOf: 110 + - $ref: serial.yaml 111 + 112 + unevaluatedProperties: false 103 113 104 114 examples: 105 115 - |
+2 -2
Documentation/devicetree/bindings/serial/qcom,msm-uart.yaml
··· 40 40 - interrupts 41 41 - reg 42 42 43 - unevaluatedProperties: false 44 - 45 43 allOf: 46 44 - $ref: /schemas/serial/serial.yaml# 45 + 46 + unevaluatedProperties: false 47 47 48 48 examples: 49 49 - |
+2 -2
Documentation/devicetree/bindings/serial/qcom,msm-uartdm.yaml
··· 78 78 - interrupts 79 79 - reg 80 80 81 - unevaluatedProperties: false 82 - 83 81 allOf: 84 82 - $ref: /schemas/serial/serial.yaml# 85 83 ··· 94 96 properties: 95 97 reg: 96 98 maxItems: 1 99 + 100 + unevaluatedProperties: false 97 101 98 102 examples: 99 103 - |
+7 -7
Documentation/devicetree/bindings/serial/renesas,em-uart.yaml
··· 38 38 - const: sclk 39 39 - const: pclk 40 40 41 + required: 42 + - compatible 43 + - reg 44 + - interrupts 45 + - clocks 46 + - clock-names 47 + 41 48 allOf: 42 49 - $ref: serial.yaml# 43 50 ··· 59 52 minItems: 2 60 53 clock-names: 61 54 minItems: 2 62 - 63 - required: 64 - - compatible 65 - - reg 66 - - interrupts 67 - - clocks 68 - - clock-names 69 55 70 56 unevaluatedProperties: false 71 57
+2 -2
Documentation/devicetree/bindings/serial/renesas,hscif.yaml
··· 111 111 - clock-names 112 112 - power-domains 113 113 114 - unevaluatedProperties: false 115 - 116 114 if: 117 115 properties: 118 116 compatible: ··· 122 124 then: 123 125 required: 124 126 - resets 127 + 128 + unevaluatedProperties: false 125 129 126 130 examples: 127 131 - |
+2 -2
Documentation/devicetree/bindings/serial/renesas,scifa.yaml
··· 77 77 - clock-names 78 78 - power-domains 79 79 80 - unevaluatedProperties: false 81 - 82 80 if: 83 81 properties: 84 82 compatible: ··· 86 88 then: 87 89 required: 88 90 - resets 91 + 92 + unevaluatedProperties: false 89 93 90 94 examples: 91 95 - |
+2 -2
Documentation/devicetree/bindings/serial/renesas,scifb.yaml
··· 77 77 - clock-names 78 78 - power-domains 79 79 80 - unevaluatedProperties: false 81 - 82 80 if: 83 81 properties: 84 82 compatible: ··· 86 88 then: 87 89 required: 88 90 - resets 91 + 92 + unevaluatedProperties: false 89 93 90 94 examples: 91 95 - |
+2 -2
Documentation/devicetree/bindings/serial/samsung_uart.yaml
··· 86 86 - interrupts 87 87 - reg 88 88 89 - unevaluatedProperties: false 90 - 91 89 allOf: 92 90 - $ref: serial.yaml# 93 91 ··· 125 127 items: 126 128 - const: uart 127 129 - const: clk_uart_baud0 130 + 131 + unevaluatedProperties: false 128 132 129 133 examples: 130 134 - |
+8 -8
Documentation/devicetree/bindings/serial/serial.yaml
··· 87 87 description: 88 88 TX FIFO threshold configuration (in bytes). 89 89 90 - if: 91 - required: 92 - - uart-has-rtscts 93 - then: 94 - properties: 95 - cts-gpios: false 96 - rts-gpios: false 97 - 98 90 patternProperties: 99 91 "^(bluetooth|bluetooth-gnss|gnss|gps|mcu)$": 100 92 if: ··· 127 135 128 136 required: 129 137 - compatible 138 + 139 + if: 140 + required: 141 + - uart-has-rtscts 142 + then: 143 + properties: 144 + cts-gpios: false 145 + rts-gpios: false 130 146 131 147 additionalProperties: true 132 148