From: Krzysztof Kozlowski <krzk@kernel.org>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
"Guenter Roeck" <linux@roeck-us.net>,
"Bjorn Andersson" <andersson@kernel.org>,
"Abel Vesa" <abelvesa@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: embedded-controller: Add ASUS Zenbook A16 EC
Date: Fri, 18 Sep 2026 15:38:28 +0200 [thread overview]
Message-ID: <8f7dd986-ac78-4a87-a8bc-228fdd05e9b4@kernel.org> (raw)
In-Reply-To: <9709e146-0f9a-42a5-bfcf-2e5f8b49df2e@oss.qualcomm.com>
On 18/09/2026 15:23, Konrad Dybcio wrote:
> On 9/18/26 3:21 PM, Krzysztof Kozlowski wrote:
>> On 18/09/2026 14:29, Konrad Dybcio wrote:
>>> On 9/18/26 1:34 PM, Krzysztof Kozlowski wrote:
>>>> On Thu, Sep 17, 2026 at 12:54:56PM +0200, Konrad Dybcio wrote:
>>>>> +description:
>>>>> + The Qualcomm Snapdragon X2 series-based ASUS Zenbook A16 (and similar
>>>>> + machines) come with a custom EC firmware, loosely based on the
>>>>> + Qualcomm reference ("Hamoa CRD EC") implementation, with a lot of
>>>>> + customization.
>>>>> +
>>>>> +properties:
>>>>> + compatible:
>>>>> + enum:
>>>>> + - asus,zenbook-a14-ux3407na-ec
>>>>> + - asus,zenbook-a16-ux3607oa-ec
>>>>> +
>>>>> + reg:
>>>>> + const: 0x76
>>>>> +
>>>>> + interrupts:
>>>>> + maxItems: 1
>>>>> +
>>>>> + "#thermal-sensor-cells":
>>>>> + const: 1
>>>>> +
>>>>> + wakeup-source: true
>>>>> +
>>>>> +required:
>>>>> + - compatible
>>>>> + - reg
>>>>> + - interrupts
>>>>> + - '#thermal-sensor-cells'
>>>>> + - wakeup-source
>>>>
>>>> Wakeup source should not be required. If it is, then it is completely
>>>> implied by compatible and there is no need for DT property, right?
>>>
>>> I suppose it's not *required* but it's highly desirable.. should I
>>> just drop it from the required list?
>>
>> Then why isn't the device driver setting wakeup unconditionally?
>
> The i2c core checks for wakeup-source - I can remove the property
> and call the equivalent functions from the driver if you prefer,
> but that feels a little "rough"
This is irrelevant here. If we remove I2C core handling of wakeup-source
and rely on drivers, do we change the bindings?
Required means either hardware or software cannot work without it.
Interrupts are required, because (supposedly) it is impossible to create
a hardware with interrupt pin floating, which could be argument to move
to the SW, but compatible cannot imply them. Saying that wakeup is
required, means that something requires it while compatible cannot imply
that property. Kind of contradictory to logic, because this means device
has such characteristic but we need DT to represent it. That's odd
because we should not need DT to represent simple bool - driver can do it.
This is basically the fourth device which requires being wakeup-source,
so something highly unusual and anyway if it stays, needs explanation in
device description.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-09-18 13:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 10:54 [PATCH 0/3] Asus Zenbook A16/A14 (UX3607OA/UX3407NA) EC driver Konrad Dybcio
2026-09-17 10:54 ` [PATCH 1/3] dt-bindings: embedded-controller: Add ASUS Zenbook A16 EC Konrad Dybcio
2026-09-18 11:34 ` Krzysztof Kozlowski
2026-09-18 12:29 ` Konrad Dybcio
2026-09-18 13:21 ` Krzysztof Kozlowski
2026-09-18 13:23 ` Konrad Dybcio
2026-09-18 13:38 ` Krzysztof Kozlowski [this message]
2026-09-17 10:54 ` [PATCH 2/3] platform: arm64: Add a driver for the EC found on ASUS Glymur machines Konrad Dybcio
2026-09-18 11:35 ` Krzysztof Kozlowski
2026-09-18 12:18 ` Konrad Dybcio
2026-09-18 12:21 ` Krzysztof Kozlowski
2026-09-17 10:54 ` [PATCH 3/3] arm64: dts: qcom: glymur-zenbook-a16: Add Embedded Controller Konrad Dybcio
2026-09-17 15:20 ` Abel Vesa
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=8f7dd986-ac78-4a87-a8bc-228fdd05e9b4@kernel.org \
--to=krzk@kernel.org \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=platform-driver-x86@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®