From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 8846230C60F for ; Tue, 14 Oct 2025 04:42:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760416958; cv=none; b=JF3k4AWEvk13o4w7zYwgB5TRbGDVSS5Pn9BVT2DuDGprlmWRJ0qxBLHCpXS6be8Es3GPUIzOQPPlwsI2+E7f1n2WdXxp+qfvWT8aAODh0MWTmlpDqIKJDS7/74DJAbOFvuYxvRh4pFCFadvbOhbowTmPGO3NZXwBHO5XDTA+oM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760416958; c=relaxed/simple; bh=Lu+Wm6RQz65oFffbhnH7FkqqT/nKySBHieK5G4x8NUE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UcG4gg0XAiI4teTqWmcaaTzSfZyBDys4yCvlCJn/2QwDHLy0XDch0ANRWvhlZdxEOMb6WyiZON2oH91NJ9o+QSGh14hIyHXCwktH/+9QtdxR82ZGw1W9eYNwx8/iW0OixJpmLvmPRE3kG70nLwF7Ov+UN20mq/GqwdEq7FIjOig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SZxAcZ+q; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SZxAcZ+q" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-782bfd0a977so4145331b3a.3 for ; Mon, 13 Oct 2025 21:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760416956; x=1761021756; 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=43dpYvG6mRE+3ZFMhinncIOl4K5qjfPZSeQUmpbj9wc=; b=SZxAcZ+qI+EXeGMOquWeSTnNtAXFDHLl0ryUxhueWvkBwvECpLxADInoUoGpgpW0AR rR/HND2RqpJf85JB9870bjMYUJSo4qY90eWBHo1ElpyVf+Y8EeqrWQ/AI9SeJCT8WeNG y9PiDAHxIrpXpcNoCfGoax+F3EXNbXTGDbeBULZYsE1tqJ2xmmRgT0Of70Gx/HmkFUvc wF8iJspX17oZponpExxYd9M2VMGccKbBC51J7FZRwv/Tt95P8W/UVMHZlU/PuaBkUlcm p3gfQk03OP+JjhPOqFA48XtWcUTUrRxLFDXeu3SfQyFpS9WR4lcyDo1TVp21YTyDaLAL rN6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760416956; x=1761021756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=43dpYvG6mRE+3ZFMhinncIOl4K5qjfPZSeQUmpbj9wc=; b=cJm4VGL4Nwq6qtYb7aUyQVB+6Hyq5fm4XEXuEKU3KZLHJZSP9obbs0f1z70whtt8Mz djcOcsUpdtbMnvmqLMvMx1OY/FTDs0iq6vyGTBvF1wZ5YPyOB3d7kKpXNoP//QIegVWE HtceDl4+ztEJk6PucG8QO2vh8zOUBrjT81UV1V4HH+lNbnQw10IHrbk4tLbVjJhuofZc CncevUCZL7dd5CGOWoDbI6D5hSPQRh1jNA4NaSf5klP6+fE2yrWCqrfjqIdmReONPMKT SeMbu4iszLqU3JW1g8rDuqjKtHaEitIP78H3b2gozaSLknI+6U69D5F1on+C/9Y2PJoy gEAw== X-Forwarded-Encrypted: i=1; AJvYcCVQODLFCMuOnmSNWGq/jZizDGEx2svjPAuVeIpP5YjEThNjRgZlcJwSB4aMbQ76vT3aPT26LW1pS4d2@vger.kernel.org X-Gm-Message-State: AOJu0Yxsuy0ZKL+U6jpmnyUyt9X9IxmFy6741FGYoyChvKfQ4n5cCT9i 9t7j50h2qyAiBceb6P1LgVLtSzqRBSZRVsicPmrDrsCvbsRwkz/XAS76 X-Gm-Gg: ASbGncvRfnFf50qZeLe7T9GiwQ6E24IJ5dxIAuRfoc6bGLcF8CE+CCilYSaCG/uuk8B VPMe8NUMV6Q1SpxEL/ZlWdrgUvFjB9CVAADA+DrbMQi0/3RlnHylIwm6ip1lT8+KUcH8dHm4MNx CZ8g3kJwFjavUp5PMOKfvgk9A3Fg99lgEjgyI7+gkaN/Zz2kevOd+QLyLXSDubUHAhxuS0hO3oG 1HSzGkASfZMcCV70GtK5z0+gt/VgP/+XpI2L+x3ftZrTIzayP8sEUJZ2TTU/Bw0lrML+HI9j1y9 dIG3D4GkU7pQpFXGw0GsNK5YgEKu9j6fIxqmIofs4xujiVbbc+PgtBkhdpzkvgBwiqqaC8vA4tp JFDnDKS+bqnTnGRVQQi7GRuu7fJkm9bAeJO/P X-Google-Smtp-Source: AGHT+IFN2HtgJRh8s6x+tEn3p7J0qJhA4Hv1IhkpMVdDgnw3oWKkvvVOM6cfaI6fXuL+XUT5z02ecw== X-Received: by 2002:a05:6a00:3e27:b0:781:2582:822a with SMTP id d2e1a72fcca58-79385ed2f30mr28375639b3a.8.1760416955694; Mon, 13 Oct 2025 21:42:35 -0700 (PDT) Received: from archlinux ([177.9.216.59]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-79b65528a51sm8440684b3a.85.2025.10.13.21.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 21:42:35 -0700 (PDT) From: =?UTF-8?q?Eric=20Gon=C3=A7alves?= To: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Rob Herring , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] arm64: dts: qcom: r0q: add touchscreen support Date: Tue, 14 Oct 2025 00:41:32 -0400 Message-ID: <20251014044135.177210-4-ghatto404@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251014044135.177210-1-ghatto404@gmail.com> References: <20251014044135.177210-1-ghatto404@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable the ST-Microelectronics FTS2BA61Y touchscreen. This patch depends on "Input: add support for the STM FTS2BA61Y touchscreen". The device has an issue where SPI 8 (the bus which the touchscreen is connected to) is not working properly right now, so spi-gpio is used instead. Signed-off-by: Eric Gonçalves --- .../boot/dts/qcom/sm8450-samsung-r0q.dts | 134 ++++++++++++++++++ 1 file changed, 134 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts b/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts index 5ca45b040a99..96a8a0e69681 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts @@ -56,6 +56,50 @@ splash-region@b8000000 { }; }; + /* + * The device has an issue where SPI 8 (the bus which the touchscreen is + * connected to) is not working properly right now, so spi-gpio + * is used instead. + */ + + spi8 { + compatible = "spi-gpio"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&spi_clk_tsp_active &spi_mosi_tsp_active &spi_miso_tsp_active>; + pinctrl-1 = <&spi_clk_tsp_sleep &spi_mosi_tsp_sleep &spi_miso_tsp_sleep>; + + #address-cells = <1>; + #size-cells = <0>; + + sck-gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>; + mosi-gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>; + miso-gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>; + cs-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; + + num-chipselects = <1>; + + spi-max-frequency = <5000000>; + + touchscreen@0 { + compatible = "st,fts2ba61y"; + reg = <0>; + spi-max-frequency = <5000000>; + + vdd-supply = <&vreg_l8c_1p8>; + avdd-supply = <&vreg_l11c_3p0>; + + interrupt-parent = <&tlmm>; + interrupts = <46 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&tsp_int_active>; + pinctrl-1 = <&tsp_int_sleep>; + + status = "okay"; + }; + }; + vph_pwr: regulator-vph-pwr { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -138,6 +182,20 @@ vreg_l1c_1p8: ldo1 { regulator-max-microvolt = <1800000>; regulator-initial-mode = ; }; + + vreg_l8c_1p8: ldo8 { + regulator-name = "vreg_l8c_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l11c_3p0: ldo11 { + regulator-name = "vreg_l11c_3p0"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = ; + }; }; }; @@ -162,6 +220,82 @@ &pon_resin { &tlmm { gpio-reserved-ranges = <36 4>; /* SPI (Unused) */ + + spi_clk_tsp_active: spi-clk-tsp-active { + pins = "gpio30"; + function = "gpio"; + drive-strength = <6>; + bias-disable; + }; + + spi_clk_tsp_sleep: spi-clk-tsp-sleep { + pins = "gpio30"; + function = "gpio"; + drive-strength = <6>; + input-enable; + bias-pull-down; + }; + + spi_cs_tsp_active: spi-cs-tsp-active { + pins = "gpio31"; + function = "gpio"; + drive-strength = <6>; + bias-disable; + }; + + spi_cs_tsp_sleep: spi-cs-tsp-sleep { + pins = "gpio31"; + function = "gpio"; + drive-strength = <6>; + input-enable; + bias-pull-down; + }; + + spi_miso_tsp_active: spi-miso-tsp-active { + pins = "gpio28"; + function = "gpio"; + drive-strength = <6>; + bias-disable; + }; + + spi_miso_tsp_sleep: spi-miso-tsp-sleep { + pins = "gpio28"; + function = "gpio"; + drive-strength = <6>; + input-enable; + bias-pull-down; + }; + + spi_mosi_tsp_active: spi-mosi-tsp-active { + pins = "gpio29"; + function = "gpio"; + drive-strength = <6>; + bias-disable; + }; + + spi_mosi_tsp_sleep: spi-mosi-tsp-sleep { + pins = "gpio29"; + function = "gpio"; + drive-strength = <6>; + input-enable; + bias-pull-down; + }; + + tsp_int_active: tsp-int-active { + pins = "gpio46"; + function = "gpio"; + drive-strength = <2>; + input-enable; + bias-disable; + }; + + tsp_int_sleep: tsp-int-sleep-state { + pins = "gpio46"; + function = "gpio"; + drive-strength = <2>; + input-enable; + bias-disable; + }; }; &usb_1 { -- 2.51.0