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

dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number

Unlike the other i.MX devices, i.MX7 has only two anatop interrupts.

Add logic that contemplates such case to fix the following
dt-schema warning:

anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Fabio Estevam and committed by
Shawn Guo
644cb51e 9f592d1b

+18
+18
Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml
··· 36 36 - description: Temperature sensor event 37 37 - description: Brown-out event on either of the support regulators 38 38 - description: Brown-out event on either the core, gpu or soc regulators 39 + minItems: 2 39 40 40 41 tempmon: 41 42 type: object ··· 52 51 required: 53 52 - compatible 54 53 - reg 54 + 55 + allOf: 56 + - if: 57 + properties: 58 + compatible: 59 + contains: 60 + enum: 61 + - fsl,imx7d-anatop 62 + then: 63 + properties: 64 + interrupts: 65 + maxItems: 2 66 + else: 67 + properties: 68 + interrupts: 69 + minItems: 3 70 + maxItems: 3 55 71 56 72 additionalProperties: false 57 73