From patchwork Mon Mar 3 22:36:55 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: 869858 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 4A50B230BE0; Mon, 3 Mar 2025 22:37:03 +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=HOCB5qd3eDw6Q3iAn9tXNpjkrjwswzAUNiY1tvOsU53EK7syX5yXWqW2RFC8vtmyZijcKQ+deqDbeqxZ3bkY0+sTb1r0DP7N8NXCSFo4pYJKVIZ5PFJPqHEYKRSODlrkMGjnQznewB4J40UAzlIa4rTXUHW4C4F7KrkFGaNd9Y4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741041424; c=relaxed/simple; bh=7OPm1T+mkJXZEwm3WT8eNfWAGOcFF+eZAf14BzqSoJE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tPr8xBZX3hL5+Uc6vFtkrTuMG9h1nRxylEyRJ7ZzUavIIYWM5aCo+sNcoHdxhMk90SEiG1nWxhAfKWHGK5jLFxV4KMqNq6cR57BbNPW/RbR9l+l/PcnkVQGvavBXhjRd8z4PKI34ZScflsUwBoOqWeNLoLFOOubCs6CPUb3eN2s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f6hspLTo; 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="f6hspLTo" Received: by smtp.kernel.org (Postfix) with ESMTPS id B7FE0C4CEE8; 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=7OPm1T+mkJXZEwm3WT8eNfWAGOcFF+eZAf14BzqSoJE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=f6hspLToRkDW2OLki7LBjQJQJjMFqMi9/0q9ZD9gNSktC/oOcfD/xDyA1teqvEphi sY1Sr96GG5p3SGxhIMT/WOZiGXQdGUXJH8UCENpMVIybnzU8FYAxcVln2nQ1gQgkjC UGVcKjcpQ7LOzt1wLqwqSpyyLz8icVJfkAvMTyHUrmAKB95zPS1jCd0K3vBjaXDAbb LVRta+DquNFdas20Ec9xfgNOKIlfQeQbr9K7ubIFmZSp2uEkHR9gCxrEXj0+AqYm5g 0ts5eCxtIReoDAOk7xnkv9IDaK3u4zohLFBiDQLbZcVqFTCF2npjhHiQ1kSNVMHvXA rEvcH95Ezu9hg== 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 A1961C282D2; Mon, 3 Mar 2025 22:37:03 +0000 (UTC) From: Joel Selvaraj via B4 Relay Date: Mon, 03 Mar 2025 16:36:55 -0600 Subject: [PATCH v4 1/4] dt-bindings: input: touchscreen: edt-ft5x06: use unevaluatedProperties 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-1-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 , Krzysztof Kozlowski X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1741041422; l=1521; i=foss@joelselvaraj.com; s=20241007; h=from:subject:message-id; bh=TG/Ca436vhsLjDnOfrSST3z+haEV+Vb6Rvx1ieR+dUA=; b=Tww6wJt3vgET/vIXsfOZ79qTNK8WhJCi3452QHsaWvFXiFLus/BzOoewgGs0il3hWQWIGUToW 2nlTZOyO6QYD2M4cdrra6qX4EWkU3UYQg2tfhGVZZnMNEgwgPIfHZa7 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 In Xiaomi Poco F1 (qcom/sdm845-xiaomi-beryllium-ebbg.dts), the FocalTech FT8719 touchscreen is integrally connected to the display panel (EBBG FT8719) and thus should be power sequenced together with display panel using the panel property. Since the edt-ft5x06 touchscreen binding uses almost all the properties present in touchscreen.yaml, let's remove additionalProperties: false and use unevaluatedProperties to include all the properties, including the needed panel property. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Joel Selvaraj --- .../devicetree/bindings/input/touchscreen/edt-ft5x06.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml index 70a922e213f2..ab821490284a 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml @@ -103,16 +103,9 @@ properties: minimum: 0 maximum: 255 - touchscreen-size-x: true - touchscreen-size-y: true - touchscreen-fuzz-x: true - touchscreen-fuzz-y: true - touchscreen-inverted-x: true - touchscreen-inverted-y: true - touchscreen-swapped-x-y: true interrupt-controller: true -additionalProperties: false +unevaluatedProperties: false required: - compatible 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 {