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

Add MAX32xxx counter RTC driver #80040

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

oknshn
Copy link
Contributor

@oknshn oknshn commented Oct 18, 2024

This PR adds counter RTC driver for ADI MAX32xxx series microcontrollers. Counter tests are also enabled.

@zephyrbot zephyrbot added platform: ADI Analog Devices, Inc. area: Counter labels Oct 18, 2024
@oknshn oknshn mentioned this pull request Oct 18, 2024
@oknshn oknshn changed the title Add MAX32xxx RTC driver Add MAX32xxx counter RTC driver Oct 18, 2024
@MaureenHelm MaureenHelm added this to the v4.0.0 milestone Oct 21, 2024
@MaureenHelm
Copy link
Member

Needs rebase

oknshn and others added 12 commits October 22, 2024 11:53
This commit instantiates counter RTC on MAX32xxx MCUs.

Co-authored-by: Sadik Ozer <sadik.ozer@analog.com>
Signed-off-by: Okan Sahin <okan.sahin@analog.com>
Common RTC counter driver for MAX32xxx MCUs.
Time of day alarm is used to generate interrupt.
The resolution of time of day interrupt is 1Hz.
Subsecond alarm interrupt not works it does not meet
zephyr counter driver requirement, so that not used.

To use as wakeup source wakeup-source parameter shall be
defined as below

&rtc_counter {
    status = "okay";
    wakeup-source;
};

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
This commit enables counter RTC for MAX32655 EVKIT.

Co-authored-by: Sadik Ozer <sadik.ozer@analog.com>
Signed-off-by: Okan Sahin <okan.sahin@analog.com>
This commit enables counter RTC for MAX32655 FTHR.

Co-authored-by: Sadik Ozer <sadik.ozer@analog.com>
Signed-off-by: Okan Sahin <Okan.Sahin@analog.com>
This commit enables counter RTC for MAX32666 FTHR.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit enables counter RTC for MAX32666 EVKIT.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit enables counter RTC for MAX32690 EVKIT.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit enables RTC for counter MAX32670 EVKIT.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit enables counter RTC for MAX32672 EVKIT.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit enables counter RTC for MAX32672 FTHR.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit enables counter RTC for MAX32662 EVKIT.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit enables counter RTC test for MAX32 MCUs.

Co-authored-by: Okan Sahin <okan.sahin@analog.com>
Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
@oknshn
Copy link
Contributor Author

oknshn commented Oct 22, 2024

Needs rebase
Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Counter platform: ADI Analog Devices, Inc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants