-
Notifications
You must be signed in to change notification settings - Fork 13
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
pinctrl: introduce pin configuration autogenerator #1
Closed
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
Files were converted to unix style using dos2unix: find . type f -print0 | xargs -0 dos2unix -k Signed-off-by: Gerson Fernando Budke <[email protected]>
The GigaDevices CAN driver uses similar names defined in Zephyr. This moves conflicts to source files. Signed-off-by: Gerson Fernando Budke <[email protected]>
Zephyr define timer_init function which conflicts with GigaDevice timer driver API. This rename timer_init method to timer_initialize to solve conflict. Signed-off-by: Gerson Fernando Budke <[email protected]>
gmarull
force-pushed
the
pinctrl-autogen
branch
6 times, most recently
from
October 14, 2021 20:46
07d4914
to
862f41c
Compare
Signed-off-by: Gerard Marull-Paretas <[email protected]>
gmarull
force-pushed
the
pinctrl-autogen
branch
2 times, most recently
from
October 14, 2021 21:55
0be8ff8
to
bbb02b1
Compare
Add common AFIO utilities, e.g. config bit field and helper macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add details on the format of the pin configuration files. Signed-off-by: Gerard Marull-Paretas <[email protected]>
The gd32pinctrl script autogenerates valid pinctrl definitions from a configuration file. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add pin configurations for the GD32VF103XX series. Information has been taken from datasheet/reference manual. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add definitions for remap options. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Files autogenerated using gd32pinctrl script. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add pin configurations for the GD32F450XX series. Information has been taken from datasheet. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Files autogenerated using gd32pinctrl script. Signed-off-by: Gerard Marull-Paretas <[email protected]>
The include folder is used to store autogenerated pinctrl headers. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Test that generated content matches reference files. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add development requirements, including flake8 config file. Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add readme with some usage details (dependencies, tests, etc.) Signed-off-by: Gerard Marull-Paretas <[email protected]>
Signed-off-by: Gerard Marull-Paretas <[email protected]>
Signed-off-by: Gerard Marull-Paretas <[email protected]>
gmarull
force-pushed
the
pinctrl-autogen
branch
from
October 14, 2021 22:29
bbb02b1
to
b73947d
Compare
gmarull
changed the title
[WIP] pinctrl: introduce pin configuration autogenerator
pinctrl: introduce pin configuration autogenerator
Oct 14, 2021
5 tasks
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.
This PR adds support for autogenerating valid pin configurations for GD32 devices based on a set of configuration files build from datasheets/reference manuals. The script supports both, devices using the remap model, e.g. GD32F103 and devices using the alternate function model, e.g. GD32F450.
The autogenerated definitions contain the following information:
Remap/AFIO model:
AF model:
The definitions can be used later in a pinctrl driver like this:
Considerations: