Skip to content

Commit 2577b23

Browse files
committed
RTC: MAX31331: Support and documentation for RTC MAX31331
Signed-off-by: Swaroop Kukkillaya <Swaroop.PrakashKumar@analog.com>
1 parent 04fbdbb commit 2577b23

File tree

2 files changed

+168
-41
lines changed

2 files changed

+168
-41
lines changed

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

+26-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,38 @@ 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:
43+
description: I2C address of the RTC
44+
items:
45+
-enum: [0x68, 0x69]
2446
maxItems: 1
2547

2648
interrupts:
49+
description: |
50+
Alarm1 interrupt line of the RTC.
2751
maxItems: 1
2852

2953
"#clock-cells":
@@ -59,7 +83,7 @@ examples:
5983
6084
rtc@68 {
6185
compatible = "adi,max31335";
62-
reg = <0x68>;
86+
reg = <0x69>;
6387
pinctrl-0 = <&rtc_nint_pins>;
6488
interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
6589
aux-voltage-chargeable = <1>;

0 commit comments

Comments
 (0)