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 support PWM EMIOS for S32Z270 #79532

Merged
merged 3 commits into from
Jan 18, 2025

Conversation

Dat-NguyenDuy
Copy link
Contributor

Firstly, this remove period, duty cycle and polarity configuration from emios channel devicetree. PWM signal is produced only when pwm_set* API is called. Then adds support PWM EMIOS for S32Z270 and enables its usage for board s32z270dc2.
Tested on tests\drivers\pwm_api and tests\drivers\pwm_loopback

@zephyrbot
Copy link
Collaborator

zephyrbot commented Oct 8, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@c15dd51 zephyrproject-rtos/hal_nxp@dad9b28 zephyrproject-rtos/[email protected]

All manifest checks OK

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

@zephyrbot zephyrbot added manifest manifest-hal_nxp DNM This PR should not be merged (Do Not Merge) labels Oct 8, 2024
@Dat-NguyenDuy
Copy link
Contributor Author

Rebased to fix conflict

@bjarki-andreasen
Copy link
Collaborator

Looks good, should be ready to merge when manifest update points to a sha :)

manuargue
manuargue previously approved these changes Dec 18, 2024
Copy link
Collaborator

@mmahadevan108 mmahadevan108 left a comment

Choose a reason for hiding this comment

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

Needs to be sequenced behind #81113
@Dat-NguyenDuy I merged the HAL side. After the gating PR merges, then we can updatr the HAL SHA and I'll clear my CR

@Dat-NguyenDuy
Copy link
Contributor Author

Needs to be sequenced behind #81113 @Dat-NguyenDuy I merged the HAL side. After the gating PR merges, then we can updatr the HAL SHA and I'll clear my CR

Yep, np. Thanks.

Removing period, duty and polarity configuration from
channel devicetree. At boot time, only minimal setup like
pinctrl, prescaler, etc should be initialized. PWM signal
is produced by using pwm_set* API

Also after this change, PWM period, duty are changed at the
next counter period boundary

Signed-off-by: Dat Nguyen Duy <[email protected]>
This adds support PWM EMIOS for NXP S32Z SoC, both PWM pulse
generate and pulse capture are supported

Signed-off-by: Dat Nguyen Duy <[email protected]>
Add support PWM eMIOS for s32z2xxdc2 board. There is no LED
on-board dedicated for PWM, so no sample is supported. Only
enabling some pwm tests

Signed-off-by: Dat Nguyen Duy <[email protected]>
@mmahadevan108
Copy link
Collaborator

Updated to pull in the changes from the HAL.

@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Jan 17, 2025
@mmahadevan108
Copy link
Collaborator

@bjarki-andreasen , can you please review one more time.

@kartben kartben merged commit 82b3e2f into zephyrproject-rtos:main Jan 18, 2025
33 of 34 checks passed
@manuargue manuargue deleted the s32ze-pwm-emios branch January 18, 2025 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: PWM Pulse Width Modulation manifest manifest-hal_nxp platform: NXP S32 NXP Semiconductors, S32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants