Skip to content

airoha: configure GPIO mux explicitly on AN7581, AN7583 and EN7523 - #26508

Open
zhengping-zhang wants to merge 1 commit into
openwrt:mainfrom
zhengping-zhang:airoha-pinctrl-config-gpio-mux
Open

zhengping-zhang wants to merge 1 commit into
openwrt:mainfrom
zhengping-zhang:airoha-pinctrl-config-gpio-mux

Conversation

@zhengping-zhang

@zhengping-zhang zhengping-zhang commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

@openwrt openwrt Bot added the target/airoha pull request/issue for airoha target label Nov 6, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
zhengping-zhang force-pushed the airoha-pinctrl-config-gpio-mux branch from 8887fe6 to 25cfb3b Compare November 6, 2026 07:29
@zhengping-zhang

Copy link
Copy Markdown
Contributor Author

@Ansuel @danielschwierzeck Could you please take a look at this PR when you have a chance? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/airoha pull request/issue for airoha target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants