Skip to content
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

drivers: rtc: new maxim ds1307 rtc driver #64219

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

arun-mani-tech
Copy link
Contributor

Added rtc driver for ds1307. It allows to read and set the date and time

@zephyrbot zephyrbot added area: Devicetree Binding PR modifies or adds a Device Tree binding area: RTC Real Time Clock platform: ADI Analog Devices, Inc. labels Oct 22, 2023
@arun-mani-tech arun-mani-tech force-pushed the rtc/ds1307 branch 4 times, most recently from 0b8eaae to 324ec8c Compare October 24, 2023 04:08
@arun-mani-tech
Copy link
Contributor Author

@bjarki-trackunit Kindly have a look

Copy link
Collaborator

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks good, I have a few requests I have outlined that need to be addressed :)

drivers/rtc/rtc_ds1307.c Outdated Show resolved Hide resolved
drivers/rtc/rtc_ds1307.c Show resolved Hide resolved
drivers/rtc/rtc_ds1307.c Outdated Show resolved Hide resolved
drivers/rtc/rtc_ds1307.c Outdated Show resolved Hide resolved
drivers/rtc/rtc_ds1307.c Show resolved Hide resolved
@arun-mani-tech arun-mani-tech force-pushed the rtc/ds1307 branch 2 times, most recently from b428951 to e5a717e Compare October 25, 2023 14:13
@arun-mani-tech
Copy link
Contributor Author

@bjarki-trackunit Please review

@bjarki-andreasen
Copy link
Collaborator

Looks good, last request, could you run the RTC API test suite? (ignore the y2k test failing once you run it)

@arun-mani-tech
Copy link
Contributor Author

@bjarki-trackunit I ran RTC API test_suite. All checks are passed except yday, isdst, nsec. Because this chip does not support that

Copy link
Collaborator

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This last change should allow it to fail only because of the missing yday :)

drivers/rtc/rtc_ds1307.c Show resolved Hide resolved
@arun-mani-tech
Copy link
Contributor Author

@bjarki-trackunit Please revisit

Copy link
Collaborator

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@arun-mani-tech
Copy link
Contributor Author

@bjarki-trackunit Thanks for the review

fabiobaltieri
fabiobaltieri previously approved these changes Oct 26, 2023
drivers/rtc/rtc_ds1307.c Outdated Show resolved Hide resolved
drivers/rtc/rtc_ds1307.c Outdated Show resolved Hide resolved
Added rtc driver for ds1307. It allows to read and set the date and time

Signed-off-by: Arunmani Alagarsamy <[email protected]>
@arun-mani-tech
Copy link
Contributor Author

@bjarki-trackunit @fabiobaltieri Gentle ping!

@fabiobaltieri
Copy link
Member

fabiobaltieri commented Oct 27, 2023

@bjarki-trackunit @fabiobaltieri Gentle ping!

No need to ping, GitHub notifications already do it for you. :-)

@carlescufi carlescufi merged commit e9ecc83 into zephyrproject-rtos:main Oct 27, 2023
18 checks passed
@arun-mani-tech arun-mani-tech deleted the rtc/ds1307 branch October 27, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Devicetree Binding PR modifies or adds a Device Tree binding area: RTC Real Time Clock platform: ADI Analog Devices, Inc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants