-
Notifications
You must be signed in to change notification settings - Fork 833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTC: MAX31331: Support and documentation for RTC MAX31331 #2593
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need for description |
||
items: | ||
- enum: [0x68, 0x69] | ||
|
||
interrupts: | ||
description: | | ||
Alarm1 interrupt line of the RTC. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
maxItems: 1 | ||
|
||
"#clock-cells": | ||
|
@@ -59,7 +82,7 @@ examples: | |
|
||
rtc@68 { | ||
compatible = "adi,max31335"; | ||
reg = <0x68>; | ||
reg = <0x69>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't change this. Why going in favor of the new reg? If you really want, add another example for the new device. |
||
pinctrl-0 = <&rtc_nint_pins>; | ||
interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>; | ||
aux-voltage-chargeable = <1>; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, typically, this comes after
required:
but I see that you're already making use ofallOf:
here. Maybe it's acceptable to move it to the end. Not sure, up to you...