-
Notifications
You must be signed in to change notification settings - Fork 8.2k
ARC: boards: HSDK: get rid of pinmux usage #45343
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
ARC: boards: HSDK: get rid of pinmux usage #45343
Conversation
gmarull
left a comment
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.
Where is the pinctrl driver?
|
Hi @gmarull
We don't need it - we used to use pinmux driver just to unconditionally set one SoC-specific register once during boot. But it's excessive to use pinmux / pinctrl for that. So we simply set this register from platform code and drop old pinmux driver. |
To my understanding current pinmux driver allows to set alt funcs, it's not "one Soc-specific register", zephyr/drivers/pinmux/pinmux_hsdk.c Lines 21 to 34 in dfc4c3f
zephyr/boards/arc/hsdk/pinmux.c Lines 19 to 30 in dfc4c3f
This functionality is now removed. Note that it is not acceptable anymore to do this sort of configuration at board level using custom C code. |
|
The more advanced pinmux functionality isn't required/used by 'normal' applications, so this was the simpler solution. Evgeniy, maybe create an enhancement issue to add pinmux functionality for HSDK in the future using the new pinmux solution? |
what are 'normal' applications? Does that mean boards using this SoC are always forced to route signals to the same set of pins? |
Codecov Report
@@ Coverage Diff @@
## main #45343 +/- ##
==========================================
- Coverage 49.89% 49.88% -0.02%
==========================================
Files 643 643
Lines 80626 80677 +51
Branches 18933 18952 +19
==========================================
+ Hits 40230 40246 +16
- Misses 33733 33763 +30
- Partials 6663 6668 +5
Continue to review full report at Codecov.
|
c941d86 to
acb6374
Compare
Currently we don't support other configurations, so yes. |
Pinmux is deprecated (see zephyrproject-rtos#39740) so let's get rid of it's usage for HSDK board. As we call pinmux only once at init phase we simply do register setup in platform code instead of pinmux. Signed-off-by: Evgeniy Paltsev <[email protected]> Signed-off-by: Eugeniy Paltsev <[email protected]>
Pinmux is depricated (see zephyrproject-rtos#39740) and shouldn't be used anymore Signed-off-by: Evgeniy Paltsev <[email protected]> Signed-off-by: Eugeniy Paltsev <[email protected]>
acb6374 to
b08e559
Compare
|
Hi @gmarull Thanks! |
|
If there is no disagreement anymore, let's merge this. |
henrikbrixandersen
left a comment
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.
I think this is acceptable for now, but a proper pinctrl driver should be added going forward. Please open a enhancement request issue for this when merged.
Pinmux is deprecated (see #39740) so let's get rid of it's usage for HSDK board.
As we call pinmux only once at init phase we simply do register setup in platform code instead of pinctrl.