From: PavithraUdayakumar-adi via B4 Relay <devnull+pavithra.u.analog.com@kernel.org>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>,
Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org,
PavithraUdayakumar-adi <pavithra.u@analog.com>
Subject: [PATCH v3 1/2] dt-bindings: rtc: max31335: Add max31331 support
Date: Thu, 09 Jan 2025 15:59:57 +0530 [thread overview]
Message-ID: <20250109-add_support_max31331_fix_3-v1-1-a74fac29bf49@analog.com> (raw)
In-Reply-To: <20250109-add_support_max31331_fix_3-v1-0-a74fac29bf49@analog.com>
From: PavithraUdayakumar-adi <pavithra.u@analog.com>
MAX31331 is an ultra-low-power, I2C Real-Time Clock RTC with flexible
crystal support. While, MAX31335 offers higher precision, MEMS resonator,
and integrated temperature sensor. MAX31331 uses I2C address as 0x68
where as max31335 uses 0x69.
Changes: Added example for max31331 and modified the register address
for max31335.
Signed-off-by: PavithraUdayakumar-adi <pavithra.u@analog.com>
---
.../devicetree/bindings/rtc/adi,max31335.yaml | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
index 0125cf6727cc3d9eb3e0253299904ee363ec40ca..f249313bc485d7a6154ce684726d6a950405ef0e 100644
--- a/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
+++ b/Documentation/devicetree/bindings/rtc/adi,max31335.yaml
@@ -18,10 +18,13 @@ allOf:
properties:
compatible:
- const: adi,max31335
+ enum:
+ - adi,max31331
+ - adi,max31335
reg:
- maxItems: 1
+ items:
+ - enum: [0x68, 0x69]
interrupts:
maxItems: 1
@@ -57,9 +60,9 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
- rtc@68 {
+ rtc@69 {
compatible = "adi,max31335";
- reg = <0x68>;
+ reg = <0x69>;
pinctrl-0 = <&rtc_nint_pins>;
interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
aux-voltage-chargeable = <1>;
@@ -67,4 +70,15 @@ examples:
adi,tc-diode = "schottky";
};
};
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ rtc@68 {
+ reg = <0x68>;
+ compatible = "adi,max31331";
+ };
+ };
...
--
2.25.1
next prev parent reply other threads:[~2025-01-09 10:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-09 10:29 [PATCH v3 0/2] Add support for MAX31331 RTC PavithraUdayakumar-adi via B4 Relay
2025-01-09 10:29 ` PavithraUdayakumar-adi via B4 Relay [this message]
2025-01-10 8:35 ` [PATCH v3 1/2] dt-bindings: rtc: max31335: Add max31331 support Krzysztof Kozlowski
2025-01-15 10:21 ` U, Pavithra
2025-01-15 16:07 ` Krzysztof Kozlowski
2025-01-09 10:29 ` [PATCH v3 2/2] rtc: max31335: Add driver support for max31331 PavithraUdayakumar-adi via B4 Relay
2025-01-16 8:16 ` Nuno Sá
2025-01-10 8:32 ` [PATCH v3 0/2] Add support for MAX31331 RTC Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250109-add_support_max31331_fix_3-v1-1-a74fac29bf49@analog.com \
--to=devnull+pavithra.u.analog.com@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=antoniu.miclaus@analog.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzk+dt@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=pavithra.u@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®