Skip to content

Commit 37e49c7

Browse files
committed
rtc:max31331:Support and documentation for RTC MAX31331
MAX31331 is an ultra-low-power, I2C Real-Time Clock RTC. Signed-off-by: Swaroop Kukkillaya <Swaroop.PrakashKumar@analog.com>
1 parent 04fbdbb commit 37e49c7

File tree

2 files changed

+166
-42
lines changed

2 files changed

+166
-42
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)