[PATCH v5 1/2] dt-bindings: rtc: max31335: Add max31331 support

PavithraUdayakumar-adi via B4 Relay posted 2 patches 1 year ago
There is a newer version of this series
[PATCH v5 1/2] dt-bindings: rtc: max31335: Add max31331 support
Posted by PavithraUdayakumar-adi via B4 Relay 1 year ago
From: PavithraUdayakumar-adi <pavithra.u@analog.com>

Added DT compatible string for MAX31331.

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

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

-- 
2.25.1
Re: [PATCH v5 1/2] dt-bindings: rtc: max31335: Add max31331 support
Posted by Krzysztof Kozlowski 1 year ago
On 31/01/2025 12:52, PavithraUdayakumar-adi via B4 Relay wrote:
> From: PavithraUdayakumar-adi <pavithra.u@analog.com>
> 
> Added DT compatible string for MAX31331.


In the future, instead of just removing details, correct them, so say
that these are not compatible because of this and that.

> 
> Signed-off-by: PavithraUdayakumar-adi <pavithra.u@analog.com>
> ---


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof