Skip to content

Commit 9030670

Browse files
committed
devicetree:rtc:max31331:Update documentation for max31331
Add details to use max31331. The main difference between max31331 and max31335 is the I2C Slave Address. Max31331 uses 0x68 where as max31335 uses 0x69. Signed-off-by: Swaroop Kukkillaya <Swaroop.PrakashKumar@analog.com>
1 parent d113b40 commit 9030670

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

Documentation/devicetree/bindings/rtc/adi,max31335.yaml

+26-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,37 @@ description:
1616
allOf:
1717
- $ref: rtc.yaml#
1818

19+
- if:
20+
properties:
21+
compatible:
22+
contains:
23+
enum:
24+
- adi,max31335
25+
then:
26+
properties:
27+
reg:
28+
items:
29+
- const: 0x69
30+
else:
31+
properties:
32+
reg:
33+
items:
34+
- const: 0x68
35+
1936
properties:
2037
compatible:
21-
const: adi,max31335
38+
enum:
39+
- adi,max31331
40+
- adi,max31335
2241

2342
reg:
24-
maxItems: 1
43+
description: I2C address of the RTC
44+
items:
45+
- enum: [0x68, 0x69]
2546

2647
interrupts:
48+
description: |
49+
Alarm1 interrupt line of the RTC.
2750
maxItems: 1
2851

2952
"#clock-cells":
@@ -59,7 +82,7 @@ examples:
5982
6083
rtc@68 {
6184
compatible = "adi,max31335";
62-
reg = <0x68>;
85+
reg = <0x69>;
6386
pinctrl-0 = <&rtc_nint_pins>;
6487
interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
6588
aux-voltage-chargeable = <1>;

0 commit comments

Comments
 (0)