diff mbox series

[v4,1/2] dt-bindings: rtc: max31335: Add max31331 support

Message ID 20250119-add_support_max31331_fix_5-v1-1-73f7be59f022@analog.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Add support for MAX31331 RTC | expand

Commit Message

PavithraUdayakumar-adi via B4 Relay Jan. 19, 2025, 7:47 a.m. UTC
From: PavithraUdayakumar-adi <pavithra.u@analog.com>

Added DT compatible string for MAX31331. MAX31331 is
compatible with MAX31335 without any additional features.

Signed-off-by: PavithraUdayakumar-adi <pavithra.u@analog.com>
---
 Documentation/devicetree/bindings/rtc/adi,max31335.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Krzysztof Kozlowski Jan. 20, 2025, 7:32 a.m. UTC | #1
On Sun, Jan 19, 2025 at 01:17:38PM +0530, PavithraUdayakumar-adi wrote:
> Added DT compatible string for MAX31331. MAX31331 is
> compatible with MAX31335 without any additional features.

Your driver patch suggests these are not compatible, but anyway if you
claim these are compatible, then express it with fallback (see
example-schema and many other bindings).

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
index 0125cf6727cc3d9eb3e0253299904ee363ec40ca..bce7558d0d8789127dcf6050a78a166c753887ba 100644
--- a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
+++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
@@ -18,7 +18,9 @@  allOf:
 
 properties:
   compatible:
-    const: adi,max31335
+    enum:
+      - adi,max31331
+      - adi,max31335
 
   reg:
     maxItems: 1