[PATCH] ARM: OMAP: fix USB regression on Nokia N8x0

Aaro Koskinen posted 1 patch 1 year, 11 months ago
arch/arm/mach-omap2/board-n8x0.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
[PATCH] ARM: OMAP: fix USB regression on Nokia N8x0
Posted by Aaro Koskinen 1 year, 11 months ago
GPIO chip labels are wrong for OMAP2, so the USB does not work. Fix.

Fixes: 8e0285ab95a9 ("ARM/musb: omap2: Remove global GPIO numbers from TUSB6010")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 arch/arm/mach-omap2/board-n8x0.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
index 31755a378c73..2c91148c1b39 100644
--- a/arch/arm/mach-omap2/board-n8x0.c
+++ b/arch/arm/mach-omap2/board-n8x0.c
@@ -79,10 +79,8 @@ static struct musb_hdrc_platform_data tusb_data = {
 static struct gpiod_lookup_table tusb_gpio_table = {
 	.dev_id = "musb-tusb",
 	.table = {
-		GPIO_LOOKUP("gpio-0-15", 0, "enable",
-			    GPIO_ACTIVE_HIGH),
-		GPIO_LOOKUP("gpio-48-63", 10, "int",
-			    GPIO_ACTIVE_HIGH),
+		GPIO_LOOKUP("gpio-0-31", 0, "enable", GPIO_ACTIVE_HIGH),
+		GPIO_LOOKUP("gpio-32-63", 26, "int", GPIO_ACTIVE_HIGH),
 		{ }
 	},
 };
-- 
2.39.2
Re: [PATCH] ARM: OMAP: fix USB regression on Nokia N8x0
Posted by Linus Walleij 1 year, 11 months ago
On Fri, Feb 23, 2024 at 7:17 PM Aaro Koskinen <aaro.koskinen@iki.fi> wrote:

> GPIO chip labels are wrong for OMAP2, so the USB does not work. Fix.
>
> Fixes: 8e0285ab95a9 ("ARM/musb: omap2: Remove global GPIO numbers from TUSB6010")
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij