mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stanislav Aleksandrov <lightofmysoul@gmail.com>
To: Bartosz Golaszewski <brgl@kernel.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
	Linus Walleij <linusw@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] pinctrl: qcom: Add Halliday pinctrl driver
Date: Mon, 23 Nov 2026 19:59:34 +0000	[thread overview]
Message-ID: <20261123195935.1046144-1-lightofmysoul@gmail.com> (raw)
In-Reply-To: <su7onpn56wd2dtsn63qwbv5v65kci54rhqjndh6qjpb6gwlwnj@m2kxvcdrpjws>

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

      reply	other threads:[~2026-11-23 19:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 21:23 [PATCH v2 0/2] Add pinctrl driver for Qualcomm Halliday (SXR2250P) Stanislav Aleksandrov
2026-11-16 21:23 ` [PATCH v2 1/2] dt-bindings: pinctrl: document the Halliday Top Level Mode Multiplexer Stanislav Aleksandrov
2026-11-23 12:18   ` Krzysztof Kozlowski
2026-11-16 21:23 ` [PATCH v2 2/2] pinctrl: qcom: Add Halliday pinctrl driver Stanislav Aleksandrov
2026-11-23 16:16   ` Bartosz Golaszewski
2026-11-23 19:59     ` Stanislav Aleksandrov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123195935.1046144-1-lightofmysoul@gmail.com \
    --to=lightofmysoul@gmail.com \
    --cc=andersson@kernel.org \
    --cc=brgl@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®