From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3A753E0249 for ; Tue, 26 May 2026 11:26:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779794795; cv=none; b=jv6iaFJ+QHVz15qCRh+29IIIn//VGuhLOjnQBqZ782bYq5yDTWaZC3VnA1LhjjB4rQOMWluBBKS6H4w4dYUFaBd44+fK3cCxkZx+UZdLixxBdD0+UdvPpbAovtKU/qr/USKwdYvleOBel64wYPHJ5N5Z85cQfB0eXk55xyfmf1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779794795; c=relaxed/simple; bh=IFm8Dx/iXRffdnKm8nRykcQLPzVQShjAiSz4mRtDJP0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Laz6ou0qzHj/0qMOWrKdsdiqlZh850K5Fzc14yN8KJZtXI62kdX7AlytRA/jbH0MkkEMHitOxhsw/yE0E1wEfnyiCBsE0tcFInlWY6FDW5mtxCfdd3mK1jEFyP0wk4j9hFjPdnRLZzMwc+HOCRMfvY4uN4tEeDn72rPqtll7jf4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=quora.org; spf=pass smtp.mailfrom=quora.org; dkim=pass (1024-bit key) header.d=quora.org header.i=@quora.org header.b=ieCZi6Fi; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=quora.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quora.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=quora.org header.i=@quora.org header.b="ieCZi6Fi" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-3695bf7d082so9384905a91.0 for ; Tue, 26 May 2026 04:26:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quora.org; s=google; t=1779794793; x=1780399593; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=F9Hma8PgXDcu3st6AylvLJQOw7l5KSEEmW11TEw/EAA=; b=ieCZi6Ficd1Cy/CzRFl0FAxduLV9M4o8qzLXDG6Vj9liAst4auoevInya8EQoDK1+F QtAIZCyMwrmVbC6db4Y5vG7GFPXHN0+1tTQZvI2aiY+VfEP9Qcpz/rniFiUZr2v8Vc66 AODwlOiY5wisEOQYKFnlB+4gLY/qBnrvVCtNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779794793; x=1780399593; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=F9Hma8PgXDcu3st6AylvLJQOw7l5KSEEmW11TEw/EAA=; b=NXqZzISBWmd0ukhduB4EAJNUDzbQJBrzhXz/KV2bd7ECH1oN6eLwKVj0S6QFm476cV iI087/QSb8dq6Xm0J6xu/MTYDHZ1q6W6FkXuMZw8MK8R/m6zMeeVJjK+JCdkNn4ZIYOz 7xNTFMmr157yBWQhY1wVbZliKpbazi5V/1X3+oOmhJNgF6o36TYCHQuxI8Yelwiv8owB rQpz5KD0OkqPtQBOcso5V85XKUIpWlIRtd5yDUyh3En/pu36yo65UbG2x3nMeeMp/Qj0 2UuQLHZ7WYnFl1Hl6dbmS2K46xSETUEJNOoPlsH9g/D94smadFQ5vctsevXN46YJeeai bRCw== X-Forwarded-Encrypted: i=1; AFNElJ+XUClE2ylfxIu6iSXmYxPnLlV4KfCcz9CeX8Q0Fwr9AnSMupQL24ijOjBTIlwa3zLuqORj2gzu+kD11fY=@vger.kernel.org X-Gm-Message-State: AOJu0YwfhttGUGtR6uGx28XgK2qVpQQtzi6QmgAyLyacFWO9I7Fug3hJ nS62T0zFyu/JWS5Rx/c/DaqJbHoPw+YLdSkC9xUmF5dvUDVtNtRLXDXCDkOSL6m0zJQ= X-Gm-Gg: Acq92OGnZ35DE6vvqrwnESMsd5A9lbduhtrz+bIwak9eW4zvjo3EDgs7UL0RNC+kzOy suZ/HqCegPDEMTE29F5pq/EuxCdIvvJxrapMUqYrzaXbMccIGKces/eD27wZjkaR7Z2VRAhwzZU hJDiu10qz1y5+KujNREzjMCJe5+121K6hwFIMskWkooPy5JoB5FLzSjXaXdoBem8laWwfGGlRx9 9sc5lbm6YFjUtil/AFSsOnwj1MEPodPeISf7aYjb0ZEDgAGMhhqV5u0Qp4DW2zK+y9fQZTQiPL3 cX1nWOeMkkUPDipdXB9y/Ri2DSKJsu2/x7sewsuV7fk4QpGGnhqILzUiBULzy8bnnjRq3QKoDj+ lhObVhZMtv5M2/KXTqqGZlaCbPUJ+KHJ5jOcCciTt2AacAUKdPt1wViIs5Tm1DszoAkX5Loy+NC 4I17wqLUY2xPzk9rxZYHsF6ISQjnY0cK8eix+XBzW9Ey++g7GuoJGXUHJv4qFeh1pJB7lDfy93p nbz28t3/YjJZuqBYBHb8WPLO83L58K7djyr15XUYX9gwgwI49FELeapJftCvNHeUKXqmWb9lU+O Hgji9uZvUQxMx+pNAgzgLjbzuazjQwwaDDWYXcKbNXHNoLpVSwUznCHRXsPTrh6ym4ay X-Received: by 2002:a17:90b:3505:b0:35c:30a8:330 with SMTP id 98e67ed59e1d1-36a671ddedcmr17594019a91.0.1779794793227; Tue, 26 May 2026 04:26:33 -0700 (PDT) Received: from aegis ([138.84.66.135]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36a721282e7sm12188091a91.0.2026.05.26.04.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 04:26:32 -0700 (PDT) From: Daniel J Blueman To: Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, "Sibi Sankar" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Hans de Goede" , "Randy Dunlap" , "Bryan O'Donoghue" , "Bjorn Andersson" , linux-kernel@vger.kernel.org, Anvesh Jain P , Maya Matuszczyk , Krzysztof Kozlowski , Dmitry Baryshkov , Akhil P Oommen , Abel Vesa , Gaurav Kohli , Daniel J Blueman Subject: [PATCH v3 2/2] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Add Embedded Controller node Date: Tue, 26 May 2026 19:24:05 +0800 Message-ID: <20260526112409.66325-2-daniel@quora.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260526112409.66325-1-daniel@quora.org> References: <20260526112409.66325-1-daniel@quora.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Lenovo Slim7x uses the same Embedded Controller as the Qualcomm Hamoa X1 Customer Reference Device. Use the lenovo,yoga-slim7x-ec compatible introduced by patch 1 for fan control, thermal sensor and suspend behaviour. Signed-off-by: Daniel J Blueman --- Changes in v3: - use lenovo,yoga-slim7x-ec compatible (introduced by patch 1) - v2 link: https://lore.kernel.org/lkml/20260502063518.15153-1-daniel@quora.org/ Changes in v2: - corrected DT compatible node - v1 link: https://lore.kernel.org/all/20260429103301.17449-1-daniel@quora.org/ .../dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts index beb1475d7fa0..1ee2a2296129 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts @@ -951,6 +951,22 @@ retimer_ss0_con_sbu_out: endpoint { }; }; +&i2c5 { + clock-frequency = <400000>; + + status = "okay"; + + embedded-controller@76 { + compatible = "lenovo,yoga-slim7x-ec", "qcom,hamoa-crd-ec"; + reg = <0x76>; + + interrupts-extended = <&tlmm 66 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 = <&ec_int_n_default>; + pinctrl-names = "default"; + }; +}; + &i2c7 { clock-frequency = <400000>; @@ -1352,6 +1368,12 @@ &tlmm { <44 4>, /* SPI (TPM) */ <238 1>; /* UFS Reset */ + ec_int_n_default: ec-int-n-state { + pins = "gpio66"; + function = "gpio"; + bias-disable; + }; + edp_reg_en: edp-reg-en-state { pins = "gpio70"; function = "gpio"; -- 2.53.0