-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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 PWM pulse capture driver for S32K344 #62695
Add PWM pulse capture driver for S32K344 #62695
Conversation
8cef7f9
to
e04e996
Compare
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
db01a08
to
69d2d42
Compare
69d2d42
to
6f499f6
Compare
3df256c
to
8f9d42f
Compare
The CI failures are due to #63238, you'll need to rebase once the fix is in |
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.
LGTM overall. @mmahadevan108 do you think we can get the HAL pr merged while we gather more feedback on this?
@Dat-NguyenDuy . Kindly rebase to pull in the HAL SHA |
@Dat-NguyenDuy , please also provided details on how this PR was tested. |
6e6b552
to
13e7c67
Compare
I rebased |
i tested with 13e7c67 |
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.
All my comments addressed
13e7c67
to
a50acd0
Compare
Rebased to fix conflict. But there would have build fails because of this PR was merged in hal_nxp zephyrproject-rtos/hal_nxp#273. But unfortunately the one in zephyr is still under review #62755 |
a50acd0
to
ab64292
Compare
This enables and declares interrupt handlers for eMIOS, the handlers defined and implemented at HAL, the driver takes the name for each id from interrupt-names devicetree Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
This prepares support pwm capture APIs by extended current pwm shim driver but use a differrence hal component: - Introduce a Kconfig options that will be set when PWM pulse generation API is used, it is also used to select the hal component. Guarding current code inside this Kconfig option - Increase #pwm-cells to 3, flags is supported for PWM capture - Do not require duty-cycle and polarity be set in dt, PWM capture doesn't need it. - Rename emum value for pwm-mode to keep only key information - Add preprocessor in case no channel is configured for generate PWM output, to avoid warning when build Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
ab64292
to
7ef24c3
Compare
@Dat-NguyenDuy , we have reverted the pinctlrl PR that. Can you please update your west.yml SHA. |
7ef24c3
to
722af2c
Compare
This introduces pwm capture shim driver for NXP S32 EMIOS, the driver uses SAIC mode that is supported for all channels, to capture the counter value on each edge for period/pulse measurement Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
Enable PWM loopback testing for mr_canhubk3 Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
722af2c
to
6da8592
Compare
This introduces PWM pulse capture driver over eMIOS peripheral for S32K344