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

dt-bindings: serial: imx: Properly describe the i.MX1 interrupts

i.MX1 has three UART interrupts instead of a single one like other
i.MX devices.

Take this into account for properly describing the i.MX1 UART
interrupts.

This fixes the following dt-schema warning:

from schema $id: http://devicetree.org/schemas/serial/fsl-imx-uart.yaml#yaml#

imx1-ads.dtb: serial@206000: interrupts: [[30], [29], [26]] is too long
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231206162841.2326201-1-festevam@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabio Estevam and committed by
Greg Kroah-Hartman
9df1dd45 e045e18d

+24 -5
+24 -5
Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml
··· 9 9 maintainers: 10 10 - Fabio Estevam <festevam@gmail.com> 11 11 12 - allOf: 13 - - $ref: serial.yaml# 14 - - $ref: rs485.yaml# 15 - 16 12 properties: 17 13 compatible: 18 14 oneOf: ··· 64 68 - const: tx 65 69 66 70 interrupts: 67 - maxItems: 1 71 + items: 72 + - description: UART RX Interrupt 73 + - description: UART TX Interrupt 74 + - description: UART RTS Interrupt 75 + minItems: 1 68 76 69 77 wakeup-source: true 70 78 ··· 109 109 - clocks 110 110 - clock-names 111 111 - interrupts 112 + 113 + allOf: 114 + - $ref: serial.yaml# 115 + - $ref: rs485.yaml# 116 + 117 + - if: 118 + properties: 119 + compatible: 120 + contains: 121 + const: fsl,imx1-uart 122 + then: 123 + properties: 124 + interrupts: 125 + minItems: 3 126 + maxItems: 3 127 + else: 128 + properties: 129 + interrupts: 130 + maxItems: 1 112 131 113 132 unevaluatedProperties: false 114 133