From nobody Wed Nov 27 21:38:37 2024 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 BF7AD3A1CD; Tue, 8 Oct 2024 02:59:50 +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=1728356390; cv=none; b=pmCubpivifpNIkqkUNm9/GC7MKWAWcZZg87vEOVEJx9AHlDMf4iiNHrjodCtyIdIx6j9qO04EsbltkOBU7VFMe0VJE8ACP7SXTgrbKccuPwXjCHKa8kUtLybh+NVquvmnOhL22vHiHZtGcd4nlK9cNEmMPZqgCCqcfsuwQYel20= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728356390; c=relaxed/simple; bh=j1h/zlDXsUjF3gl4eUYy7OwSAA+oRwyR4xNia1Iq4DE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HlDL0ufEQXU4RVWqD+K7nAW58x6TUnEGR+m3tNadRJdFmGYOL1CLaVY+nSXjuRIVINHP6CWfm/SBxl0BVDNImPLUQRHsGDNNGcsQPX1ugMYs1fn7I957YqldCpxuDoMyjd7kcUG5nZnGPX55m+yXK2Dx5njlEsFFsGxCbWbjbN8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kS9n5eLw; 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="kS9n5eLw" Received: by smtp.kernel.org (Postfix) with ESMTPS id 608E5C4CECF; Tue, 8 Oct 2024 02:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728356390; bh=j1h/zlDXsUjF3gl4eUYy7OwSAA+oRwyR4xNia1Iq4DE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=kS9n5eLwpcFOG9J9otMf9QwbOeJYHQyoCYQ1qHM7xAp+jJSbS25/DL6LDyjH5YMHc drudwLFrzJY7IjHh5LEhQxAzwjIDhQFJkysKXP3tQ2GXywAhxjKWhCUkV+ca3ocQq6 oEGAgnCWseVKsWddtKouiyi7eCadoous1XcjcNdtN0KXjaQUBgWIYZ2TrzlCf7E11k g6/Eq3fdJi7HcJ+5o8afy1v06OqzgM2pM4uyRkqHRbZvRyxpAl1j3zwoLraFbi1QMq k7HoMtj7Vpc9bYHDoJb5qmNpYSJPFQXzGJGJ4c1cp96/dLjNefLBS36hEn5wqZbq6C 4LlpBdbayJACA== 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 4AE99CED25C; Tue, 8 Oct 2024 02:59:50 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Mon, 07 Oct 2024 21:59:26 -0500 Subject: [PATCH 1/3] arm64: dts: qcom: sdm845-xiaomi-beryllium-common: add touchscreen related nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241007-pocof1-touchscreen-support-v1-1-db31b21818c5@joelselvaraj.com> References: <20241007-pocof1-touchscreen-support-v1-0-db31b21818c5@joelselvaraj.com> In-Reply-To: <20241007-pocof1-touchscreen-support-v1-0-db31b21818c5@joelselvaraj.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Selvaraj , Joel Selvaraj X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1728356389; l=1967; i=foss@joelselvaraj.com; s=20241007; h=from:subject:message-id; bh=OYp/nYB2IJ5VumglL1GrGkflGQE9p9BC44JCei9fRv8=; b=5oyFeLTwnMTMWmNzcTNV0Lb3qErbswiPCMWsKOhQ+e88pqYvS5MIxlvU6JKBSoZ+2AnPQUcDP Hf8CRxy+9QZDI4+5p1XDDOygPfchikA4f56CTyv0giOu/LgSUhjpXgh X-Developer-Key: i=foss@joelselvaraj.com; a=ed25519; pk=pqYvzJftxCPloaoUbVsfQE7Gwv8bynZPy8mjYohwMCc= X-Endpoint-Received: by B4 Relay for foss@joelselvaraj.com/20241007 with auth_id=238 X-Original-From: Joel Selvaraj Reply-To: foss@joelselvaraj.com From: Joel Selvaraj Enable qupv3_id_1 and gpi_dma1 as they are required for configuring touchscreen. Also add pinctrl configurations needed for touchscreen. These are common for both the tianma and ebbg touchscreen variant. In the subsequent patches, we will enable support for the Novatek NT36672a touchscreen and FocalTech FT8719 touchscreen that are used in the Poco F1 Tianma and EBBG panel variant respectively. This is done in preparation for that. Signed-off-by: Joel Selvaraj --- .../dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 39 ++++++++++++++++++= ++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi b= /arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi index 617b17b2d7d9d..6773a7ddb9a33 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi @@ -243,6 +243,10 @@ &gmu { status =3D "okay"; }; =20 +&gpi_dma1 { + status =3D "okay"; +}; + &gpu { status =3D "okay"; =20 @@ -408,6 +412,10 @@ &qupv3_id_0 { status =3D "okay"; }; =20 +&qupv3_id_1 { + status =3D "okay"; +}; + &sdhc_2 { status =3D "okay"; =20 @@ -513,6 +521,37 @@ sdc2_card_det_n: sd-card-det-n-state { function =3D "gpio"; bias-pull-up; }; + + ts_int_default: ts-int-default-state { + pins =3D "gpio31"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-pull-down; + input-enable; + }; + + ts_reset_default: ts-reset-default-state { + pins =3D "gpio32"; + function =3D "gpio"; + drive-strength =3D <16>; + output-high; + }; + + ts_int_sleep: ts-int-sleep-state { + pins =3D "gpio31"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + input-enable; + }; + + ts_reset_sleep: ts-reset-sleep-state { + pins =3D "gpio32"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + output-low; + }; }; =20 &uart6 { --=20 2.46.2 From nobody Wed Nov 27 21:38:37 2024 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 BF7EA3B182; Tue, 8 Oct 2024 02:59:50 +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=1728356390; cv=none; b=f3Em1+W0tpg/T6qdeBe0aFCTb1OF8ECMtN2pfJ8IGg3OLcDszZP8mxhAsnBPB5A7jb8/fUbOIHDBtdRtcGxh9fRp1dhooCcmLiBH1OxBbBatqyFU9QUYY+vfD+lkRjW44ovwtvJmPG4k9B84eR8KRpE3tlOC0e/B5jQ48sty+TI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728356390; c=relaxed/simple; bh=Gg2t36kJUPM7IbLtV7FR1UYavb8zaoCYmeo2qH3S3C4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BR2dU8WRh29HBy0/Gkf656iv+0vTh3vhrU7XR3LqD+ClCR4hbpHqV/AV7lXnzN/+vz0KaHfMzSkoVabh0lcDPv06MbrXF2KLlyc3YhTc8+Uk92rP3YVPB7VdgyYWHCXBYZlwzGZv4L/A4bj3qEB4iLGIIWc0jdwxyEkFUpTaVdM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Nbg2MylP; 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="Nbg2MylP" Received: by smtp.kernel.org (Postfix) with ESMTPS id 68F60C4CED0; Tue, 8 Oct 2024 02:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728356390; bh=Gg2t36kJUPM7IbLtV7FR1UYavb8zaoCYmeo2qH3S3C4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Nbg2MylP6NnFAs11Otom2lyUN9Bjzo+T46mCONurxSZG2OTPFbptiuTNgMFi0jArS Nek/w7DlfF/EVriShZZR9eq0pI1Hkv/LZmzBKm0rOPydAhrqMFW+h/aTvFabglEO6q TS48Qr2HCGb8WjwQVA6+W+NueJUZRnW5f7gAZpI4qliIoXMacaH99SXpioTMRe0ygP sUVJ0YVMEbm2xZn1TEOwse+LPyk9vkwsd7MgWc63/xpGCrV8pQiX5/BESo9CfHmEKc JjvNqHckA01hbWA6wE8eYMlTSFIeuNQ8y5W295MpZu5QQfnhNFlPqXzwZD1jLzGE8t XAx5RMm/iFJnA== 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 58166CED25F; Tue, 8 Oct 2024 02:59:50 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Mon, 07 Oct 2024 21:59:27 -0500 Subject: [PATCH 2/3] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: introduce touchscreen support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241007-pocof1-touchscreen-support-v1-2-db31b21818c5@joelselvaraj.com> References: <20241007-pocof1-touchscreen-support-v1-0-db31b21818c5@joelselvaraj.com> In-Reply-To: <20241007-pocof1-touchscreen-support-v1-0-db31b21818c5@joelselvaraj.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Selvaraj , Joel Selvaraj X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1728356389; l=1264; i=foss@joelselvaraj.com; s=20241007; h=from:subject:message-id; bh=jsPJLUWq/vBFphtf8UWaN9f9WgcApMbEqSyFwH4fNxE=; b=XYAUtC0pDbAZmlgefJffGMvkIeCgyvL8jCEQQbz6KxxlD6/Ydec0aIqZSaH3GSaUAoYer/P6T JOvY+5XAcXrCrnKyM8WYgCH5PAucvlkZAjjmITzf4Q5q3JuotJr7bX7 X-Developer-Key: i=foss@joelselvaraj.com; a=ed25519; pk=pqYvzJftxCPloaoUbVsfQE7Gwv8bynZPy8mjYohwMCc= X-Endpoint-Received: by B4 Relay for foss@joelselvaraj.com/20241007 with auth_id=238 X-Original-From: Joel Selvaraj Reply-To: foss@joelselvaraj.com From: Joel Selvaraj Enable the Novatek NT36672A touchscreen controller used in the Poco F1 (Tianma) panel variant. Signed-off-by: Joel Selvaraj Reviewed-by: Konrad Dybcio --- .../dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 23 ++++++++++++++++++= ++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/= arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts index e9427851ebaae..b58964cde8342 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts @@ -13,3 +13,26 @@ &display_panel { compatible =3D "tianma,fhd-video", "novatek,nt36672a"; status =3D "okay"; }; + +&i2c14 { + status =3D "okay"; + + touchscreen@1 { + compatible =3D "novatek,nt36672a-ts"; + reg =3D <0x01>; + + interrupts-extended =3D <&tlmm 31 IRQ_TYPE_EDGE_RISING>; + reset-gpios =3D <&tlmm 32 GPIO_ACTIVE_LOW>; + panel =3D <&display_panel>; + + iovcc-supply =3D <&vreg_l14a_1p8>; + vcc-supply =3D <&lab>; + + pinctrl-0 =3D <&ts_int_default &ts_reset_default>; + pinctrl-1 =3D <&ts_int_sleep &ts_reset_sleep>; + pinctrl-names =3D "default", "sleep"; + + touchscreen-size-x =3D <1080>; + touchscreen-size-y =3D <2246>; + }; +}; --=20 2.46.2 From nobody Wed Nov 27 21:38:37 2024 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 BF8493BBCB; Tue, 8 Oct 2024 02:59:50 +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=1728356390; cv=none; b=dKgXaJnqn/9M0O/YG90UUEFdEIMvaJ/SQanZ2Ua4TltCGJl2k4lMT1liIurHds65Di9c3tzpopGSBEIoLmogDa390qrWa34p3VlhvefOtDygqz6OQn/eeCg7cDiHQxI8H5DIUwHsjdFeDH0TpjzGuNF+XF6UhB+UXOlS1TA78Xs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728356390; c=relaxed/simple; bh=ZcKDowProDmhu5b83EBqZxpmpVmwkoG/PgPBMcVpNfE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oQBmLww+R1Rqnu65at4KIFEajmhEesBJvpwHkiJmVMcBghEAOfn0sBABkFPBWAl6nwilHBEsF5gAGyMfLNumH3MLgwIXA8cimqH8MZN5JUabFejoEftjCgU4Eh/g1hOYJFTKfdB3NEybksiJIs3xHK4AcXKB1tv2NLFOY7dJrCk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nH9WiOoo; 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="nH9WiOoo" Received: by smtp.kernel.org (Postfix) with ESMTPS id 76E6CC4CECC; Tue, 8 Oct 2024 02:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728356390; bh=ZcKDowProDmhu5b83EBqZxpmpVmwkoG/PgPBMcVpNfE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nH9WiOoohQycLBVD3GCPLQDJm43732R4DyWc8Ok+S3s43cuoll5xKk9TZMHJsf0hV oATVRIa6aPnz28dpKSetwIREZv5lj0EXbXGsrScMNmgN1ZrlRbyChoOCP97lmgKF6T rKqjsNXI/AnRQ6uO9sgZ0GbiCJPhS1OgGKE88H5475QJcNSVyfTuqrybT6WxOFCU9C kDTxOERV7nA8eQOfJmfLlmTzEml1bKYL+M3ENPfvSofPR1Fl/bz/EXW42/me8ltVtz A8lwrQOMBHoIC9W+6/iouod5dPTXYIXJ22jdEBk+8WHUJlQnt2yVBFivbFiYkle/OQ 5iXIRLMH23MZA== 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 66465CED25B; Tue, 8 Oct 2024 02:59:50 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Mon, 07 Oct 2024 21:59:28 -0500 Subject: [PATCH 3/3] arm64: dts: qcom: sdm845-xiaomi-beryllium-ebbg: introduce touchscreen support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241007-pocof1-touchscreen-support-v1-3-db31b21818c5@joelselvaraj.com> References: <20241007-pocof1-touchscreen-support-v1-0-db31b21818c5@joelselvaraj.com> In-Reply-To: <20241007-pocof1-touchscreen-support-v1-0-db31b21818c5@joelselvaraj.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Joel Selvaraj , Joel Selvaraj X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1728356389; l=1227; i=foss@joelselvaraj.com; s=20241007; h=from:subject:message-id; bh=LzIMPE3ViRJU1UTWVo3cnkkmA8lzQjLUoj4fs+6HbJc=; b=vpIT0gb6NjMD35qJacElRqjhRkTb4LgFehg394RPiCDic/cixjr3COAQuciI1N2Ec1tD21HXn OuX2PUajRe6CpenCVaqj2T9oJyJ5e17mb+eMeiGAco+vV2NF20a++5b X-Developer-Key: i=foss@joelselvaraj.com; a=ed25519; pk=pqYvzJftxCPloaoUbVsfQE7Gwv8bynZPy8mjYohwMCc= X-Endpoint-Received: by B4 Relay for foss@joelselvaraj.com/20241007 with auth_id=238 X-Original-From: Joel Selvaraj Reply-To: foss@joelselvaraj.com From: Joel Selvaraj Enable the Focaltech FT8719 touchscreen controller used in the Poco F1 (EBBG) panel variant. Signed-off-by: Joel Selvaraj Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts | 23 ++++++++++++++++++= ++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts b/ar= ch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts index 76931ebad065e..2d6f0e382a6cb 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dts @@ -13,3 +13,26 @@ &display_panel { compatible =3D "ebbg,ft8719"; status =3D "okay"; }; + +&i2c14 { + status =3D "okay"; + + touchscreen@38 { + compatible =3D "focaltech,ft8719"; + reg =3D <0x38>; + + interrupts-extended =3D <&tlmm 31 IRQ_TYPE_EDGE_RISING>; + reset-gpios =3D <&tlmm 32 GPIO_ACTIVE_LOW>; + panel =3D <&display_panel>; + + iovcc-supply =3D <&vreg_l14a_1p8>; + vcc-supply =3D <&lab>; + + pinctrl-0 =3D <&ts_int_default &ts_reset_default>; + pinctrl-1 =3D <&ts_int_sleep &ts_reset_sleep>; + pinctrl-names =3D "default", "sleep"; + + touchscreen-size-x =3D <1080>; + touchscreen-size-y =3D <2246>; + }; +}; --=20 2.46.2