Skip to content

Commit

Permalink
devicetree:rtc:max31331:Update documentation for max31331
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
SwaroopPKADI committed Sep 6, 2024
1 parent d113b40 commit 9030670
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions Documentation/devicetree/bindings/rtc/adi,max31335.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,37 @@ description:
allOf:
- $ref: rtc.yaml#

- if:
properties:
compatible:
contains:
enum:
- adi,max31335
then:
properties:
reg:
items:
- const: 0x69
else:
properties:
reg:
items:
- const: 0x68

properties:
compatible:
const: adi,max31335
enum:
- adi,max31331
- adi,max31335

reg:
maxItems: 1
description: I2C address of the RTC
items:
- enum: [0x68, 0x69]

interrupts:
description: |
Alarm1 interrupt line of the RTC.
maxItems: 1

"#clock-cells":
Expand Down Expand Up @@ -59,7 +82,7 @@ examples:
rtc@68 {
compatible = "adi,max31335";
reg = <0x68>;
reg = <0x69>;
pinctrl-0 = <&rtc_nint_pins>;
interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
aux-voltage-chargeable = <1>;
Expand Down

0 comments on commit 9030670

Please sign in to comment.