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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: serial: renesas,scif: Validate 'interrupts' and 'interrupt-names'

This commit adds support to validate the 'interrupts' and 'interrupt-names'
properties for every supported SoC. This ensures proper handling and
configuration of interrupt-related properties across supported platforms.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240604170513.522631-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lad Prabhakar and committed by
Greg Kroah-Hartman
d057a1e3 220fb8ff

+55 -18
+55 -18
Documentation/devicetree/bindings/serial/renesas,scif.yaml
··· 92 92 - description: Receive buffer full interrupt 93 93 - description: Transmit buffer empty interrupt 94 94 - description: Break interrupt 95 - - items: 96 - - description: Error interrupt 97 - - description: Receive buffer full interrupt 98 - - description: Transmit buffer empty interrupt 99 - - description: Break interrupt 100 95 - description: Data Ready interrupt 101 96 - description: Transmit End interrupt 97 + minItems: 4 102 98 103 99 interrupt-names: 104 - oneOf: 105 - - items: 106 - - const: eri 107 - - const: rxi 108 - - const: txi 109 - - const: bri 110 - - items: 111 - - const: eri 112 - - const: rxi 113 - - const: txi 114 - - const: bri 115 - - const: dri 116 - - const: tei 100 + minItems: 4 101 + items: 102 + - const: eri 103 + - const: rxi 104 + - const: txi 105 + - const: bri 106 + - const: dri 107 + - const: tei 117 108 118 109 clocks: 119 110 minItems: 1 ··· 164 173 then: 165 174 required: 166 175 - resets 176 + 177 + - if: 178 + properties: 179 + compatible: 180 + contains: 181 + enum: 182 + - renesas,rcar-gen1-scif 183 + - renesas,rcar-gen2-scif 184 + - renesas,rcar-gen3-scif 185 + - renesas,rcar-gen4-scif 186 + then: 187 + properties: 188 + interrupts: 189 + maxItems: 1 190 + 191 + interrupt-names: false 192 + 193 + - if: 194 + properties: 195 + compatible: 196 + contains: 197 + enum: 198 + - renesas,scif-r7s72100 199 + then: 200 + properties: 201 + interrupts: 202 + minItems: 4 203 + maxItems: 4 204 + 205 + interrupt-names: 206 + maxItems: 4 207 + 208 + - if: 209 + properties: 210 + compatible: 211 + contains: 212 + enum: 213 + - renesas,scif-r7s9210 214 + - renesas,scif-r9a07g044 215 + then: 216 + properties: 217 + interrupts: 218 + minItems: 6 219 + 220 + interrupt-names: 221 + minItems: 6 167 222 168 223 unevaluatedProperties: false 169 224