dt-bindings: rtc: mxc: Document fsl,imx31-rtc
authorFabio Estevam <festevam@denx.de>
Sun, 12 Jan 2025 13:40:27 +0000 (10:40 -0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 13 Jan 2025 08:34:52 +0000 (09:34 +0100)
imx31.dtsi uses the following RTC compatible:

compatible = "fsl,imx31-rtc", "fsl,imx21-rtc";

Document 'fsl,imx31-rtc' to fix the following dt-schema warning:

'fsl,imx31-rtc' is not one of ['fsl,imx1-rtc', 'fsl,imx21-rtc']

Signed-off-by: Fabio Estevam <festevam@denx.de>
Link: https://lore.kernel.org/r/20250112134027.1013213-1-festevam@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Documentation/devicetree/bindings/rtc/rtc-mxc.yaml

index a14b52178c4b05019f3c8c37fb21d0a738d41e4a..2599b847f406cfa02db7645df9add72e5382d84c 100644 (file)
@@ -14,9 +14,13 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,imx1-rtc
-      - fsl,imx21-rtc
+    oneOf:
+      - const: fsl,imx1-rtc
+      - const: fsl,imx21-rtc
+      - items:
+          - enum:
+              - fsl,imx31-rtc
+          - const: fsl,imx21-rtc
 
   reg:
     maxItems: 1