Repository navigation
airoha: configure GPIO mux explicitly on AN7581, AN7583 and EN7523 - #26508
Open
zhengping-zhang wants to merge 1 commit into
Open
zhengping-zhang wants to merge 1 commit into
zhengping-zhang wants to merge 1 commit into
Conversation
openwrt-ai
reviewed
Nov 6, 2026
openwrt-ai
left a comment
Collaborator
There was a problem hiding this comment.
Commit checks
- 8887fe6 "airoha: configure GPIO mux explicitly on AN7581, AN7583 and EN7523" — the body says it updates the AN7581 GPIO bindings and orders binding updates in the series, but the diff touches no binding files and the series skips patches 03, 06, 10 and 12 of 12. Either add the binding patches or drop those sentences and say the binding patches are left out on purpose.
Generated by Claude Code
GPIO requests previously left the pin mux unchanged, allowing settings inherited from the bootloader to prevent pins from operating as GPIOs. The existing probe-time IOMUX reset patch attempts to restore the default GPIO configuration before peripheral pinctrl states are applied. This temporarily changes the mux of pads already configured by the bootloader, including those used by eMMC. The resulting mux transitions during the bootloader-to-kernel handover have been observed to cause flash access failures with some eMMC devices, including ESMT FC51 series. Replace the probe-time reset with explicit GPIO mux selection. Add shared GPIO request handling and SoC-specific mux tables so GPIO consumers and explicit GPIO pinctrl states select the appropriate per-pad force GPIO or dedicated-pad GPIO mode. Clear the corresponding overrides when selecting peripheral functions, serialize mux updates and reject conflicting shared-register settings. Enable the new GPIO request handling and mux conflict checks only for AN7581, AN7583 and EN7523. Other SoCs retain their existing GPIO request behavior. Correct AN7581 GPIO PHY LED0/LED1 pin groups and the corresponding dts. Correct the EN7523 PCM SPI CS2 group for the 128-pin package. Reorganize the pinctrl patch series to group related changes and order binding updates and driver changes according to their dependencies. Signed-off-by: Zhengping Zhang <[email protected]>
zhengping-zhang
force-pushed
the
airoha-pinctrl-config-gpio-mux
branch
from
November 6, 2026 07:29
8887fe6 to
25cfb3b
Compare
Contributor
Author
|
@Ansuel @danielschwierzeck Could you please take a look at this PR when you have a chance? Thanks! |
This was referenced Nov 20, 2026
This file contains hidden or 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
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.
GPIO requests previously left the pin mux unchanged, allowing settings inherited from the bootloader to prevent pins from operating as GPIOs.
The existing probe-time IOMUX reset patch attempts to restore the default GPIO configuration before peripheral pinctrl states are applied. This temporarily changes the mux of pads already configured by the bootloader, including those used by eMMC. The resulting mux transitions during the bootloader-to-kernel handover have been observed to cause flash access failures with some eMMC devices, including ESMT FC51 series.
Replace the probe-time reset with explicit GPIO mux selection. Add shared GPIO request handling and SoC-specific mux tables so GPIO consumers and explicit GPIO pinctrl states select the appropriate per-pad force GPIO or dedicated-pad GPIO mode. Clear the corresponding overrides when selecting peripheral functions, serialize mux updates and reject conflicting shared-register settings.
Enable the new GPIO request handling and mux conflict checks only for AN7581, AN7583 and EN7523. Other SoCs retain their existing GPIO request behavior.
Correct AN7581 GPIO PHY LED0/LED1 pin groups. Correct the EN7523 PCM SPI CS2 group for the 128-pin package.
Reorganize the pinctrl patch series to group related changes and driver changes according to their dependencies.