From: Liviu Nicoara <lnicoara@thinkoid.org>
To: "Aleksandrs Vinarskis" <alex@vinarskis.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>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
"Kees Cook" <kees@kernel.org>,
"Gustavo A . R . Silva" <gustavoars@kernel.org>,
"Abel Vesa" <abelvesa@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
Abel Vesa <abel.vesa@oss.qualcomm.com>,
Tobias Heider <tobias.heider@canonical.com>,
Val Packett <val@packett.cool>,
Neil Armstrong <neil.armstrong@linaro.org>,
Stephan Gerhold <stephan.gerhold@linaro.org>,
linux-hardening@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Subject: Re: [PATCH v6 0/3] Introduce EC driver for Snapdragon X1E based Dell XPS 13 9345
Date: Sun, 11 Oct 2026 17:35:28 -0400 [thread overview]
Message-ID: <20261011213528.13207-1-lnicoara@thinkoid.org> (raw)
In-Reply-To: <20261011-dell-xps-9345-ec-v6-0-2a66a364fe70@vinarskis.com>
On Sun, 11 Oct 2026 19:50:07 +0200, Aleksandrs Vinarskis wrote:
> This series adds Embedded Controller (EC) driver for Dell XPS 13 9345.
> While EC appears to control most of device's peripherals, particular
> driver addresses power and thermal managment issues.
Tested v6 on a second XPS 13 9345 (BIOS 2.14.0), on 7.2.6 with the
PMIC5 Gen3 ADC and ADC_TM drivers and the board thermal zones [1]
backported. The driver probes, gets all seven channels and reports to
the EC without an error. Two observations from this unit:
1. The two GPIO thermistor channels. Here AMUX3_GPIO (0x14c,
lpddr5_therm) reads the top of the conversion table, ~130 C, from
boot on, and AMUX4_GPIO (0x14d, usb_charger_left_therm) does not
move when a charger warms the left port. AMUX2_GPIO (0x14b) does,
1.6 C in three minutes, and AMUX1_GPIO (0x14a) reads a plausible
board temperature. Windows' ADC1.bin puts SYS_THERM1/2 on
0x14a/0x14b, and hamoa-pmics.dtsi in next defines those two. The
patch configures no PMIC GPIO for AMUX3/4, where mainline sets
pm8550 gpio3 and gpio4 for AMUX1/2; so either the two thermistors
sit on 0x14a/0x14b on this board, or AMUX3/4 want the pin
configuration. As it stands the EC is told the memory is at 130 C.
The fans did not react to that here, at idle on battery.
2. Resume. With the driver loaded, a key press wakes the machine
through the PMIC power key: the EC has powered the keyboard off, as
the comment in the driver says, and the keyboard delivers no event
for the key that woke the machine; instead pm8941-pwrkey reports a
KEY_POWER press and release at resume. With logind's default
HandlePowerKey=poweroff and no desktop holding the power-key
inhibitor, the machine shuts down right after it wakes. With the
inhibitor held, the resume is clean and the machine stays up, so
the resume command does its job. Without the driver the keyboard
wakes the host as an i2c-hid device and no power-key event appears.
Reproduced twice; GNOME and KDE take that inhibitor, so they would
not see it.
[1] https://lore.kernel.org/all/20261006185557.23016-1-lnicoara@thinkoid.org/
Liviu
prev parent reply other threads:[~2026-10-11 21:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-11 17:50 [PATCH v6 0/3] Introduce EC driver for Snapdragon X1E based Dell XPS 13 9345 Aleksandrs Vinarskis
2026-10-11 17:50 ` [PATCH v6 1/3] dt-bindings: platform: introduce EC for " Aleksandrs Vinarskis
2026-10-11 17:59 ` sashiko-bot
2026-10-11 17:50 ` [PATCH v6 2/3] platform: arm64: dell-xps-ec: new driver Aleksandrs Vinarskis
2026-10-11 17:59 ` sashiko-bot
2026-10-11 17:50 ` [PATCH v6 3/3] arm64: dts: qcom: x1e80100-dell-xps13-9345: introduce EC Aleksandrs Vinarskis
2026-10-11 17:58 ` sashiko-bot
2026-10-11 21:35 ` Liviu Nicoara [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=20261011213528.13207-1-lnicoara@thinkoid.org \
--to=lnicoara@thinkoid.org \
--cc=abel.vesa@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=alex@vinarskis.com \
--cc=andersson@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=gustavoars@kernel.org \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=kees@kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=robh@kernel.org \
--cc=stephan.gerhold@linaro.org \
--cc=tobias.heider@canonical.com \
--cc=val@packett.cool \
/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