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

Flexio pwm #235

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Flexio pwm #235

merged 1 commit into from
Apr 4, 2024

Conversation

jlaitine
Copy link

@jlaitine jlaitine commented Apr 2, 2024

WIP: I'll send to upstream first, after the pin muxings are merged.

@jlaitine jlaitine requested a review from pussuw April 2, 2024 06:40
@jlaitine jlaitine force-pushed the flexio_pwm branch 5 times, most recently from 31691ce to b7cd9fc Compare April 4, 2024 17:17
This is a high resolution PWM driver, utilizing one 16-bit Flex-IO timer for
generating PWM period and the rest of the timers to generate PWM duty cycles.

This means that the period has to be the same for every PWM generated from one
FLEXIO block, but this way we can get 16-bit resolution for the PWM signals.

For a typical IMX9 HW there are 8 timers for each Flex-IO block, which means
that by using this driver one can get 7 PWM outputs from one block.

This driver can be later extended to have configuration options to use all
8 channels per flex-io by either using 8+8 -bit timer (less resolution) or by
using an external trigger from an LPIT.

Signed-off-by: Jukka Laitinen <[email protected]>
@jlaitine jlaitine marked this pull request as ready for review April 4, 2024 17:19
@jlaitine
Copy link
Author

jlaitine commented Apr 4, 2024

Direct cherry-pick from upstream

@jlaitine jlaitine merged commit fc9595a into master Apr 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant