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>;