-
Notifications
You must be signed in to change notification settings - Fork 122
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
dts: add HRTIM pinctrl #87
Conversation
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.
@martinjaeger We usually add the config changes in one commit and the autogenerated content into another one to ease review process.
Ah, makes sense. Will fix that tomorrow. |
Add signals generation for high-resolution timer (HRTIM). HRTIM is not available on F1 targets. Signed-off-by: Martin Jäger <[email protected]>
New batch of pinctrl.dtsi files including HRTIM signals Signed-off-by: Martin Jäger <[email protected]>
Wonderful work @martinjaeger. |
Great. Zephyr has feature freeze at the moment until v2.5 is released (scheduled for 12 February). After that we should probably get this PR in rather quickly. In the meantime you can already add something like this to your board.dts as a workaround:
|
Is there a Zephyr side PR related to this? |
Not yet. The driver is still work in progress. It doesn't really make sense to use the HRTIM with the existing "simple" PWM API. The HRTIM is meant for motor driver and power converter applications with complementary PWM outputs. So we'll probably have to come up with a new API for that (half_bridge, sync_pwm, complementary_pwm or how ever it may be called). |
@martinjaeger Set as DNM waiting for a PR to use these in main Zephyr repo. Any objections ? |
@erwango I think it is still fine to have definitions for peripherals that are currently not used in-tree. It can be helpful for people developing custom drivers. |
I agree with @gmarull. The pinctrl driver is fully supported upstream and this PR only adds features to the pinctrl driver. IMO we could even say that we generate all pinctrl devicetree nodes that are defined in the original ST cube XML files in order to make out-of-tree driver development on top of pinctrl easier. We don't need a dedicated commit upstream to update |
@gmarull, @martinjaeger Ok, it doesn't harm indeed and I don't have strong opinion otherwise.
I'm not particularly of favor of this as I prefer to have users and reviewers for each peripherals (as it seems to be that case here), and avoid generating blindly configurations that could be potentially broken. So I prefer this remains a case by case operation. |
@galak, this one is ready for merge. |
Add options for high-resolution timer HRTIM to pinctrl-config and generate new pinctrl DTS files.
I know that the HRTIM peripheral is not yet supported by Zephyr, but I'm working on a driver and would like to use the pinctrl properly already.