[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250103-add_support_max31331_fix-v1-1-8ff3c7a81734@analog.com>
Date: Fri, 03 Jan 2025 12:34:19 +0530
From: PavithraUdayakumar-adi via B4 Relay <devnull+pavithra.u.analog.com@...nel.org>
To: Antoniu Miclaus <antoniu.miclaus@...log.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>
Cc: linux-rtc@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hwmon@...r.kernel.org,
PavithraUdayakumar-adi <pavithra.u@...log.com>
Subject: [PATCH v2 1/2] dtbindings:rtc:max31335:Add max31331 support
From: PavithraUdayakumar-adi <pavithra.u@...log.com>
Add support to max31331 RTC chip in adi,max31335.yaml
Signed-off-by: PavithraUdayakumar-adi <pavithra.u@...log.com>
---
.../devicetree/bindings/rtc/adi,max31335.yaml | 32 ++++++++++++++++++----
1 file changed, 26 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
index 0125cf6727cc3d9eb3e0253299904ee363ec40ca..6953553d98afd42ed9b79bac476657ffc8ec9210 100644
--- a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
+++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
@@ -13,15 +13,15 @@ description:
Analog Devices MAX31335 I2C RTC ±2ppm Automotive Real-Time Clock with
Integrated MEMS Resonator.
-allOf:
- - $ref: rtc.yaml#
-
properties:
compatible:
- const: adi,max31335
+ enum:
+ - adi,max31331
+ - adi,max31335
reg:
- maxItems: 1
+ items:
+ - enum: [0x68, 0x69]
interrupts:
maxItems: 1
@@ -50,6 +50,26 @@ required:
unevaluatedProperties: false
+allOf:
+ - $ref: rtc.yaml#
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - adi,max31335
+ then:
+ properties:
+ reg:
+ items:
+ - const: 0x69
+ else:
+ properties:
+ reg:
+ items:
+ - const: 0x68
+
examples:
- |
#include <dt-bindings/interrupt-controller/irq.h>
@@ -58,7 +78,7 @@ examples:
#size-cells = <0>;
rtc@68 {
- compatible = "adi,max31335";
+ compatible = "adi,max31331";
reg = <0x68>;
pinctrl-0 = <&rtc_nint_pins>;
interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
--
2.25.1
Powered by blists - more mailing lists