]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: rtc: amlogic,a4-rtc: Add compatible string for C3
authorXianwei Zhao <xianwei.zhao@amlogic.com>
Thu, 17 Jul 2025 09:38:37 +0000 (17:38 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Jul 2025 21:43:44 +0000 (23:43 +0200)
Amlogic C3 SoCs uses the same rtc controller as A5 SoCs. There is
no need for an extra compatible line in the driver, but add C3
compatible line for documentation.

Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250717-rtc-c3-node-v1-1-4f9ae059b8e6@amlogic.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml

index 5d3ac737abcbafc9fa81ce80e32e1f9973b6b9dc..e61f22eca85b11243ae6c8ae0538d10e163a20e0 100644 (file)
@@ -16,9 +16,14 @@ allOf:
 
 properties:
   compatible:
-    enum:
-      - amlogic,a4-rtc
-      - amlogic,a5-rtc
+    oneOf:
+      - enum:
+          - amlogic,a4-rtc
+          - amlogic,a5-rtc
+      - items:
+          - enum:
+              - amlogic,c3-rtc
+          - const: amlogic,a5-rtc
 
   reg:
     maxItems: 1