-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
tests: pwm: Add test suite with GPIO loopback #82258
Conversation
f0327be
to
355ad35
Compare
355ad35
to
fe6ead2
Compare
We should probably align here since we have two PRs implementing gpio loopback for pwms #82485 :) |
hi @bjarki-andreasen, looks like we have a duplicate indeed :) |
Your PR was created first, so it will take precedence unless you decide otherwise, I have asked the author of #82485 to review this one, I'm sure we can get something great out of it :) |
Pinging @nordic-pikr as PR owner. Would you review this one? |
Hi, I'm actually quite busy, I'm afraid I won't be able to do a review until the new year, at first glance, looks better than mine :) |
@raffarost I think we can make it ready then. |
fe6ead2
to
9f4539b
Compare
tests/drivers/pwm/pwm_gpio_loopback/dts/bindings/test-pwm-gpio-loopback.yaml
Outdated
Show resolved
Hide resolved
9f4539b
to
53d9897
Compare
thank you for your valuable comments! I hope to have addressed them properly. I removed test-cases related to duty 100%+ as the API already does the check. |
53d9897
to
3484215
Compare
3484215
to
ce65ad9
Compare
ce65ad9
to
07cfd89
Compare
I don't know which option will be better, but it is certain that it needs to be unhardcoded. In Nordic cases, we will need to provide the channel number as a parameter somehow. |
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.
parameterize it please
07cfd89
to
2dcea25
Compare
@nordic-pikr @bjarki-andreasen PTAL to see if this is better |
2dcea25
to
63130f1
Compare
Add PWM test suite which uses GPIO as loopback input to check the programmed timings. Signed-off-by: Raffael Rostagno <[email protected]>
Add test overlays for ESP32 devices. Signed-off-by: Raffael Rostagno <[email protected]>
63130f1
to
061e6f4
Compare
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.
Looks good
I didn't have a chance to check it yesterday because of a bankholiday. What do you say for changing the definition names to e.g. TEST_*, because the current names are used in our driver. Please take a look at 83640 |
hi @nordic-pikr, sure we can change the names |
More like |
@nordic-pikr @bjarki-andreasen sure, LGTM |
Add PWM test suite which uses GPIO as loopback input to check the programmed timings.
Used for devices which don't have CC available.