Skip to content

Conversation

@ozersa
Copy link
Contributor

@ozersa ozersa commented Aug 1, 2024

This PR adds MAX32xxx MCUs timer node and provide counter driver that based on timer peripheral.

Timer node and counter driver enabled for:

  • MAX32655
  • MAX32670
  • MAX32672
  • MAX32680
  • MAX32690
  • MAX32666
  • MAX32662

tests\drivers\counter\counter_basic_api output for some boards.

MAX32655EVKIT
image

MAX32690EVKIT
image

MAX32670EVKIT
image

MAX32672EVKIT
image

samples\drivers\counter\alarm output
image

Known issue (will be investigated after this PR):
LpTimer1 not pass test on MAX32655, MAX32690
LpTimer0/1 not pass test on MAX32672

@ozersa ozersa force-pushed the add-MAX32xxx-Counter-Timer branch 2 times, most recently from fdaa7c6 to 0419cb3 Compare August 2, 2024 05:31
@zephyrbot
Copy link

zephyrbot commented Aug 2, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_adi DNM This PR should not be merged (Do Not Merge) labels Aug 2, 2024
@MaureenHelm
Copy link
Member

Needs rebase

@ozersa ozersa force-pushed the add-MAX32xxx-Counter-Timer branch from 0419cb3 to ae2e2c0 Compare August 9, 2024 07:33
@ozersa
Copy link
Contributor Author

ozersa commented Aug 9, 2024

Needs rebase

Done.

@zephyrbot zephyrbot removed manifest manifest-hal_adi DNM This PR should not be merged (Do Not Merge) labels Aug 9, 2024
@ozersa ozersa mentioned this pull request Aug 9, 2024
@ozersa ozersa marked this pull request as draft August 14, 2024 05:16
@ozersa ozersa force-pushed the add-MAX32xxx-Counter-Timer branch from ae2e2c0 to 1b6e3e7 Compare August 14, 2024 10:40
@ozersa ozersa marked this pull request as ready for review August 14, 2024 10:40
@zephyrbot zephyrbot requested a review from ttmut August 14, 2024 10:41
MaureenHelm
MaureenHelm previously approved these changes Aug 14, 2024
ozersa and others added 20 commits September 9, 2024 13:03
Add counter submode for low power timer too

Signed-off-by: Sadik Ozer <[email protected]>
Add counter submode for low power timer too

Signed-off-by: Sadik Ozer <[email protected]>
Add counter submode for low power timer too

Signed-off-by: Sadik Ozer <[email protected]>
Common counter driver based on timer for MAX32xxx MCUs
To use as wakeup source wakeup-source parameter shall be
defined as below

&lptimer0 {
	status = "okay";
	clock-source = <ADI_MAX32_PRPH_CLK_SRC_ERTCO>;
	wakeup-source;
	counter {
		status = "okay";
	};
};

Signed-off-by: Sadik Ozer <[email protected]>
Update MAX32655 board documents to include counter driver too.

Signed-off-by: Sadik Ozer <[email protected]>
Update MAX32690 board documents to include counter driver too.

Signed-off-by: Sadik Ozer <[email protected]>
Update MAX32670 board documents to include counter driver too.

Signed-off-by: Sadik Ozer <[email protected]>
Update MAX32672 board documents to include counter driver too.

Signed-off-by: Sadik Ozer <[email protected]>
Update MAX32680 board documents to include counter driver too.

Signed-off-by: Sadik Ozer <[email protected]>
Update MAX32666 board documents to include counter driver too.

Signed-off-by: Sadik Ozer <[email protected]>
Update MAX32662 board documents to include counter driver too.

Signed-off-by: Sadik Ozer <[email protected]>
This commit enables counter test for MAX32662EVKIT board

Signed-off-by: Sadik Ozer <[email protected]>
This commit enables counter test for MAX32655 boards.

Signed-off-by: Sadik Ozer <[email protected]>
This commit enables counter test for MAX32690evkit board.

Signed-off-by: Sadik Ozer <[email protected]>
This commit enables counter test for MAX32670 board.

Signed-off-by: Sadik Ozer <[email protected]>
This commit enables counter test for MAX32672 board.

Signed-off-by: Sadik Ozer <[email protected]>
Add overlay files are added to run counter_basic_api test on
MAX32680EVKIT.

Signed-off-by: Anıl Kara <[email protected]>
This commit enables counter test for MAX32666 boards.

Signed-off-by: Sadik Ozer <[email protected]>
MAX32 MCUs counter node added in main.c

Signed-off-by: Anıl Kara <[email protected]>
This commit add MAX32 MCUs overlay file for sample/drivers/counter

Signed-off-by: Sadik Ozer <[email protected]>
@ozersa
Copy link
Contributor Author

ozersa commented Sep 9, 2024

Could also add overlay files for MAX32666 and MAX32675 in counter_basic_api test.

Added MAX32666 and MAX32662, I do not have chance to test it on MAX32675EVKIT, so just added timer node for MAX32675. and would like to continue without MAX32675.

@ttmut
Copy link
Contributor

ttmut commented Sep 9, 2024

The number of commits can be greatly reduced by combining commits from a single author into a single commit.

@ozersa
Copy link
Contributor Author

ozersa commented Sep 9, 2024

The number of commits can be greatly reduced by combining commits from a single author into a single commit.

Lets keep it as it is.

@MaureenHelm MaureenHelm added this to the v4.0.0 milestone Sep 11, 2024
@nashif nashif merged commit 44e72ab into zephyrproject-rtos:main Sep 12, 2024
@ozersa ozersa deleted the add-MAX32xxx-Counter-Timer branch September 12, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants