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: Sat, 18 Oct 2025 03:43:39 +0000 [thread overview]
Message-ID: <2a014801-e1ef-47fa-b067-9b566b9d523e@joelselvaraj.com> (raw)
In-Reply-To: <8fd387f5-5b4c-48ea-aa3e-f453ddd5b159@oss.qualcomm.com>
Hi Konrad Dybcio,
On 10/17/25 4:57 AM, Konrad Dybcio wrote:
>>> 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.
>
> I think this may be the case
>
>> 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.
>
> IIRC Shift was pretty open about development collaboration.. maybe you
> could reach out to them to confirm on schematics that the GPIO is
> absent?
>
>> 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.
>
> I think this is intended for things like double-tap-to-wake, which
> obviously need some hw backing if you don't want to just keep the
> touchscreen online at "full power" 24/7
>
Yeah. I think I will remove the wakeup-source for now to avoid potential
battery drain. Once I get more info on wake-gpio/low-power mode and test
with users that tap-to-wake work as expected, it will be added. For now,
this is not something expected to be working. Will send a v2 with
updated commit message.
Thank you,
Joel Selvaraj
> Konrad
prev parent reply other threads:[~2025-10-18 3:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 9:02 [PATCH] arm64: dts: qcom: sdm845-shift-axolotl: fix touchscreen properties Joel Selvaraj via B4 Relay
2025-10-06 14:49 ` Konrad Dybcio
2025-10-17 7:13 ` Joel Selvaraj
2025-10-17 9:57 ` Konrad Dybcio
2025-10-18 3:43 ` Joel Selvaraj [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=2a014801-e1ef-47fa-b067-9b566b9d523e@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