From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 1CBBD20FAA4 for ; Sat, 20 Sep 2025 01:47:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758332832; cv=none; b=LAvzLnXbg0L313ieCZH0d9hJo+6I7Uvs///MuQ8uqeigh6vZ70/oUdixqvAoZwd2Qp9zg1MBCMw1OrXv6XP71sGc8HJmrTn1/2/SCJv55kjdBSIyt3j6KiF4UlzcioyXscZJh4ybW+q8c7HxoMiriLakZKNMgmVX7SfLfm9YkpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758332832; c=relaxed/simple; bh=aRmp+/oecFFHV4rBizvkU5l0FhyGV7U0cEbn7zMDiEU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iEB3r7Uj5WCUbOP4iymWMBmQ0USL56ZHRJ6NIqau218Jr+Jg/uRAd6gnlLN58ug8B+1LGoZrwAYHncPWTF7JGGSAHIM0Rchre60tC4YAZWnWg7D0izxo8qpmPz03s0cj0PmX8W3YkcR0uZrCvTJvHRhLqLhnBpZvE7gXw80z6QE= 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=YyNxij0y; arc=none smtp.client-ip=209.85.215.181 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="YyNxij0y" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-b54c86f3fdfso2804873a12.1 for ; Fri, 19 Sep 2025 18:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758332830; x=1758937630; 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=/7npXYgxY41NPqzpSKfP+17vnrXdgVumONF2Se9aVSk=; b=YyNxij0yxn/G9ntS3O7fl/1dOx3qH6zSQ/PUAeLpDCTyDnypmQVDD+gVsxx+gdYQIM WCgHkFE9wemLC7wFslJyQu11Y6o1CbnKY9rDTpifIZAo8XvU8Bt5R/RL337FSm2tzcGk raQkcK97BwEMdvGA6gsd9Iop6MFZwZOoBMPzI4J3pcNFjP095c6JXrXKqecpabBRUzHu CWv2iOKuRVvTBtzdLolNBnf9T3E86UZ5lv/AAfueASdCjN9yRNcMVDPFvhczqPQZ+1as b2xONbVqaY57dQX+7aWBrRm6NgqFP4bgKVnn4m9a6wMAuQYDiQnLBkKfX92bCg6MQcxH D/EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758332830; x=1758937630; 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=/7npXYgxY41NPqzpSKfP+17vnrXdgVumONF2Se9aVSk=; b=D/of5XCqcD33qtCVjJVqhQ1lmeepWbR3lKifkK/zsFrQq+EjipNoAdaSU0TM75dTa3 72Wbrz2X7hSYEVngdIWcPUKNyJLSwLD5s3tmLrnnyp9ZbYqDCRZlRXfEwAYNxoHmsFqY NECKA7T2lgKB/RqSESYMCwvhImxSX9aBhH0ans73HbaDxwh2Pr9dpLNM6ZofRRaCWeJG n3vuevTQ81vTNqJHl64Aif/URFSYXU6Vr0PD/JXXz4hAuugTVLmA17Tnkib/9xhyCbfJ W6biqmkxISgzGcAN0l3XU6eVqkgHyq45ubejBupCEIAuLyhlZgrLq+g9Qm2Zg/r6+dk7 lM9Q== X-Gm-Message-State: AOJu0Yxsro8M31pGi2CKIh5lbviHqr1vLmykR01xmJCz+sMgdFnJw/dy bkmwnsNz2RDeHKvtVNOP88cUzUZQLdkJIQzyXH8PVRgvRNYlnqji8U/q X-Gm-Gg: ASbGnctbG9+fDavLQc9Cig5rRNBtL0n8NnPqSTMOg0xrejcSUpHobqRYcriy4Q4H3xv I2U1lPOvSNy0QjtDpSPpq5NbeNcqEn2u6n9/zX8hnhB4sp6FncqhJ8gakk6g4ytqGtWhzFrJNgo 4x3CqLYr6LJ7u6P9XpPf3T+1AymKXebJ3j/RTdjjUuG55sUP1ZA6omL8IIfwcNLzDaevrumOnch C4SLWP0iDJg7cAjCuew/nHHqdWlkicjz4n61ipAuVqjcbh+Smnveq+C8yzVAK2/jyqncvXI5DYR T/SVW2E9+MR9K5VtGposwe9H/mu9x5IyZEoCMETqpbNd8yPLJmAMyXdI/tMWAxR6oxrMWZoQvG4 8N58ve2cLqYnRbZYeUjKZ X-Google-Smtp-Source: AGHT+IGAi8vnQCWhOm+osD3zmZZvsfCltRPv2Y4dmfTI+E54VnE88ez9zVtoTAQLIcJ0gDclrNP1WA== X-Received: by 2002:a17:902:dace:b0:272:56e:e296 with SMTP id d9443c01a7336-272056ee45dmr173405ad.30.1758332830258; Fri, 19 Sep 2025 18:47:10 -0700 (PDT) Received: from archlinux ([191.193.70.152]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2698033c922sm65709455ad.131.2025.09.19.18.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Sep 2025 18:47:09 -0700 (PDT) From: =?UTF-8?q?Eric=20Gon=C3=A7alves?= To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] arm64: dts: qcom: r0q: add touchscreen support Date: Sat, 20 Sep 2025 01:46:34 +0000 Message-ID: <20250920014637.38175-3-ghatto404@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250920014637.38175-1-ghatto404@gmail.com> References: <20250920014637.38175-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 | 167 ++++++++++++++++++ 1 file changed, 167 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts b/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts index 70e953824996..7bf56564dfc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-samsung-r0q.dts @@ -55,6 +55,45 @@ splash-region@b8000000 { }; }; + spi_gpio: spi-gpio@0 { + 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>; + + status = "okay"; + + #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"; @@ -132,6 +171,18 @@ vreg_l1c_1p8: ldo1 { regulator-max-microvolt = <1800000>; regulator-initial-mode = ; }; + + vreg_l8c_1p8: ldo8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l11c_3p0: ldo11 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = ; + }; }; }; @@ -156,6 +207,122 @@ &pon_resin { &tlmm { gpio-reserved-ranges = <36 4>; /* SPI (Unused) */ + + spi_clk_tsp_active: spi_clk_tsp_active { + mux { + pins = "gpio30"; + function = "gpio"; + }; + config { + pins = "gpio30"; + drive-strength = <6>; + bias-disable; + }; + }; + + spi_clk_tsp_sleep: spi_clk_tsp_sleep { + mux { + pins = "gpio30"; + function = "gpio"; + }; + config { + pins = "gpio30"; + drive-strength = <6>; + input-enable; + bias-pull-down; + }; + }; + + spi_cs_tsp_active: spi_cs_tsp_active { + mux { + pins = "gpio31"; + function = "gpio"; + }; + config { + pins = "gpio31"; + drive-strength = <6>; + bias-disable; + }; + }; + + spi_cs_tsp_sleep: spi_cs_tsp_sleep { + mux { + pins = "gpio31"; + function = "gpio"; + }; + config { + pins = "gpio31"; + drive-strength = <6>; + input-enable; + bias-pull-down; + }; + }; + + spi_miso_tsp_active: spi_miso_tsp_active { + mux { + pins = "gpio28"; + function = "gpio"; + }; + config { + pins = "gpio28"; + drive-strength = <6>; + bias-disable; + }; + }; + + spi_miso_tsp_sleep: spi_miso_tsp_sleep { + mux { + pins = "gpio28"; + function = "gpio"; + }; + config { + pins = "gpio28"; + drive-strength = <6>; + input-enable; + bias-pull-down; + }; + }; + + spi_mosi_tsp_active: spi_mosi_tsp_active { + mux { + pins = "gpio29"; + function = "gpio"; + }; + config { + pins = "gpio29"; + drive-strength = <6>; + bias-disable; + }; + }; + + spi_mosi_tsp_sleep: spi_mosi_tsp_sleep { + mux { + pins = "gpio29"; + function = "gpio"; + }; + config { + pins = "gpio29"; + 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