Re: [PATCH v2 2/2] pinctrl: qcom: Add Halliday pinctrl driver
From: Bartosz Golaszewski
Date: Mon Nov 23 2026 - 11:17:06 EST
On Mon, Nov 16, 2026 at 09:23:59PM +0000, Stanislav Aleksandrov wrote:
> Add the pinctrl driver for the TLMM block found in the Qualcomm Halliday
> SoC: 224 GPIOs with their functions and PDC wakeup interrupts, the UFS
> reset pin and the SDC2 pins.
>
> The tables are based on Qualcomm's downstream pinctrl-anorak driver.
>
> Signed-off-by: Stanislav Aleksandrov <lightofmysoul@xxxxxxxxx>
> ---
...
> +
> +static const struct msm_gpio_wakeirq_map halliday_pdc_map[] = {
> + { 18, 99 }, { 31, 120 }, { 37, 101 }, { 40, 103 }, { 41, 104 },
> + { 43, 106 }, { 44, 107 }, { 45, 92 }, { 46, 83 }, { 47, 86 },
> + { 53, 111 }, { 57, 121 }, { 60, 56 }, { 61, 108 }, { 62, 109 },
> + { 66, 110 }, { 68, 57 }, { 72, 112 }, { 74, 43 }, { 78, 114 },
> + { 84, 67 }, { 86, 66 }, { 87, 100 }, { 91, 102 }, { 94, 93 },
> + { 98, 123 }, { 100, 44 }, { 101, 97 }, { 103, 75 }, { 104, 52 },
> + { 106, 48 }, { 110, 53 }, { 111, 76 }, { 112, 49 }, { 113, 50 },
> + { 115, 54 }, { 118, 58 }, { 119, 77 }, { 122, 62 }, { 123, 63 },
> + { 129, 61 }, { 133, 65 }, { 137, 69 }, { 139, 70 }, { 142, 71 },
> + { 145, 74 }, { 146, 45 }, { 147, 78 }, { 148, 60 }, { 150, 119 },
> + { 152, 85 }, { 153, 79 }, { 154, 80 }, { 155, 81 }, { 157, 84 },
> + { 163, 88 }, { 164, 89 }, { 165, 73 }, { 166, 90 }, { 167, 91 },
> + { 169, 82 }, { 170, 95 }, { 171, 98 }, { 172, 47 }, { 175, 46 },
> + { 186, 129 }, { 189, 131 }, { 194, 116 }, { 196, 117 }, { 199, 113 },
> + { 201, 128 }, { 207, 115 }, { 208, 132 }, { 210, 135 }, { 212, 136 },
> + { 215, 137 },
> +};
Can you verify the pdc map against the interrupt map? It looks incomplete to
me, there should be more wake GPIOs. Unless you have a reason to not
include all of them?
> +
> +static const struct msm_pinctrl_soc_data halliday_tlmm = {
> + .pins = halliday_pins,
> + .npins = ARRAY_SIZE(halliday_pins),
> + .functions = halliday_functions,
> + .nfunctions = ARRAY_SIZE(halliday_functions),
> + .groups = halliday_groups,
> + .ngroups = ARRAY_SIZE(halliday_groups),
> + .ngpios = 225,
> + .wakeirq_map = halliday_pdc_map,
> + .nwakeirq_map = ARRAY_SIZE(halliday_pdc_map),
> + .egpio_func = 9,
There's no egpio function. I assume you copied it from sm8550 but I
think you should do something similar to commit a326b0523fc1 ("pinctrl:
qcom: sa8775p: Enable egpio function") here.
Thanks,
Bartosz