Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1440218lqh; Mon, 6 May 2024 07:51:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUl9wg2uAywIOp4s/5OGSi4vKiABtIsFFfwSZiW8CNvmoq3knBjd0249sL0FvvoZuWzXToqGrW9Q2aEEpBj5026ag8UqOC7awVDPN/ppQ== X-Google-Smtp-Source: AGHT+IHym1QMonMtrx6Ym/EmQYx1OHrciORQyQ6b5YrBFYblIk1WfDUjdn9kzimyQYOyGqhTPa1T X-Received: by 2002:a17:907:28c2:b0:a59:9e01:e788 with SMTP id en2-20020a17090728c200b00a599e01e788mr4947314ejc.34.1715007070375; Mon, 06 May 2024 07:51:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715007070; cv=pass; d=google.com; s=arc-20160816; b=VS2NXrTX3mHGOxU1vsmjCgfCaAfLn8OkRrP7yQE7EeJvFOSuzYtd2UcfaWyBgaGtjm JEhMMQTnoUPp5mrjm7TWY3FbFnzpcNDDBx9ez8uJKUow2r3nKsnhHhvwALPSt6tnVY8g ZLYPPU96tPg00Za6VFFdhSWZ+8iuspAUCeLRfSl99XTgrInfhIE+HGeq3XfGsCRBPSeV BX7m5POM2oTAUJfS5FAWxO3kP263I/Jkj0hRjWHkpcttzhDCUJ16g30tKR7qOXinwfR5 731HcoLvFRye9IFMF1HeMiJC/UWtF3AMDuW+mTTOypqyy6VNrMqGgeFXusgBpTWF4omO i85w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=lFFdRBl/abKwjIsFck+7iM64lIxYS3/Znv6CkxEJjqA=; fh=RdCq2bd6q6ZK7oy6nA0rchcL44e/6asrJtYCUu0i2Vg=; b=BO0ml1DDhVtxVQ3xWkfrrHVs0fEHvAg4S1ziuFQvYk33m2sYrQhI9oshIgTJL8DhIo Jz+PgvxUH/HU8bsreMM/xuckLkXkf8a5a5JBkaII0CaCbXkPaVasEce8H9hbAXMVtrYl RigQgvObQhgDEK8R4qwObwZG5UB2R1GyO2hwi4uv6cuR1LlDd8tkwD1hwUFdBRWwnnFV vRZDmnctSALFt9CMOPQeni086ShFrCC1w+d1qdLb6hRT6Edeuu+Rzi516jRcw7uA6Z/h mmDAwyZ1lddg4uBQdfwkxsUd2t+QiVxACWEkOxzbbY+ocK2iJhgE34XxrmXTW5P8TBs2 M9Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=IsOaV9WQ; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-170024-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s6-20020a170906284600b00a5947ccf606si3540358ejc.66.2024.05.06.07.51.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:51:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170024-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=IsOaV9WQ; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-170024-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1FA391F21DA3 for ; Mon, 6 May 2024 14:51:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6396153814; Mon, 6 May 2024 14:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="IsOaV9WQ" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 EFF4013BAC7; Mon, 6 May 2024 14:50:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715007062; cv=none; b=d8mapL4F0EliFh0adbWwwPTlaI7Z1fWrfKnKPF2cW4mPohHVH32iOYZVBzYTSkkhRJtokOiGTdrm8+caDjaIOeW4dmD1yHHuWL4i1S1gkhK4rmqn7Rh2HD8fRRKGHgyLeBg7fOoORErpgrbZzXH/19v+PSGdZg7c/QT/qnHMEhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715007062; c=relaxed/simple; bh=eSfAG7eRcrkhY+Qr5HX1zI27MCV8+YfsRo1rrRm29Ls=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=nuVcX+SPkxBg9rDXsEkjLqpzRR9UbCJ0SO522727EdRN2qUxgRuFOwIoMYIXSChFyyoUIxkfu1e9eD+2zosn7AgioVPlX7Jebl0kHy5e1BCP31yZ2ndFhq6jlTxOmpa/AE3XuAXXuhLCxsT9Np8q/1U8IwN4OeAgeUyoPVX6BHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=IsOaV9WQ; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 446Bbcmp010927; Mon, 6 May 2024 16:50:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=lFFdRBl /abKwjIsFck+7iM64lIxYS3/Znv6CkxEJjqA=; b=IsOaV9WQBb4PNmAamgQO6Pm UsI6cuhN67SNpPbgtJ4Wq+PeizHv3jG5aBChR2vvDjinzQr8Lj4ydQMlrk0hjqO3 gr0mmxIvCNJrZdQOIBjjnqbZfCVghd6dbBGXYYVvxJAnSjiW7QOASZauCCe0oOWG IC9gyJCDKsAmiL9NqDXCICrP75gQ1T7yP+lHzspiJKIJGTpU2C0IVMziTU3WsD6x cFgC2cAyxFrKrPhQnGRBJ1wPz6kRxTiIoFir1EelJLG+InMfUgaLWsVE33UkcWrT G6KUt6u+EmO/1ZUfl18EOpBqjRS+0Wh3EukYygOxDB/n95QUK3++tLdrQXCLiNQ= = Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3xwcbx7j8r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 May 2024 16:50:27 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id A641D4002D; Mon, 6 May 2024 16:50:22 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D753D2248BB; Mon, 6 May 2024 16:49:47 +0200 (CEST) Received: from localhost (10.48.87.177) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 6 May 2024 16:49:47 +0200 From: Yannick Fertre To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Philippe Cornu , , , , Subject: [PATCH] ARM: dts: stm32: add goodix touchscreen on stm32mp135f-dk Date: Mon, 6 May 2024 16:49:45 +0200 Message-ID: <20240506144945.293966-1-yannick.fertre@foss.st.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-06_09,2024-05-06_02,2023-05-22_02 Touchscreen reset needs to be configured via the pinctrl not the driver (a pull-down resistor has been soldered onto the reset line which forces the touchscreen to reset state). Interrupt line must have a pull-down resistor in order to freeze the i2c address at 0x5D. Signed-off-by: Yannick Fertre --- arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 22 +++++++++++++++++++++ arch/arm/boot/dts/st/stm32mp135f-dk.dts | 14 +++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi index 32c5d8a1e06a..21861cae21d9 100644 --- a/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi @@ -13,6 +13,28 @@ pins { }; }; + goodix_pins_a: goodix-0 { + /* + * touchscreen reset needs to be configured + * via the pinctrl not the driver (a pull-down resistor + * has been soldered onto the reset line which forces + * the touchscreen to reset state). + */ + pins1 { + pinmux = ; + output-high; + bias-pull-up; + }; + /* + * Interrupt line must have a pull-down resistor + * in order to freeze the i2c address at 0x5D + */ + pins2 { + pinmux = ; + bias-pull-down; + }; + }; + i2c1_pins_a: i2c1-0 { pins { pinmux = , /* I2C1_SCL */ diff --git a/arch/arm/boot/dts/st/stm32mp135f-dk.dts b/arch/arm/boot/dts/st/stm32mp135f-dk.dts index 567e53ad285f..5e8ee2d4648a 100644 --- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts @@ -201,6 +201,20 @@ &i2c5 { /* spare dmas for other usage */ /delete-property/dmas; /delete-property/dma-names; + + goodix: goodix-ts@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + pinctrl-names = "default"; + pinctrl-0 = <&goodix_pins_a>; + interrupt-parent = <&gpiof>; + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; + AVDD28-supply = <&scmi_v3v3_sw>; + VDDIO-supply = <&scmi_v3v3_sw>; + touchscreen-size-x = <480>; + touchscreen-size-y = <272>; + status = "okay" ; + }; }; &iwdg2 { -- 2.34.1