-
Notifications
You must be signed in to change notification settings - Fork 109
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
Bring DTSI to the latest state and correct RTS/CTS pin configuration #238
Open
GeorgeCGV
wants to merge
4
commits into
zephyrproject-rtos:main
Choose a base branch
from
GeorgeCGV:dtsi_corrections
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GeorgeCGV
force-pushed
the
dtsi_corrections
branch
2 times, most recently
from
November 8, 2024 11:42
de9385e
to
6bf3d2d
Compare
mathieuchopstm
suggested changes
Nov 8, 2024
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.
Minor commit-related requests:
- please change first regeneration commit's title from
dts: st: regenerate all dtsi files
todts: st: regenerate all dtsi files with latest pindata
- remove the skipped files list from
genpinctrl
commit's message- move it to
dts: st: regenerate all dtsi files with latest pindata
instead - with a header likeThe following SoCs are skipped due to incompatibility with genpinctrl:
- I would also make the
genpinctrl
commit message more generic, something like:
- move it to
The latest STM32 Open Pin Data revision contains SoC descriptors that
are not handled properly by genpinctrl yet. These files are parsed
properly but trigger an exception during the pinctrl template rendering.
Add exception logic around template rendering so that problematic SoC files
are skipped - with an error message - instead of crashing the script, which
would otherwise prevent regeneration of DTSI for *all* SoCs.
This allows us to keep updating the pinctrl DTSI for supported SoCs
even when new SoCs requiring genpinctrl updates are added to Pin Data.
Otherwise LGTM.
The latest STM32 Open Pin Data revision contains SoC descriptors that are not handled properly by genpinctrl yet. These files are parsed properly but trigger an exception during the pinctrl template rendering. Add exception logic around template rendering so that problematic SoC files are skipped - with an error message - instead of crashing the script, which would otherwise prevent regeneration of DTSI for *all* SoCs. This allows us to keep updating the pinctrl DTSI for supported SoCs even when new SoCs requiring genpinctrl updates are added to Pin Data. Co-authored-by: Mathieu Choplain <[email protected]> Signed-off-by: Georgij Cernysiov <[email protected]>
Brings everything to the latest state using the current config and pin open data f4ec11. The following SoCs are skipped due to incompatibility with genpinctrl: * stm32c071k8tx-pinctrl.dtsi * stm32c071k8txn-pinctrl.dtsi * stm32c071c8ux-pinctrl.dtsi * stm32c071c8uxn-pinctrl.dtsi * stm32c071cbtxn-pinctrl.dtsi * stm32c071rbixn-pinctrl.dtsi * stm32c071kbtx-pinctrl.dtsi * stm32c071kbuxn-pinctrl.dtsi * stm32c071k8uxn-pinctrl.dtsi * stm32c071k8ux-pinctrl.dtsi * stm32c071cbuxn-pinctrl.dtsi * stm32c071cbux-pinctrl.dtsi * stm32c071kbtxn-pinctrl.dtsi * stm32c071kbux-pinctrl.dtsi * stm32c071c8tx-pinctrl.dtsi * stm32c071c8txn-pinctrl.dtsi * stm32c071rbtxn-pinctrl.dtsi * stm32c071rbtx-pinctrl.dtsi * stm32c071r8tx-pinctrl.dtsi * stm32c071cbtx-pinctrl.dtsi * stm32c071r8txn-pinctrl.dtsi Signed-off-by: Georgij Cernysiov <[email protected]>
GeorgeCGV
force-pushed
the
dtsi_corrections
branch
from
November 8, 2024 12:46
6bf3d2d
to
2124d75
Compare
mathieuchopstm
approved these changes
Nov 8, 2024
* CTS - remove open-drain * RTS - replace open-drain with push-pull - remove pull-up bias Signed-off-by: Georgij Cernysiov <[email protected]>
Regenerate to get RTS/CTS pin configuration changes using pin open data f4ec11. Signed-off-by: Georgij Cernysiov <[email protected]>
GeorgeCGV
force-pushed
the
dtsi_corrections
branch
from
November 8, 2024 14:23
2124d75
to
d5ca6e3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
genpinctrl.py
is corrected with a patch proposed by @mathieuchopstm that handles template exceptions raised by the C0 family.The DTSI files are regenerated with pin open data f4ec11, that removes:
stm32wba50keux
, modifies others, and adds some new ones.A correction to RTS/CTS serial pins is added:
open-drain
open-drain
withpush-pull
pull-up
biasSuch configuration shall support most use cases and provide faster RTS switching.
The DTSI files are regenerated again to include RTS/CTS configuration changes.