Re: [PATCH v2 4/4] arm64: dts: qcom: mahua-lenovo-thinkpad-t14s-gen7: Describe the Embedded Controller
From: Hans de Goede
Date: Wed Nov 25 2026 - 16:46:32 EST
Hi,
On 23-Nov-26 10:35, Abel Vesa wrote:
> The ThinkPad T14s Gen 7 has its embedded controller at 0x28 on QUP
> i2c9 (ACPI \_SB.IC10). It uses a different command protocol than the
> Gen 6 one, so describe it with the Gen 7 compatible. Its interrupt is
> GPIO 66, as on the Gen 6, but the firmware describes it as edge
> triggered, active low. Using a level trigger makes the handler fire
> continuously while the EC holds the line low, with no event pending.
>
> This provides the EC hotkeys, LEDs and keyboard backlight.
>
> Signed-off-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <johannes.goede@xxxxxxxxxxxxxxxx>
Regards,
Hans
> ---
> .../qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts | 24 ++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts b/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts
> index 9bda86f82a99..7e7e9b861899 100644
> --- a/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts
> +++ b/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts
> @@ -735,6 +735,24 @@ ptn3222_fpr: redriver@4f {
> };
> };
>
> +&i2c9 {
> + clock-frequency = <400000>;
> +
> + status = "okay";
> +
> + embedded-controller@28 {
> + compatible = "lenovo,thinkpad-t14s-gen7-ec";
> + reg = <0x28>;
> +
> + interrupts-extended = <&tlmm 66 IRQ_TYPE_EDGE_FALLING>;
> +
> + pinctrl-0 = <&ec_int_n_default>;
> + pinctrl-names = "default";
> +
> + wakeup-source;
> + };
> +};
> +
> &lpass_vamacro {
> pinctrl-0 = <&dmic01_default>;
> pinctrl-names = "default";
> @@ -1007,6 +1025,12 @@ edp_bl_reg_en: edp-bl-reg-en-state {
> bias-disable;
> };
>
> + ec_int_n_default: ec-int-n-state {
> + pins = "gpio66";
> + function = "gpio";
> + bias-disable;
> + };
> +
> kybd_default: kybd-default-state {
> pins = "gpio67";
> function = "gpio";
>