From: Joel Selvaraj <foss@joelselvaraj.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: sdm845-shift-axolotl: fix touchscreen properties
Date: Fri, 17 Oct 2025 07:13:15 +0000 [thread overview]
Message-ID: <267eb29d-b506-43df-9380-3d79798c772c@joelselvaraj.com> (raw)
In-Reply-To: <8a5eecdd-d80f-4955-8ab7-cf6fd991a3b7@oss.qualcomm.com>
Hi Konrad Dybcio,
On 10/6/25 9:49 AM, Konrad Dybcio wrote:
> On 9/19/25 11:02 AM, Joel Selvaraj via B4 Relay wrote:
>> From: Joel Selvaraj <foss@joelselvaraj.com>
>> ---
>> arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 17 ++++++++---------
>> 1 file changed, 8 insertions(+), 9 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
>> index 89260fce6513937224f76a94e1833a5a8d59faa4..d4062844234e33b0d501bcb7d0b6d5386c822937 100644
>> --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
>> +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
>> @@ -434,20 +434,19 @@ &i2c5 {
>> status = "okay";
>>
>> touchscreen@38 {
>> - compatible = "focaltech,fts8719";
>> + compatible = "focaltech,ft5452";
>> reg = <0x38>;
>> - wakeup-source;
>
> All the changes look good given your commit message, but you dropped
> this wakeup-source property without explanation. It's fine to do so
> if it's intended, but please mention it if so
In reference to the touchscreen/edt-ft5x06.c driver which is used here,
I am bit confused how wakeup-source works. Does specifying wakeup-source
in dts automatically makes "device_may_wakeup(dev)" return true, even if
device_init_wakeup is NOT configured in the driver? I noticed some
drivers do:
device_init_wakeup(dev,device_property_read_bool(dev, "wakeup-source"));
but the edt-ft5x06 driver doesnt do the init, but directly checks for
may_wakeup in suspend/resume.
Few scenarios based on the driver code and my understanding:
1. if device_may_wakeup will return true when wakeup-source is
specified, I probably want to just remove it, because irq and regulator
is not disabled during suspend and this will likely cause power drain.
2. The driver has an option to specify wake-gpio. In which case, the
touchscreen is put in some low power hibernate mode with irq and
regulators still enabled. But the touchscreen controller used in this
device doesn't seem to have support for a wake-gpio (atleast based on
downstream code). So that is not an option.
3. if device_may_wakeup will always return false since
device_init_wakeup is not configured and since no wake-gpio is
available, the irq and regulators will be disabled during suspend.
Therefore, the device will not wake up from sleep even if wakeup-source
is specified as the irq is not going to be triggered.
So probably no point in specifying wakeup-source either way I think? But
I am not sure which of these explanation is correct and thus not sure
what to mention in the v2 patch commit message. Also, there is a
possibility I am not understanding something. A little help from someone
will be very nice and sorry if I am obviously missing something.
Thanks,
Joel Selvaraj
>
> Konrad
>
next prev parent reply other threads:[~2025-10-17 7:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 9:02 Joel Selvaraj via B4 Relay
2025-10-06 14:49 ` Konrad Dybcio
2025-10-17 7:13 ` Joel Selvaraj [this message]
2025-10-17 9:57 ` Konrad Dybcio
2025-10-18 3:43 ` Joel Selvaraj
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=267eb29d-b506-43df-9380-3d79798c772c@joelselvaraj.com \
--to=foss@joelselvaraj.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@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®