Re: [PATCH] pinctrl: aspeed: Fix GPIO mux value for ADC-capable balls
Linus Walleij <[email protected]> Mon, 8 Jun 2026 10:19:24 +0200
| Newsgroups | org.ozlabs.lists.openbmc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel,org.ozlabs.lists.linux-aspeed |
|---|---|
| Message-ID | <CAD++jL==MdwmEM_9aHqfCnTfd4=g174Ytk3dZti0pwqcfU_UOw@mail.gmail.com> |
On Fri, Jun 5, 2026 at 8:38 AM Billy Tsai <[email protected]> wrote: > aspeed_g7_soc1_gpio_request_enable() unconditionally writes mux > function 0 to route the requested pin to GPIO. This is wrong for the > ADC-capable balls W17 through AB19 (ADC0-ADC15), where function 0 > selects the ADC input and function 1 selects GPIO. Requesting one of > those GPIOs therefore muxed the ball to ADC instead. > > Write mux value 1 for balls W17 through AB19 so the GPIO function is > actually selected. > > Fixes: 4af4eb66aac3 ("pinctrl: aspeed: Add AST2700 SoC1 support") > Signed-off-by: Billy Tsai <[email protected]> Patch applied! Will be for v7.2 at this point. Yours, Linus Walleij