git: aa70464671cd - main - allwinner: h6: Put the PM pins in bank M

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Thu, 12 Nov 2026 09:51:51 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=aa70464671cdc3f25101fb84dda264a19a5a3dd8

commit aa70464671cdc3f25101fb84dda264a19a5a3dd8
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2026-11-09 18:39:47 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2026-11-12 09:50:24 +0000

    allwinner: h6: Put the PM pins in bank M
    
    The PM0 to PM4 entries of the pad table of the R_PIO controller had port
    0 and pin 0, copied from the PL ones, so no pin could be found for a
    <&r_pio 1 N> specifier.  On the Pine H64 model B the reset GPIO of the
    SDIO WiFi power sequence is PM3, and the kernel panicked in
    mmc_pwrseq_attach() with "invalid pin" as the pin number was never set.
    
    Use port 1 and the real pin numbers, like the PL entries do with port 0.
    
    Tested on: H6
---
 sys/arm/allwinner/h6/h6_r_padconf.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/arm/allwinner/h6/h6_r_padconf.c b/sys/arm/allwinner/h6/h6_r_padconf.c
index 1d5f4942c1b1..46c18e2c5c35 100644
--- a/sys/arm/allwinner/h6/h6_r_padconf.c
+++ b/sys/arm/allwinner/h6/h6_r_padconf.c
@@ -44,11 +44,11 @@ const static struct allwinner_pins h6_r_pins[] = {
 	{"PL9",  0, 9,  {"gpio_in", "gpio_out", "s_cir", NULL, NULL, NULL, "pl_eint9", NULL}, 6, 9, 0},
 	{"PL10", 0, 10, {"gpio_in", "gpio_out", "s_spdif", NULL, NULL, NULL, "pl_eint10", NULL}, 6, 10, 0},
 
-	{"PM0",  0, 0,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint0", NULL}, 6, 0, 1},
-	{"PM1",  0, 0,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint1", NULL}, 6, 1, 1},
-	{"PM2",  0, 0,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint2", NULL}, 6, 2, 1},
-	{"PM3",  0, 0,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint3", NULL}, 6, 3, 1},
-	{"PM4",  0, 0,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint4", NULL}, 6, 4, 1},
+	{"PM0",  1, 0,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint0", NULL}, 6, 0, 1},
+	{"PM1",  1, 1,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint1", NULL}, 6, 1, 1},
+	{"PM2",  1, 2,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint2", NULL}, 6, 2, 1},
+	{"PM3",  1, 3,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint3", NULL}, 6, 3, 1},
+	{"PM4",  1, 4,  {"gpio_in", "gpio_out", NULL, NULL, NULL, NULL, "pm_eint4", NULL}, 6, 4, 1},
 };
 
 const struct allwinner_padconf h6_r_padconf = {