Re: [PATCH v2 2/2] pinctrl: qcom: Add Halliday pinctrl driver

From: Bartosz Golaszewski

Date: Tue Nov 24 2026 - 05:35:50 EST


On Mon, Nov 23, 2026 at 07:59:34PM +0000, Stanislav Aleksandrov wrote:
> On Mon, Nov 23, 2026 at 05:16:55PM +0100, Bartosz Golaszewski wrote:
> > 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?
>
> I do not have the interrupt map. The PDC map is from the pinctrl-anorak
> driver in Samsung's kernel source. There are 93 GPIOs with a wakeup
> enable bit, but its PDC map contains only 76.
>
> I did a test: set an interrupt handler on every unused PDC pin on
> my headset and then I toggled each GPIO to see which pin fires.
>
> 1. Out of existing 76 entries 42 PDC pins got triggered. 26 are used
> by devices on the headset and 8 do not change their level,
> so these 34 are not tested.
>
> 2. 17 missing GPIOs: only 14 give a result:
>
> GPIO 42 -> PDC 105, 48 -> 87, 63 -> 122, 80 -> 42, 97 -> 96,
> 105 -> 55, 143 -> 72, 151 -> 118, 168 -> 94, 205 -> 130,
> 218 -> 124, 219 -> 68, 221 -> 133, 223 -> 134
>
> I am not sure about 151 and 168, their lines are not quiet on the
> headset. GPIOs 114, 125 and 162 do not change their level.
>
> I think it is not a good idea to add these pins without documentation.
> If someone can confirm these pins are correct then I will add them in
> the next version.
>

Here, use this:

static const struct msm_gpio_wakeirq_map halliday_pdc_map[] = {
{ 18, 99 }, { 31, 120 }, { 37, 101 }, { 40, 103 }, { 41, 104 },
{ 42, 105 }, { 43, 106 }, { 44, 107 }, { 45, 92 }, { 46, 83 },
{ 47, 86 }, { 48, 87 }, { 53, 111 }, { 57, 121 }, { 60, 56 },
{ 61, 108 }, { 62, 109 }, { 63, 122 }, { 66, 110 }, { 68, 57 },
{ 72, 112 }, { 74, 43 }, { 78, 114 }, { 80, 42 }, { 84, 67 },
{ 86, 66 }, { 87, 100 }, { 91, 102 }, { 94, 93 }, { 97, 96 },
{ 98, 123 }, { 100, 44 }, { 101, 97 }, { 103, 75 }, { 104, 52 },
{ 105, 55 }, { 106, 48 }, { 110, 53 }, { 111, 76 }, { 112, 49 },
{ 113, 50 }, { 114, 51 }, { 115, 54 }, { 118, 58 }, { 119, 77 },
{ 122, 62 }, { 123, 63 }, { 125, 59 }, { 129, 61 }, { 133, 65 },
{ 137, 69 }, { 139, 70 }, { 142, 71 }, { 143, 72 }, { 145, 74 },
{ 146, 45 }, { 147, 78 }, { 148, 60 }, { 150, 119 }, { 151, 118 },
{ 152, 85 }, { 153, 79 }, { 154, 80 }, { 155, 81 }, { 157, 84 },
{ 162, 64 }, { 163, 88 }, { 164, 89 }, { 165, 73 }, { 166, 90 },
{ 167, 91 }, { 168, 94 }, { 169, 82 }, { 170, 95 }, { 171, 98 },
{ 172, 47 }, { 175, 46 }, { 186, 129 }, { 189, 131 }, { 194, 116 },
{ 196, 117 }, { 199, 113 }, { 201, 128 }, { 205, 130 }, { 207, 115 },
{ 208, 132 }, { 210, 135 }, { 212, 136 }, { 215, 137 }, { 218, 124 },
{ 219, 68 }, { 221, 133 }, { 223, 134 },
};


> > 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.
>
> I'll add this in v3. EGPIO_PRESENT is set on GPIOs 185 to 223.
>

Thanks,
Bartosz