From patchwork Tue Jul 4 17:34:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13301523 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44BCDEB64DA for ; Tue, 4 Jul 2023 17:34:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=u+BjQV4H+mw1YIkd87uk8DezW42nc0vvzBvcvI7hLPQ=; b=xPH1YIg/Dn0EEC qppYQ3a+fZ/m30luPxdN51ErTrM+JyqNJRC/nv65UZuIRQCM0/JL2GXEWX5USm9wT2Y1rN4tSiHd+ x52E2PAfj2+fJOVw7rew3aFr7DBuoFC+HuW2CHZ3gRAlGI3PKe8sSpRHFAuwxkC8fzo2CuNmmgQUO k2420JOo6M2fi+uF8CkThSdJBXQlQ/8JtxyuD0Lxw3mYC22A1/4A5QQK8PPPjyPIORj/mwTBQsrU4 1GQKnuMHG539/A3LoYIB+HyjujKOilT3itilFkpKEvgNjXQXU8Bbbk/F6p1i2FSP0oNZLJowcWPKK G5cJ8wRwde/TGo112u7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qGjus-00DwRv-2h; Tue, 04 Jul 2023 17:34:18 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qGjup-00DwPH-39 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jul 2023 17:34:17 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9923833737eso517952966b.3 for ; Tue, 04 Jul 2023 10:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1688492051; x=1691084051; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+K05sBMM6p7NXDAV8Ux9b1t0k5cRXekoIV2P3Kh76Xw=; b=Ny43sP8+pJbMIBVttTOGYImqIAYLCMNJ2B/VwNih8hYxbkGpM+IGUdRmD/s4oLy608 XgkaiY+R7INN+vBcqqUix+k+vLt+OMHkqVem/7N6yk1fVeuoXnkONc+6YwA62gPov+xa 8gbmZSuTuWxsFLiU51KL/CuL3wU3GuzCxE1lg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688492051; x=1691084051; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+K05sBMM6p7NXDAV8Ux9b1t0k5cRXekoIV2P3Kh76Xw=; b=ZjMzfFLO3Ylukh327nQW3XCh9ned+WL2D/yzwuhmjyoYt9DIIaMn6DuKccQcPBjkwC kH8JSvJ8oqdef+xnqFnju/ooXNc2B1p6guNaIyu7zP10i6SyoNm+2BgIJh6wB6A+TDq8 YtVtfFdEron9GKYrz+mDHQgQ6EaI9q54lggWkDZaqOTkN7gaC5d+5Nm43TgZecEeiOsj y2ajcKuQMW9vhY8Hlyw1jQjAa51O7euQMLQZ2/MvoBEemVD3ss1b7ZR9GYRXgTzwRcG8 LHrX7KhDQ2VGh9x7LSa4eG7zbTHLLetwJC/65W5r+Zf1aHECqZQGrrSpSXsijedD4TXu phiQ== X-Gm-Message-State: ABy/qLZpOTNtdlJGndBh74CR7I9zcHsYpD4UGOH9ZSY9T6LNPH05rUQ/ b/SQTSDEKGfFAr8BFg4BpXEPkw== X-Google-Smtp-Source: APBJJlFK3NsyL3nVNojHW421KP10BF589AScgGhWC+ZxmPL0fSDLBXw5Ct7ujEtvQomfAxBlUF/3lw== X-Received: by 2002:a17:906:35d5:b0:96f:7b4a:2904 with SMTP id p21-20020a17090635d500b0096f7b4a2904mr10921853ejb.3.1688492051452; Tue, 04 Jul 2023 10:34:11 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id v24-20020a1709064e9800b00992ca779f42sm6724645eju.97.2023.07.04.10.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 10:34:11 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Dario Binacchi , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 1/2] ARM: dts: stm32: add pin map for i2c3 controller on stm32f7 Date: Tue, 4 Jul 2023 19:34:06 +0200 Message-Id: <20230704173407.590544-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230704_103416_019023_97138B58 X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add pin configurations for using i2c3 controller on stm32f7. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi index 9f65403295ca..c8dfda7bd04f 100644 --- a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi @@ -171,6 +171,16 @@ pins { }; }; + i2c3_pins_a: i2c3-0 { + pins { + pinmux = , /* I2C3_SDA */ + ; /* I2C3_SCL */ + bias-disable; + drive-open-drain; + slew-rate = <0>; + }; + }; + usbotg_hs_pins_a: usbotg-hs-0 { pins { pinmux = , /* OTG_HS_ULPI_NXT */ From patchwork Tue Jul 4 17:34:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13301522 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B3A9EB64D9 for ; Tue, 4 Jul 2023 17:34:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kEev0J5iJFGYYxKy7pFKM9RyQMHS2F67YFL+L+UoM6U=; b=NuKZnabmHmEesa tntRj9DuqN0VQo4oeeeuDyo8BEVUS+YxhfV8yOzxgNxdPDDoKTmNVFmo0re+YVGeEpJxi+v0B57Hh pZ/D/vw6Sd7I4pmqqo8K0L5K7rdoBgGfSMxZ7nkSVGPVP7/wHclMQHQGyRG8c2tCzF3BJR0GSntoN r8zD5CUmjK9/SPVHJ3+nQdameDXaIEtysCrQ+B6ShyZT2z5Hcpla9sNWensJZjbjEfeI9cGUE1Fo7 CItgSuRODx241rv2mKESnlKcbTaoQlxNr0z3fwfo0snbDcNjITBtROJ5SSCNPN1smpHcS4hVXLHR/ pg3NRyxwam0xvLa7tmPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qGjuq-00DwQn-0i; Tue, 04 Jul 2023 17:34:16 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qGjuo-00DwPe-10 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jul 2023 17:34:15 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9922d6f003cso714549266b.0 for ; Tue, 04 Jul 2023 10:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1688492053; x=1691084053; 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=E82hjoqhMKWrCTgt/fXbmQjWVshoS0GVNipXIUdN9/k=; b=MknyirkMO5L5olTeZIB+6FibKKcCcnwpxx/lCEzrasyo2VaFLkGQnFAE3XfyPXBBrd 5JxMLWQ7UgqdselInS83IA00I+bXOSMIaqZdnLoXYlsLnBsPk9jsj1FkP2NEBYAB8Itd 3avYV1f8udp3EgWdoV4qLZSWIHNNmDKUnRAkE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688492053; x=1691084053; 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=E82hjoqhMKWrCTgt/fXbmQjWVshoS0GVNipXIUdN9/k=; b=Ynl2KkXHDShkZjPWy+fmDNcfjqHxfCv2Awt3NetGLRwWxEH62iMToHClh7pSVFC8NV XL3AE7x0mdZy/+w0zdm+SCl9iF2JbcJimY66OBKYl1x5AAd84vInHCz0gAy2zed4gHcA KcW8lNJMkteDuL39EtESw713UE0aSdSgg4IYUW6RGgnagEt2zNkirs95cr/vkT9e1j20 lxoHXhlERCLg3rki4EwIh2fhFf0mbVRi3MblShJdplw2dYJi5zKv/WgdKK4ypBTHzCh+ uVTNI3pf08WkVxPURb7arN7TnSrueUFmv8wpgbn0inqP4eWkNJPNTOvpQbiSsoSQvcB9 obZw== X-Gm-Message-State: ABy/qLYvGFp0mwO7e6tdekfcT7Mx6iNSs9FaquNhd4wwwJnJNJD24vNd EuUVfHIyhzuhTTfk9WjCEUrknA== X-Google-Smtp-Source: APBJJlEUTY/dtc0SSVLyoiRR0j7AGo68Z6RwBaNZuNo7uqPpDBL2Z2MiKGW2gWb95F8odAa5qV455Q== X-Received: by 2002:a17:906:a88b:b0:988:4a48:6ff3 with SMTP id ha11-20020a170906a88b00b009884a486ff3mr10024044ejb.30.1688492052935; Tue, 04 Jul 2023 10:34:12 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id v24-20020a1709064e9800b00992ca779f42sm6724645eju.97.2023.07.04.10.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 10:34:12 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Dario Binacchi , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 2/2] ARM: dts: stm32: add touchscreen on stm32f746-disco board Date: Tue, 4 Jul 2023 19:34:07 +0200 Message-Id: <20230704173407.590544-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230704173407.590544-1-dario.binacchi@amarulasolutions.com> References: <20230704173407.590544-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230704_103414_354798_763C3F61 X-CRM114-Status: GOOD ( 12.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The patch adds support for touchscreen on the stm32f746-disco board. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/st/stm32f746-disco.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts index c11616ed5fc6..4830ccd48cb3 100644 --- a/arch/arm/boot/dts/st/stm32f746-disco.dts +++ b/arch/arm/boot/dts/st/stm32f746-disco.dts @@ -45,6 +45,7 @@ #include "stm32f746-pinctrl.dtsi" #include #include +#include / { model = "STMicroelectronics STM32F746-DISCO board"; @@ -99,6 +100,22 @@ &i2c1 { status = "okay"; }; +&i2c3 { + pinctrl-0 = <&i2c3_pins_a>; + pinctrl-names = "default"; + clock-frequency = <400000>; + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5306"; + reg = <0x38>; + interrupt-parent = <&gpioi>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + touchscreen-size-x = <480>; + touchscreen-size-y = <272>; + }; +}; + &sdio1 { status = "okay"; vmmc-supply = <&mmc_vcard>;