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

From: Stanislav Aleksandrov

Date: Mon Nov 23 2026 - 15:00:09 EST


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.

> 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.

Best regards,
Stanislav