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: 700569 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB809EB64D9 for ; Tue, 4 Jul 2023 17:34:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231453AbjGDRed (ORCPT ); Tue, 4 Jul 2023 13:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231455AbjGDRec (ORCPT ); Tue, 4 Jul 2023 13:34:32 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECC5F1BCB for ; Tue, 4 Jul 2023 10:34:13 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-992e22c09edso397629666b.2 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=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=iISxcERlznYha6nHmoQftp61ePMVnz4EMvtBwXNxZ+PbikVZutJpyT5XoQdtS2hvT+ Grix9I7EbJuhZQjeb8vQF5Jn/Q6kqB0yvsqCFzIOfgsqpv48K6jSozeFMvxPLq7uBupn oIRytuq92h9aI1LcvPsjeU8k2YblW4ELUiR60sJhY9ffhbpLMfdFSGZxp9vS6qn2fqSj SWWo6BJxuD7EzQGB08hg05WS3HP/+3Es+yZ54+ZLdO7zcFoBPRf1x4c6mU4rd0h1dI/M pcmOCifQ2xFFmMfPqvPKFKBWVH/mBsI5m5NmFl4g8MLw5tXMnfXNpo8k/yy4FK6Qd8Fw vrZg== X-Gm-Message-State: ABy/qLatHLaFHM2F5a00Cg8Zec93cQ1e1xkG1Cka8jBLRqjrDSUzxIiW XACDr4aoiFErJ+bo5U03a5mQgA== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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: 699023 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21E8BEB64DA for ; Tue, 4 Jul 2023 17:34:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230458AbjGDRek (ORCPT ); Tue, 4 Jul 2023 13:34:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231734AbjGDRef (ORCPT ); Tue, 4 Jul 2023 13:34:35 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BCBD1703 for ; Tue, 4 Jul 2023 10:34:14 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-98dfb3f9af6so711886066b.2 for ; Tue, 04 Jul 2023 10:34:14 -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=LyRyt6jU7uhNR74+DgU/mbhDpMkfFtuxBeUz4kUuPpAvWiQVooZYzbgJBiiAsduvKs LS7lv5c422vJTjCUkZTh/viAuBZAMPXIE9oe/i7GT88ilXqqoPX6y4AgAZphshGpT5qo XfQvGQr70qL01j6eUlbgMVd/0grRSChhJBHVi0Pl3JMnukRNr6OZsEpoNaUGJrQn/TEK iOBLK2TlKYs1oXdLvRUnYZGN206bxQiLBogsQFF2nxaWHg76T4iEFKVW5Hdlc5MuMvrs dofu2CpB/eZVx5PXJZ0dxeonF8aecbcnpTvaFqkoR1PFwl+0vQFi/jwBBoABpLNywOkQ Z7Vg== X-Gm-Message-State: ABy/qLbo74K/xKiEwtQfAmzSQfBGuUMXL9EEVT4y8AXvrj4qCuMFoTob eHVsJAOvI02UPUBnx4kwzlAv+A== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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>;