From patchwork Wed Dec 4 12:26:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 847397 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B2E91B87F8; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; cv=none; b=GqxubPvzvEdGjiwhVvuRpAPf/b4lj7/F44VGtGTaTObopa7GYDZooTKam6hk7sxWUwTB8U6gpeMes9WqmuzcZhbQpwQBEpoPvkoqNXZO9c9Sv7H0IkhjFPo7J3wGWYFXYex2RXXvQODF0kP+DEEbYnhtRreCadQpRoHEqNODSH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; c=relaxed/simple; bh=KQEwRGzVH6Guq7P9oNNRzHriyf5ebfsDPTck4Xq685Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E2Hn1VMAJEWsmb3Jj7aRSAl1RhzlAm++JKggZ6s4Lh7LAN5MTZgi8hcGuq6ucF3SqU9GWvn1rDT2LYEugU7XsbRKcVyZ8fTdSPtuS3jlIVyykt1lrTLdh8zkOdgLSjTi7MqU+yHoH/a1wiZ9yelp2S/zGjvnD8/je+nDHIK8ME4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MJUZT5nx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MJUZT5nx" Received: by smtp.kernel.org (Postfix) with ESMTPS id 50A44C4CEE1; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733315236; bh=KQEwRGzVH6Guq7P9oNNRzHriyf5ebfsDPTck4Xq685Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MJUZT5nxEINyp/XN+HeUlRl90jts+RL99KAnp2TGuEuJJ6wJhZnOHo1b5iuaHSARW fi5ZPX97UxRUbLKwVReDNoLZBD6nwgwetFM4ZLAvlgPyIPYR/2XvptVJmxgg008LLS /JchyMR9k6v3A3h4KN96G2FmBZ4A4Laid2f+jR/AVc791nhCnsSE6SXemVB22YERKE TLs2e2Yma/D3kkdbO+iFyox8oiWYFJQuHv+0kGrcMpriRR7w8tr+blGVcgcCkcD8oQ WPJJxOBGjbKrPKss0aDPElTD4QchnfUO52AGvXhmrmt0AllwLY6YtvGpm1agHy9GkF ngDyFlzdz/WGw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37336E7716B; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Wed, 04 Dec 2024 13:26:37 +0100 Subject: [PATCH v6 1/3] arm64: dts: qcom: x1e80100-vivobook-s15: Use the samsung,atna33xc20 panel driver Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241204-asus_qcom_display-v6-1-91079cd8234e@hotmail.com> References: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> In-Reply-To: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733315235; l=1761; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=2plrXoM2oHD6ge2JBJBJrVaTYK/6c0XEQaFkS7h2S9s=; b=GCoUf+wme21lJ7gKtzW4klH/UMu4volNQo+Byt34+ICLXhmWrwG2SQiJ08tDg2Cn45ekTmKtG MRLof8zJvmwB6H9zDIeiuH9q/zCqhAjvTM5gtsP/dOdy1bQHy3jFEO7 X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings The Asus vivobook s15 uses the ATNA56AC03 panel. This panel is controlled by the atna33xc20 driver instead of the generic edp-panel driver Reviewed-by: Konrad Dybcio Signed-off-by: Maud Spierings --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index f25991b887de3fca0092c5f81c881c5d8bd71aac..d909167dc7119fba56e0240f6f24fd1a803fa94c 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -8,6 +8,7 @@ #include #include +#include #include "x1e80100.dtsi" #include "x1e80100-pmics.dtsi" @@ -407,9 +408,13 @@ &mdss_dp3 { aux-bus { panel { - compatible = "edp-panel"; + compatible = "samsung,atna56ac03", "samsung,atna33xc20"; + enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>; power-supply = <&vreg_edp_3p3>; + pinctrl-0 = <&edp_bl_en>; + pinctrl-names = "default"; + port { edp_panel_in: endpoint { remote-endpoint = <&mdss_dp3_out>; @@ -475,6 +480,18 @@ &pcie6a_phy { status = "okay"; }; +&pmc8380_3_gpios { + edp_bl_en: edp-bl-en-state { + pins = "gpio4"; + function = "normal"; + power-source = <1>; /* 1.8 V */ + qcom,drive-strength = ; + bias-pull-down; + input-disable; + output-enable; + }; +}; + &qupv3_0 { status = "okay"; }; From patchwork Wed Dec 4 12:26:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 847396 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C329B1CD1ED; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; cv=none; b=nBIbCh6sOlKrKA3bJP9VPK4dUuU2icKWHaxt/myQswwZbkB+IM4H7EpusnV0+e001sk/omnMdVGcDU4o8vRs8UIZhyaV6ut/ZgsZ8VFZY34yOPcKsoBC61gq3spf/yvrTgfGEoSTEUd+dLAarFJuQpTf9QuyJ1M80IAnObxVGdQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; c=relaxed/simple; bh=veOjOT3iEd6VMjm8v/gKMHePK0b17+jLJcqBAMqKg3Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HkMj6eK1GaC2T9V7esSRNBVMGQ+lbLHs+f+6dFuiiHvGF2yQ8CVZl2T3wxJqCJU3IkQ9ytKjCrTs16Yn4LfIhJ5JTmVTOt2wxsA4F77LuV2UUwBGI0LrgrrhLYnOeJL72N64wNaSF73Thn+mOhFHIELPPe2EkNNaBMHubLJF5CE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cvK7kZXq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cvK7kZXq" Received: by smtp.kernel.org (Postfix) with ESMTPS id 61D8EC4CED2; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733315236; bh=veOjOT3iEd6VMjm8v/gKMHePK0b17+jLJcqBAMqKg3Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=cvK7kZXq3yTNtmgtBc+nJtvGW8WCPyeXofanDlduXedNIjgwcNitOvjyZhm8mPri6 WToy6UnkuxLkf0X+AvYlz9Hi7HfxIyFTFb7iGo/qAY8CD1Xq+FqMkJeA12BIEgTbHS 87x4+SAgfnWs1ik3Emq5z94kYAhwkpspvmerdbCokhbPWcG+V0FVLsIxVwm7afpd+u BU9slwNhR7H0ASOuiTJUUP1marO7t2NzuXFa3hbo2J4LmXThL0MAt+MxkspyWF+Cig XHyYmnHu5IzCiAiwSdTDchxa+bPsxpiooRrhSzaT6kjRsSVMnRmM/kFG4s7svVQXCb 9HPbI2n2hl/3Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53DBDE77170; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Wed, 04 Dec 2024 13:26:38 +0100 Subject: [PATCH v6 2/3] arm64: dts: qcom: x1e80100-vivobook-s15: Add lid switch Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241204-asus_qcom_display-v6-2-91079cd8234e@hotmail.com> References: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> In-Reply-To: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733315235; l=1682; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=0B52a4aN6AtF5Fhm9CoQyjjWWNFyLW5DlJvH60vGtGk=; b=lEH4/pK8h+ZNPl1j9/+PElwRI9vgvmHWrPYbMbLZ7uQxn22XKDKO836Uh5tw8t34LagsqrBzM V/IE/5xy/YiBBynGdoWiGKWD6xtdPUJSi1GLpFPFFV9dbh6431WPh25 X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings Add the lid switch for the Asus vivobook s15 Reviewed-by: Konrad Dybcio Signed-off-by: Maud Spierings --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index d909167dc7119fba56e0240f6f24fd1a803fa94c..ba52c0eef4e32019f6eb7c7ae3c4cd727df23490 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include #include @@ -18,6 +19,20 @@ / { compatible = "asus,vivobook-s15", "qcom,x1e80100"; chassis-type = "laptop"; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&hall_int_n_default>; + pinctrl-names = "default"; + + switch-lid { + gpios = <&tlmm 92 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + wakeup-source; + wakeup-event-action = ; + }; + }; + pmic-glink { compatible = "qcom,x1e80100-pmic-glink", "qcom,sm8550-pmic-glink", @@ -540,6 +555,12 @@ edp_reg_en: edp-reg-en-state { bias-disable; }; + hall_int_n_default: hall-int-n-state { + pins = "gpio92"; + function = "gpio"; + bias-disable; + }; + kybd_default: kybd-default-state { pins = "gpio67"; function = "gpio";