From patchwork Mon Mar 3 22:36:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj via B4 Relay X-Patchwork-Id: 869859 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 4A43A22DFB6; Mon, 3 Mar 2025 22:37:04 +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=1741041424; cv=none; b=fw55mFFTUs8MixZC5JIuwPVLXXxDRtqk43dN8nk4PHdxVhE0a6gyPigXNq655TpfrjjOHYSAfT51Pki0+BrlmkCyb/ckV4TpUsPob9jQyJstg/opwHYTA73G7vt1RxSo4RIsSjrArZa1a2BxstQMLjW4V+NorghMxSp+l6PVEEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741041424; c=relaxed/simple; bh=OBIPL16UzfZh+DKOiSBRzfjFoZmb/tmDk96glThjfQ4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ImDFa7KZD7qL8qrvziTDG2AWc/gUV4kfl3ph3QxNr5wxyh8pim0j/d7oR7JsPNTOswb13MmtwgzPFuyqarggyRGtqIWQHXsTh7oJOfMOzJX50wNR+0hH0q5MMNw5V2CiLUNUrsBxhePoZbQ0457QaqnmwjUyVJK6h3DeFseSBAA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gfDQwCZq; 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="gfDQwCZq" Received: by smtp.kernel.org (Postfix) with ESMTPS id CD4A3C4CEE6; Mon, 3 Mar 2025 22:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741041423; bh=OBIPL16UzfZh+DKOiSBRzfjFoZmb/tmDk96glThjfQ4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gfDQwCZq63FchE05nfiuXZ8D7KjjfX5LRK1dbCEYTyZ8HGiM8AynpIFaB1Q6UD3CQ hOIsPzVsJ8aJRDy+09DJxYl/A2YAZhrpAOzEvlQCNozyDxwi44UxA8fXroall0qy/3 FAREsmj2tbD3GLcOBBGSRSXGRFa3G8aIoXg/Y4ByZv6zFPSbJ9yaZlHiaeelA4B9BJ CkZ+3SPrKXJcF5jKAR2dEivP8HiQn2h/UJ55xovc9S9aF4qi1aSMpxVYf/e7Lkqr7o IhiSLNtScWtXfw5ZxnqEUHKvj6cBulbKkHHIOx4lg/+wSh1ikQ0KLOUth/XRHeSfmY jfKcRLS1i4H1A== 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 BB073C282C6; Mon, 3 Mar 2025 22:37:03 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Mon, 03 Mar 2025 16:36:56 -0600 Subject: [PATCH v4 2/4] arm64: dts: qcom: sdm845-xiaomi-beryllium-common: add touchscreen related nodes Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250303-pocof1-touchscreen-support-v4-2-cdc3bebc3942@joelselvaraj.com> References: <20250303-pocof1-touchscreen-support-v4-0-cdc3bebc3942@joelselvaraj.com> In-Reply-To: <20250303-pocof1-touchscreen-support-v4-0-cdc3bebc3942@joelselvaraj.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Joel Selvaraj , Konrad Dybcio , Krzysztof Kozlowski X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1741041422; l=2097; i=foss@joelselvaraj.com; s=20241007; h=from:subject:message-id; bh=EpPcR4Wun9zUS0l7gI/2ehR5PCkceW/n4h3upa10e/U=; b=5HqTN23bgnrRLSnkhvdPiYHCUZEiJcBwHMndr/sU+wScCWIoPdf+OLkKjg3rPa1GoajeSFEUp 92O0pwh2d8+CnxYbuNwUNqsHCDoH6xosFwt2yCV8HdgadfGlWzeCsbZ 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. Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski 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 617b17b2d7d9..e93ed6effdd7 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 = "okay"; }; +&gpi_dma1 { + status = "okay"; +}; + &gpu { status = "okay"; @@ -408,6 +412,10 @@ &qupv3_id_0 { status = "okay"; }; +&qupv3_id_1 { + status = "okay"; +}; + &sdhc_2 { status = "okay"; @@ -513,6 +521,37 @@ sdc2_card_det_n: sd-card-det-n-state { function = "gpio"; bias-pull-up; }; + + ts_int_default: ts-int-default-state { + pins = "gpio31"; + function = "gpio"; + drive-strength = <16>; + bias-pull-down; + output-disable; + }; + + ts_reset_default: ts-reset-default-state { + pins = "gpio32"; + function = "gpio"; + drive-strength = <16>; + output-high; + }; + + ts_int_sleep: ts-int-sleep-state { + pins = "gpio31"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + output-disable; + }; + + ts_reset_sleep: ts-reset-sleep-state { + pins = "gpio32"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; }; &uart6 {