From patchwork Fri Jul 28 06:34:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2947 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 542233F1F3 for ; Fri, 28 Jul 2023 08:34:26 +0200 (CEST) Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4fdf1798575sf1543202e87.2 for ; Thu, 27 Jul 2023 23:34:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690526065; cv=pass; d=google.com; s=arc-20160816; b=KOet0Dz1tNn3MpNqSLzFikmw1AdimgT6VYBBZlteLaNHd8rkExjZz+Q2Ijxcj3CEm8 uggHTzaY1mInjP9jPqTIDN8GRxKuc0yp8SjV32jjQrfY7OdJTz+g2yyuCha7D1XwP7rE Geoqlb+M+qzyYgNg9vsuBN0BEnxT2gQQ8Ob/OlW4lftz2uJE4o48efR2bjP3Pn1+5jBo jfzIWASL/Eup6LLVz0/43yfGx/G4mH7KrqGerpEmdq7rwlPFKjezAqSKjrs2UcdMBjJx oGZteiNEUIa+ipFS3cPbWbwwFPvu25CP+E0ObXigruTjeIN9zf+LKZd5qAJA/adTdsMK tYPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MGG9doJ5mBLGTRPEBQwd+51IzFp0xYgNYZDKsCKzY5o=; fh=l/lHk8eRVrXKgF4YSTLYZ9obSFmuCwSaMLA49Sb0yrY=; b=k+WtjFNvK4zrgkYqL8yb3dRIx52DooPV9gcxVcQbZLGx5k/kCAa/lFoGT+vKYdBCLV T3UfQzJQyIrlZ4Ntfo3/7GPajp523DkRBM+v8z4aWLMEEqaOGQiGpL4+pPvJGUzwJ7FP tWnSH+G1Z2RiXqg9/bw4M2JSab3byuZNHse6tzFncToKMpjKgpRoQaXbn+wjZ7ZHsz1D prvEpt3T80gj8tiKi8bB4wPFwd3hGPCj3+E6yLrnR/zyVmaCZKHzvAUv6EhWh5j/A0bV MxlAISO47jDlxpkAGBXjlnz1zLc7iWL+yjUdesPcbcluq+Cp/CQdoIsfkpzfWBnsAorc q1Fg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YD4Cp6NO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1690526065; x=1691130865; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender: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=MGG9doJ5mBLGTRPEBQwd+51IzFp0xYgNYZDKsCKzY5o=; b=cjC7xHjlA2oN1R046ckmh/Ymyv1dD/TVJwioFi2JxG0IPEGKN2EWnsbV0BgmAvvFUR 9PmKs637pNrqCdwsNGOiQlotvOZCVaYN84Yqmv1jntvG3h3hW07H1F8R7H3zmikG00EF pNunfHk0GfDiNigwFQ+/aiGS1R6Dw7CM1UENg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690526065; x=1691130865; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MGG9doJ5mBLGTRPEBQwd+51IzFp0xYgNYZDKsCKzY5o=; b=QE7tC0gMKwxIjV4wnrY1vp49YZugDAZoryNhjVTPeWXZgWf07A9MXy8Oguui58wvAk 0nHplifhd+bzUStWUCf3pA63dFvz2d4IN48TK20xcMA0lQndONlm/tBVjFrdCrgHxQte s429DmFF9xqfJV4MURQfYohhk9E0HFDEhisjKl+CcwWnLDueiQGKbKBnRP6G2mdeyAZ1 988LAoxdj/owBVG+VMeRvcSOdqLzYY8ODL2H3Pm8o/EoTwzHlaprQ0UuduK9Mj0q3oW7 kFFxBhyg5zakYjejjc/xzzo+gMOGGSS8VyLdEasD62wiELmTykNWT9ToFM94kyCZptA3 VFbg== X-Gm-Message-State: ABy/qLafRWl4gLbRyOEHTb199yVIHrKbb9a4G8gnqA3kiu31JoZ+AMYK ZqEEq/OH4EvB2N9Vrx1rFP9coNvLctYSecaQ X-Google-Smtp-Source: APBJJlEplXfcaM9hCY17FL7P0DoUsLApRmrgvu5xmrZSLoRk2DKQ/CYylLKSlr0I2rnJkd7bFujvcg== X-Received: by 2002:a19:650c:0:b0:4fd:d470:203b with SMTP id z12-20020a19650c000000b004fdd470203bmr941874lfb.69.1690526065320; Thu, 27 Jul 2023 23:34:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:ac2:5f8c:0:b0:4fe:1d8a:4d7a with SMTP id r12-20020ac25f8c000000b004fe1d8a4d7als283215lfe.2.-pod-prod-09-eu; Thu, 27 Jul 2023 23:34:24 -0700 (PDT) X-Received: by 2002:a05:6512:54c:b0:4fd:d92e:31ca with SMTP id h12-20020a056512054c00b004fdd92e31camr796400lfl.36.1690526063513; Thu, 27 Jul 2023 23:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690526063; cv=none; d=google.com; s=arc-20160816; b=uGKYQrDNQM2suY3NLZ3VDIFCM+ggdsXoasgeCxaOvhX+1qVlFZKBo6EqpyggK5mHei b2bYH/gpRmvukgidMbMUJY9NyacH010yWAMb/4l4Krv2cSpWq1XOsGclpEVn62EDJ8Ap V1EJ1ku74yFmXCfuHbZcpF3ynNF+iYVysqWTxcJrYB/QbhUR7y6tdmB4GgkBnzbpgg1h QilgS17vFsVr7Me8hBTG9GPE9ixaM9x5Jex5/PdkKadFHSIEHVR4FMObp55RW9DeK4bd qyt6Efd0GEZ5BCvn661dqdjz7iZvVvDF5d9rvyhLRInnciUBzt6iHGfkpSyxb2ipdxbE kaKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=kSb7V+l5INAZZY1BiIqNw95KAR1Jhg86zX4iEYTQuGQ=; fh=l/lHk8eRVrXKgF4YSTLYZ9obSFmuCwSaMLA49Sb0yrY=; b=I8LvHikZGRLdN6NjZ0KT663gzT1lK5LxMXIHMhAVRtYkp3zcWDL6+mqubeh0jT1D91 win9JDgLj517t8Suiy6mAl9GcwZvO9DyPrr6zFEt8zndLbff9orHgIl/gF9T5y0ancXu QCICGf3+ySEtxXgm2amCvJGTdZGeFkOOgvUOj5q1lU4PFb24wZFxTaCvAQ7dL3lk9SHl OEihkP5mWo32Q/HQbhgvs4pfVigKpRJXop19qtO6YQLmoJROW0/9ARHHVPMgvh6HFbWx 9baAbsF/88iIiyWKkHLBIX8djPZI6NsNtomVEjhcP6MfbfAlSijuisfSHwe2u0qoa772 5JeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YD4Cp6NO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id i3-20020a196d03000000b004fe0cc0b816sor625773lfc.21.2023.07.27.23.34.23 for (Google Transport Security); Thu, 27 Jul 2023 23:34:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6512:4007:b0:4fb:829b:196e with SMTP id br7-20020a056512400700b004fb829b196emr1042929lfb.2.1690526063051; Thu, 27 Jul 2023 23:34:23 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-232-62-70.retail.telecomitalia.it. [95.232.62.70]) by smtp.gmail.com with ESMTPSA id n21-20020aa7d055000000b0051e26c7a154sm1425057edo.18.2023.07.27.23.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 23:34:22 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Philippe Cornu , Raphael Gallais-Pou , Amarula patchwork , 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 v7 1/3] ARM: dts: stm32: add ltdc support on stm32f746 MCU Date: Fri, 28 Jul 2023 08:34:14 +0200 Message-Id: <20230728063417.2980091-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230728063417.2980091-1-dario.binacchi@amarulasolutions.com> References: <20230728063417.2980091-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YD4Cp6NO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add LTDC (Lcd-tft Display Controller) support. Signed-off-by: Dario Binacchi Reviewed-by: Raphaël Gallais-Pou --- Changes in v7: - Add 'Reviewed-by' tag I forgot in v6. https://lore.kernel.org/linux-arm-kernel/20230629083726.84910-1-dario.binacchi@amarulasolutions.com/T/ arch/arm/boot/dts/st/stm32f746.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746.dtsi b/arch/arm/boot/dts/st/stm32f746.dtsi index d1802efd067c..36eda1562e83 100644 --- a/arch/arm/boot/dts/st/stm32f746.dtsi +++ b/arch/arm/boot/dts/st/stm32f746.dtsi @@ -507,6 +507,16 @@ pwm { }; }; + ltdc: display-controller@40016800 { + compatible = "st,stm32-ltdc"; + reg = <0x40016800 0x200>; + interrupts = <88>, <89>; + resets = <&rcc STM32F7_APB2_RESET(LTDC)>; + clocks = <&rcc 1 CLK_LCD>; + clock-names = "lcd"; + status = "disabled"; + }; + pwrcfg: power-config@40007000 { compatible = "st,stm32-power-config", "syscon"; reg = <0x40007000 0x400>; From patchwork Fri Jul 28 06:34:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2946 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 659063F1F4 for ; Fri, 28 Jul 2023 08:34:27 +0200 (CEST) Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4fb9c4b7020sf1554726e87.0 for ; Thu, 27 Jul 2023 23:34:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690526067; cv=pass; d=google.com; s=arc-20160816; b=OzEnbrJnnAU99uy5ZJRetztlCUtVeTmG+OnwZcR4nLsYeghaCJafzYTywifNbXb1Zw i4B4JHvol0fNU/3yOJlG+KsWG08M4H+7F2DsYWPFw7JeBOnfMFUjgBjXLA/ibZnHMulX UroFzOw2doArQbx97jx3NojFA8EKV5tmQF9WbC2zPDy8YASqODAva0AIfkG7x6ONq6id gIcZr1MI6dRXsaF9sa24N2sO3GOfw8fO2KAFvc0tSqK5T4wzKAgbSXfmm5spRoKk77M3 DXGrlHqgo9iD7ic3SRdiwykaZXvgyepFW/5II3r1dytwJViD0yHOXuOEE9kNcI47LAZa ZMow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ee0EypvNFvFX2ANRn4QEgFtsfTj4nx0IJuL50nl9U0M=; fh=l/lHk8eRVrXKgF4YSTLYZ9obSFmuCwSaMLA49Sb0yrY=; b=GD/yQAjjPPktmjgRB15quZovFNcff/7KVMguKqbNNJk93mZRFtsox/qDDqPE4Ixe0g EQHAzBlL9Rf4+e0RghuMy4ZAvdQ8Ssno6tIwOFCTTVqFl6gOIJ5fFSQ3ubZGKb0UmObh udSFNZ/5lpCNQ0Pc+UcuDhA8eRuILrvcu1tHC7b3edacHTgsMvPrT6FN03AUHglt6hkB MptNQULf1sHhgy711+P7EG7ySVAYVhyJZ9EgC683WE+y5X32KoCpmyX7yY6K9mV5UsP0 8NLqmTh2Z9jEC93vJ6kZTNzNoBGXpo2xPS3biAFfa/62u5+PYmaozQ5kjWhlGTUjv6o0 ArMQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MAL6quyp; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1690526067; x=1691130867; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender: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=ee0EypvNFvFX2ANRn4QEgFtsfTj4nx0IJuL50nl9U0M=; b=V8c1WhnHVFtZykbBL5yOu5cdSzrktlnr+MWGsH2z6o4BXzEGJWRhDZPZrY7M1YH5SS 3AXLcOLdJPhSue3ODJf+hjrfldCifG/sJmvDetIZWPFBs1saA4cADLXmVXitTdjHpB9h /MEHc760hzkTgDMFtvnBV7V3nbqhlpchN3m1k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690526067; x=1691130867; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ee0EypvNFvFX2ANRn4QEgFtsfTj4nx0IJuL50nl9U0M=; b=h+F4ZhCQ8MiQ7TTDy/NdwZY+hUNfd7BcwXdiY1J4AP1CLYh4iHQjuxe4EL9oHd5lBy tsu2VV71yh2C9y38fdplekLjOX8qzIzc6ifbcZaU6wdGvkznI46niTyol43J/KcU99vG /Q9e5GHor+NYE4DqLqSUBM2vm2UbglVW5cPdYdH54yZSQbNmTga0yPpvvOfy6FvIOZpz /psNbvRv2vTzV+O89824iK4ubZtILd1heN3CrKmV7uMRmYcbvr920fw2n4+AZFBuChsk h0ALsZeWZ2NhTfPYmm4zpbEXDh41EuOLug4TAfoTXHOzc7sHLW4onLZpoM/TEC6Dqz1b ubQw== X-Gm-Message-State: ABy/qLYcXP4cOr1pIcdl6IV10YIlPFmnxdNZ/VGg0oHclolxL2kFkIU2 CBfvwZ+iun+b0AlG4ooNzlL0n+qppWXM/H2M X-Google-Smtp-Source: APBJJlHdd/UxcZQ17HavMtFGOuRFDfUW7TRLFKmMeoTwE4hktbbi1RVAfxwC02iqdnbU+GFTOsL40w== X-Received: by 2002:a05:6512:2529:b0:4fa:e7e5:66e0 with SMTP id be41-20020a056512252900b004fae7e566e0mr1121507lfb.48.1690526066810; Thu, 27 Jul 2023 23:34:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a19:4f15:0:b0:4fe:c98:789d with SMTP id d21-20020a194f15000000b004fe0c98789dls510275lfb.1.-pod-prod-09-eu; Thu, 27 Jul 2023 23:34:25 -0700 (PDT) X-Received: by 2002:a05:6512:1105:b0:4fd:c785:58b with SMTP id l5-20020a056512110500b004fdc785058bmr1093582lfg.4.1690526064963; Thu, 27 Jul 2023 23:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690526064; cv=none; d=google.com; s=arc-20160816; b=YdnheErkO/VylP8tPTqhsk5ClzGZbuIwnSRPcLDD4OwQNYyqxJfe/Hu/0RLsvb5Eo9 9GykJXXWN85rQnwCs8GbZJS6k3oA+FN56wr0LRIhTd58E8ahDoRm2LkG17I0wlI+vnFK Cm5dtLRTaSsCG9wfAPKrJympkgom4ga0jiHjcCx/V2Uz2S5oV7i1xcIM57Et1/6z4w+r puT6WlmkGbsy9Gh8QojMprVBct4X7mJFqhbIbNJlHdHtUCpl37TAuEW9Di6jDnrv4cTh mJaUOry5U0YNrzC4AcVkflAacXKY/ZzqWVYcLc+28rXKhYr05NCu7xTb7PXEywblysIY 1X3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=PU0Mm1LqR6Sd23PVyNdW/l5iyuu7GETQ6ileDMCjS3c=; fh=l/lHk8eRVrXKgF4YSTLYZ9obSFmuCwSaMLA49Sb0yrY=; b=Wfy2+0k/uEaq+/jQi3LhJ5j1CRAeauRgcIXib7QfjgRvXCERVT/zWF/Se9CP2I+UpV Tq0nbiMM3ic1ydd1ZaqkazihjF/N/dueD88sRUzQWNj1bJeNL7l5RRmXWlxnxyEDi5HO Dn1BivrY1kIz0Ne8JCFySnfjhIrdOcKKxXJZOWssrZmD5bMSzDQznC4FiyvABp+Tx0XP kkhTdn+QM04tRnNZzLMNYzDXJQiT5D7dclzNGSdlqrlKZPdPS5EA9tEuxAAN18DNMQdl O3M1cU8NWkL+risx/S4WIUs5+/HJ5SI9w665+4CgS/QS/rmAdXD54lX4OlygEh6LX0uQ cE8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MAL6quyp; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id g5-20020a50d0c5000000b0051e2527647bsor515463edf.1.2023.07.27.23.34.24 for (Google Transport Security); Thu, 27 Jul 2023 23:34:24 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:296:b0:51e:34d5:a23f with SMTP id l22-20020a056402029600b0051e34d5a23fmr1074950edv.23.1690526064620; Thu, 27 Jul 2023 23:34:24 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-232-62-70.retail.telecomitalia.it. [95.232.62.70]) by smtp.gmail.com with ESMTPSA id n21-20020aa7d055000000b0051e26c7a154sm1425057edo.18.2023.07.27.23.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 23:34:24 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Philippe Cornu , Raphael Gallais-Pou , Amarula patchwork , 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 v7 2/3] ARM: dts: stm32: add pin map for LTDC on stm32f7 Date: Fri, 28 Jul 2023 08:34:15 +0200 Message-Id: <20230728063417.2980091-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230728063417.2980091-1-dario.binacchi@amarulasolutions.com> References: <20230728063417.2980091-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MAL6quyp; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add pin configurations for using LTDC (LCD-tft Display Controller) on stm32f746-disco board. Signed-off-by: Dario Binacchi Reviewed-by: Raphaël Gallais-Pou --- Changes in v7: - Add 'Reviewed-by' tag I forgot in v6. https://lore.kernel.org/linux-arm-kernel/20230629083726.84910-1-dario.binacchi@amarulasolutions.com/T/ Changes in v3: - rename ltdc-pins-a-0 to ltdc-0. arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi index 9f65403295ca..36dad40dd0c7 100644 --- a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi @@ -365,6 +365,41 @@ pins2 { bias-pull-up; }; }; + + + ltdc_pins_a: ltdc-0 { + pins { + pinmux = , /* LCD_B0 */ + , /* LCD_B4 */ + , /* LCD_VSYNC */ + , /* LCD_HSYNC */ + , /* LCD_CLK */ + , /* LCD_R0 */ + , /* LCD_R1 */ + , /* LCD_R2 */ + , /* LCD_R3 */ + , /* LCD_R4 */ + , /* LCD_R5 */ + , /* LCD_R6 */ + , /* LCD_R7 */ + , /* LCD_G0 */ + , /* LCD_G1 */ + , /* LCD_G2 */ + , /* LCD_G3 */ + , /* LCD_G4 */ + , /* LCD_B1 */ + , /* LCD_B2 */ + , /* LCD_B3 */ + , /* LCD_G5 */ + , /* LCD_G6 */ + , /* LCD_G7 */ + , /* LCD_B5 */ + , /* LCD_B6 */ + , /* LCD_B7 */ + ; /* LCD_DE */ + slew-rate = <2>; + }; + }; }; }; }; From patchwork Fri Jul 28 06:34:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2948 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C1CFD3F1ED for ; Fri, 28 Jul 2023 08:34:28 +0200 (CEST) Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-4fbcdca9080sf1537010e87.3 for ; Thu, 27 Jul 2023 23:34:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690526068; cv=pass; d=google.com; s=arc-20160816; b=QmiGNl2Dk4TNDH5TtkiouRgfIIQcJBEgCboaatYg5erpetT9ck2I2wcsdCbIc2tKEZ brj2Rw0+VXIugjtLrgIsLAeGuXB0AeSJ7gUuPdvySJ1kFGUCCLN2az53rwZnCof2defd 7XJ64186bqKrH96svp0Q8Jt0KeEwrhDH2QtI4qpT3TmxPm2rQfqr4NZOJin0M0pdPgXG VOHQFaQRA6kWZHnoAuulqPTTcf+xzOI8ZIGIIWi/7HcGA+hq0YMnEz5ZN4rU9KYUpHvq LWLIILBQC/FkfGCdKcPMqh3ArC+sRAw7OykiX6ZUzzgg43Ix7YlnN4y3nOxdz9S7lpb+ W5/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Rc+vvfDnxOSxDafCznP7UzImgTEMW3rgAaOptAG9ZEI=; fh=l/lHk8eRVrXKgF4YSTLYZ9obSFmuCwSaMLA49Sb0yrY=; b=F3O17KjPI5Y6UESnBdrTGMLAx2iuYoGtjzE6NLr8ZnMngXvBRLonqkhFUyI4EYFy1S ifsZqC6XTRZ0zDtL8QU4N2FVjJoarFFy/0uaGKQwUxk9YGkAvIK59UonfAWxCjbuwI9c KoPOk146c4waDNhjmYTayirwSrCkRM6ZZ17j4om0/TAPNyNNZ2blt0V0v8BpXkmUK5p5 oCk2UAwmqM32EaV4023zqi8C5q/Kt+ITZO4llg7hgQX/r/om4e2OEVNcdGiQjnpYXHbp V28DumZzpCVje1eOZPjSi0tPB9wpXcUox+pCYRzEABscVagI9m/N9nQDH+7lICem2UXy p6hA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=coD2+ErD; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1690526068; x=1691130868; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender: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=Rc+vvfDnxOSxDafCznP7UzImgTEMW3rgAaOptAG9ZEI=; b=LznqrerTouO35eouJ7KyOuKtq1H2X8xxHL46Db60UvP8Y6EYaesiXGNCRoSAgNH4Sy 9CnxT3YV+Ka2c1U6l/Q4krxRuAGU26QCxhZZhyiLFA3OcS+IUDFI2comtXh0duh+cn+J ahwWrkDvaxeFjIRrMMXmT9gA/79bcCibVJpRM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690526068; x=1691130868; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Rc+vvfDnxOSxDafCznP7UzImgTEMW3rgAaOptAG9ZEI=; b=X86j1ywORlKPXwN3GMY9duH8CoGcbwIv8NbFdA6oAj1ek3CV8wVV+eY0SrG8PAkKAk uPXrRoNsC1vus1HA/Q+UDc5fxki8I5rKtEnmrLYlkBU8GPqKQI3X4ROKDgGntxEmoBLT U8fHkYuCRL8JW2XYA3EeymH6ojB3CNt1gV7T5VyatBqtIexOPzjTbG1gPNhOc/wJqTCv 29fWcK2jI6Ttp9R+kRfS3h4P2W3WAeCephvP/XFcLO1LuMLnB/lJKoAgtL3RmRbKxgys 4C1e/2tWxDWvYOzJrS/R23RRLCDdL+7AP36WclfiID74FOvaEM9w6pdm+htuq0ug7tcX x8Nw== X-Gm-Message-State: ABy/qLbwpwVse0Io6lJAX52aHs9xttU8AQHCP9MzZYsD4FPZQyiCuuex zp0Cdi4dBm6bSocZ4teRisSFYQl2 X-Google-Smtp-Source: APBJJlGdoJKmsJotwWPPHmLtRhNYVvVNyPvE2vK5zL64HRKmiiK8o0/TG58LN5p4glnMwYN4T4DCDw== X-Received: by 2002:a19:670f:0:b0:4fb:9d61:db44 with SMTP id b15-20020a19670f000000b004fb9d61db44mr849821lfc.12.1690526068207; Thu, 27 Jul 2023 23:34:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c3c4:0:b0:522:5a8f:60c1 with SMTP id l4-20020aa7c3c4000000b005225a8f60c1ls706867edr.0.-pod-prod-09-eu; Thu, 27 Jul 2023 23:34:27 -0700 (PDT) X-Received: by 2002:aa7:c0d1:0:b0:522:3ce6:4473 with SMTP id j17-20020aa7c0d1000000b005223ce64473mr1012100edp.16.1690526066566; Thu, 27 Jul 2023 23:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690526066; cv=none; d=google.com; s=arc-20160816; b=v41cwqL6Buvak2r4glDuMo+9GxK7XrRC3+cn+oe3ljAZf6BMQdxLrn5c+p5mV4cyzz Rzk4m6T4Spx83K+/M06kAblC0oQ3hRkzdw2Nn5QJion7ojsTcm5eZ5GPhDxjx4sjqVlT em7UPCF/NHu9kAcgBdxJ07sAdtKK30GPPNsERCfRSnz3SocFcjV2a3XISulraVDPNS6V r07K3qC/ZsVv+mj61UT4h9lFsoi6CknTK8jHdeny9MKYiCbkuXnVoyGxLDjeAkJGOXVr j//oAYojXhNs8jv3Ml6l4ND9tjCa+ao3AmuPJL/K3ITze63NkHQioL/H8kOogulSi6Lc O8Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=x4zfk9+w42D4Vl03+U/DigAoB0zXZh0Gh/1uuAJ0hLQ=; fh=l/lHk8eRVrXKgF4YSTLYZ9obSFmuCwSaMLA49Sb0yrY=; b=IpmsYtnSP1cLyaPQfTPg44cJA4Ea8gTKMovv/nghZhQf6HPjCSo5u11MKmuzZZyU0A z0PQ2OaTHUdjRNlIgpVLC9xPNj6DtOol1UNjlfjgXYtDziuacLbR7tePT+2y+i8mIPjj BDaNCISuIRU0jKgWsq/hPFgwdavBXG58P14nIscJZzEuGB7x4W9ZIMTdFM4/LQJW0Xt6 rp91+p36aswMZPxymXPui28qgFyJKTIkSnLlkGnLvXeOswGMKnnAi2f7AQBBJ1LSFykJ 9Q/XbbBwWh6+Dc7keHYW224TWXXzrfJmyp+ap3UnbbnROdOMzqHQ0H7N8YtE86DImK2l 1jEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=coD2+ErD; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id b101-20020a509f6e000000b0052259fe3b46sor506691edf.8.2023.07.27.23.34.26 for (Google Transport Security); Thu, 27 Jul 2023 23:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:aa7:d847:0:b0:520:f5dd:3335 with SMTP id f7-20020aa7d847000000b00520f5dd3335mr928262eds.41.1690526066222; Thu, 27 Jul 2023 23:34:26 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-232-62-70.retail.telecomitalia.it. [95.232.62.70]) by smtp.gmail.com with ESMTPSA id n21-20020aa7d055000000b0051e26c7a154sm1425057edo.18.2023.07.27.23.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 23:34:25 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Philippe Cornu , Raphael Gallais-Pou , Amarula patchwork , 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 v7 3/3] ARM: dts: stm32: support display on stm32f746-disco board Date: Fri, 28 Jul 2023 08:34:16 +0200 Message-Id: <20230728063417.2980091-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230728063417.2980091-1-dario.binacchi@amarulasolutions.com> References: <20230728063417.2980091-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=coD2+ErD; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support to Rocktech RK043FN48H display on stm32f746-disco board. Signed-off-by: Dario Binacchi Reviewed-by: Raphaël Gallais-Pou --- Changes in v7: - Add 'Reviewed-by' tag I forgot in v6. https://lore.kernel.org/linux-arm-kernel/20230629083726.84910-1-dario.binacchi@amarulasolutions.com/T/ Changes in v6: - Remove dma nodes from stm32f746-disco.dts, they are not used by LTDC, so there is no need to enable them. Changes in v5: I am confident that framebuffer sizing is a real requirement for STM32 boards, but I need some time to understand if and how to introduce this functionality. Therefore, I drop the following patches to allow the series to be fully merged: - [4/6] dt-bindings: display: stm32-ltdc: add optional st,fb-bpp property - [5/6] ARM: dts: stm32: set framebuffer bit depth on stm32f746-disco - [6/6] drm/stm: set framebuffer bit depth through DTS property Changes in v4: - Use DTS property instead of module parameter to set the framebuffer bit depth. Changes in v3: - drop [4/6] dt-bindings: display: simple: add Rocktech RK043FN48H Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next): https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c42a37a27c777d63961dd634a30f7c887949491a - drop [5/6] drm/panel: simple: add support for Rocktech RK043FN48H panel Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-next) https://cgit.freedesktop.org/drm/drm-misc/commit/?id=13cdd12a9f934158f4ec817cf048fcb4384aa9dc arch/arm/boot/dts/st/stm32f746-disco.dts | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts index c11616ed5fc6..c00d34179e2e 100644 --- a/arch/arm/boot/dts/st/stm32f746-disco.dts +++ b/arch/arm/boot/dts/st/stm32f746-disco.dts @@ -60,10 +60,41 @@ memory@c0000000 { reg = <0xC0000000 0x800000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,cma { + compatible = "shared-dma-pool"; + no-map; + size = <0x80000>; + linux,dma-default; + }; + }; + aliases { serial0 = &usart1; }; + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiok 3 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; + + panel_rgb: panel-rgb { + compatible = "rocktech,rk043fn48h"; + backlight = <&backlight>; + enable-gpios = <&gpioi 12 GPIO_ACTIVE_HIGH>; + status = "okay"; + port { + panel_in_rgb: endpoint { + remote-endpoint = <<dc_out_rgb>; + }; + }; + }; + usbotg_hs_phy: usb-phy { #phy-cells = <0>; compatible = "usb-nop-xceiv"; @@ -99,6 +130,18 @@ &i2c1 { status = "okay"; }; +<dc { + pinctrl-0 = <<dc_pins_a>; + pinctrl-names = "default"; + status = "okay"; + + port { + ltdc_out_rgb: endpoint { + remote-endpoint = <&panel_in_rgb>; + }; + }; +}; + &sdio1 { status = "okay"; vmmc-supply = <&mmc_vcard>;