Skip to content

Commit 6f413ca

Browse files
committed
dt-bindings: rtc: max31335: Add max31331 support
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 <[email protected]>
1 parent 7d69eef commit 6f413ca

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

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

+26-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ description:
1313
Analog Devices MAX31335 I2C RTC ±2ppm Automotive Real-Time Clock with
1414
Integrated MEMS Resonator.
1515

16-
allOf:
17-
- $ref: rtc.yaml#
18-
1916
properties:
2017
compatible:
21-
const: adi,max31335
18+
enum:
19+
- adi,max31331
20+
- adi,max31335
2221

2322
reg:
24-
maxItems: 1
23+
items:
24+
- enum: [0x68, 0x69]
2525

2626
interrupts:
2727
maxItems: 1
@@ -50,6 +50,26 @@ required:
5050

5151
unevaluatedProperties: false
5252

53+
allOf:
54+
- $ref: rtc.yaml#
55+
56+
- if:
57+
properties:
58+
compatible:
59+
contains:
60+
enum:
61+
- adi,max31335
62+
then:
63+
properties:
64+
reg:
65+
items:
66+
- const: 0x69
67+
else:
68+
properties:
69+
reg:
70+
items:
71+
- const: 0x68
72+
5373
examples:
5474
- |
5575
#include <dt-bindings/interrupt-controller/irq.h>
@@ -59,7 +79,7 @@ examples:
5979
6080
rtc@68 {
6181
compatible = "adi,max31335";
62-
reg = <0x68>;
82+
reg = <0x69>;
6383
pinctrl-0 = <&rtc_nint_pins>;
6484
interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
6585
aux-voltage-chargeable = <1>;

0 commit comments

Comments
 (0)