Skip to content

Commit

Permalink
RTC: MAX31331: Support and documentation for RTC MAX31331
Browse files Browse the repository at this point in the history
Signed-off-by: Swaroop Kukkillaya <[email protected]>
  • Loading branch information
SwaroopPKADI committed Sep 6, 2024
1 parent 04fbdbb commit 2577b23
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 41 deletions.
28 changes: 26 additions & 2 deletions Documentation/devicetree/bindings/rtc/adi,max31335.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,38 @@ 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:
description: I2C address of the RTC
items:
-enum: [0x68, 0x69]
maxItems: 1

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

"#clock-cells":
Expand Down Expand Up @@ -59,7 +83,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
Loading

0 comments on commit 2577b23

Please sign in to comment.