[PATCH 1/2] dt-bindings: rtc: amlogic,a4-rtc: Add compatible string for C3

Xianwei Zhao via B4 Relay posted 2 patches 2 months, 3 weeks ago
[PATCH 1/2] dt-bindings: rtc: amlogic,a4-rtc: Add compatible string for C3
Posted by Xianwei Zhao via B4 Relay 2 months, 3 weeks ago
From: Xianwei Zhao <xianwei.zhao@amlogic.com>

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>
---
 Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml b/Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml
index 5d3ac737abcb..e61f22eca85b 100644
--- a/Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml
@@ -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

-- 
2.37.1
Re: [PATCH 1/2] dt-bindings: rtc: amlogic,a4-rtc: Add compatible string for C3
Posted by Rob Herring (Arm) 2 months, 2 weeks ago
On Thu, 17 Jul 2025 17:38:37 +0800, Xianwei Zhao wrote:
> 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>
> ---
>  Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Re: (subset) [PATCH 1/2] dt-bindings: rtc: amlogic,a4-rtc: Add compatible string for C3
Posted by Alexandre Belloni 2 months, 2 weeks ago
On Thu, 17 Jul 2025 17:38:37 +0800, Xianwei Zhao wrote:
> 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.
> 
> 

Applied, thanks!

[1/2] dt-bindings: rtc: amlogic,a4-rtc: Add compatible string for C3
      https://git.kernel.org/abelloni/c/db22fd8880a2

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com