From patchwork Thu Jul 2 17:27:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Pop X-Patchwork-Id: 11640011 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A90F4618 for ; Thu, 2 Jul 2020 17:27:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 82D1720760 for ; Thu, 2 Jul 2020 17:27:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YtQ8zFW9"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MrrLRE8T" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82D1720760 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=4C/eM+lAKNv7jLdvBhVxT6/p2HhDWV+dYwlSYBkRlGQ=; b=YtQ8zFW9JMHDBgtaG79B3H/xot n4cdKzNM7vA6k6Vu+wdSQo24vf+AtHXB5H7GQp7OeD1RCzYBQehsT4Q3oMNOtMyn+goF0lfzGFYf4 xWd5d+XnEQD9ymTXPfyplj/CyzejY7pwBDYaMhyu6b4V9FNNOuUZo5lm3plbZ0snNtNSk39ysP5Do GZ6ikRykAxTmyfmfEtZx6JdL9HaRaQHzTE5Y9GLNDj8TAQftAV1M37jqhQGwcrzP9huedUlUZFLJP J9PGvGKQMbTIVHRkHrah0XxJ5ukpC6GaijdmcZwY2pCMBTEzHzcexfaiBFw4hbXcIsNMJmLD8XKOC LOJPBKSg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr2y6-00010R-8T; Thu, 02 Jul 2020 17:25:50 +0000 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr2y3-0000zk-Qy for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2020 17:25:48 +0000 Received: by mail-ej1-x644.google.com with SMTP id n26so16748493ejx.0 for ; Thu, 02 Jul 2020 10:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NnTRoWjTfYr2A0Uu+ecfb7UTjmUGA+TKhWtn9pkCD0I=; b=MrrLRE8T6J2vS9TQARvXwu8USGzuPxgmYm6BHRL88aSYWsp3/l4n6dmpJvUr0iagtS eFsSyzjvWmZt7fgTlOsHnBEWVciouvhP8n4iPEo9N6bPJ5ajUdKIz7gTXUfHeqTrG1iT QmiJ1bSxWZHNQxL5T2kf4oWF+kWadTdaAkTQmBCKUpdSCS7IBVMNoBe5XTOgjQisemaS IE+o+wVwfVuf5/+BljBz1U7dGInj9bsIDlhHgSB3QJroDQNGjUOByJ/OBvw2a0ubKTZn 8c7+LXrloX9CIcVuRx2Ozx/yqVS8WWtva1A1SpxCl3B586MkWlsXTPOqi4UsMZ+yjLEC CL9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NnTRoWjTfYr2A0Uu+ecfb7UTjmUGA+TKhWtn9pkCD0I=; b=Y2QTfaqp9yNXtNnTNYTSEXy8Yn4Ulv8UyiAiepTBcPso/Pd4ZxJ65uqiOJTCid773G 1lDAdHWfOstxA+DPK8z8nKMWO4HIEXdFDt81Pg0fHL+kGQXfcTLYvfNNEgNyl5Ajm+oX fVc613UVHnzUogPrjsKNlUPRw78ehDEF/RGE2xczfw4bL/cY1GrUFgG1Gq/DPmIN6dBG IBCXFsmTiABq6UHgRkdxJUCJtTPqods6xpIyz3K9GIqMZuoPfY1RJmA4wMk7eiTmwloi /tJa1LtPZ6oy4aHYjbo/gx39zTZbuOPxyof2F3Cto3ckxA2/l9ATKxNTQG+7NnFMySlc 2Olw== X-Gm-Message-State: AOAM5302UnfXjK/CpbyTIkGTNMsqpIorjvd8g8kGwNMeVgd7wxkocWae vJrlWeO99A3Szw5h7qiLsZA= X-Google-Smtp-Source: ABdhPJwiP2P0UIlaSVwrUUaua3N8zGJ8j3nQZeobo/IS6TbPfAs6R7ZnqLBuwhXOUApwiNHibGuQ+w== X-Received: by 2002:a17:907:20c4:: with SMTP id qq4mr27836954ejb.85.1593710745093; Thu, 02 Jul 2020 10:25:45 -0700 (PDT) Received: from localhost.localdomain ([2a04:2413:8140:6d80:2142:c138:da0:5086]) by smtp.gmail.com with ESMTPSA id p4sm7427033eji.123.2020.07.02.10.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 10:25:44 -0700 (PDT) From: Adrian Pop To: Maxime Coquelin , Alexandre Torgue , Rob Herring , Lee Jones Subject: [PATCH v2 1/2] ARM: dt-bindings: stm32: Add missing DSI clock. Date: Thu, 2 Jul 2020 20:27:13 +0300 Message-Id: <20200702172714.158786-1-pop.adrian61@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_132547_897819_5984D10D X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:644 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [pop.adrian61[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [pop.adrian61[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adrian Pop , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Signed-off-by: Adrian Pop --- include/dt-bindings/mfd/stm32f7-rcc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/mfd/stm32f7-rcc.h b/include/dt-bindings/mfd/stm32f7-rcc.h index a90f3613c584..ba5cb7456ee4 100644 --- a/include/dt-bindings/mfd/stm32f7-rcc.h +++ b/include/dt-bindings/mfd/stm32f7-rcc.h @@ -107,6 +107,7 @@ #define STM32F7_RCC_APB2_SAI1 22 #define STM32F7_RCC_APB2_SAI2 23 #define STM32F7_RCC_APB2_LTDC 26 +#define STM32F7_RCC_APB2_DSI 27 #define STM32F7_APB2_RESET(bit) (STM32F7_RCC_APB2_##bit + (0x24 * 8)) #define STM32F7_APB2_CLOCK(bit) (STM32F7_RCC_APB2_##bit + 0xA0) From patchwork Thu Jul 2 17:27:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Pop X-Patchwork-Id: 11640013 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BCD73739 for ; Thu, 2 Jul 2020 17:27:30 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9679720760 for ; Thu, 2 Jul 2020 17:27:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PSzcwHN/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FhXBAjOq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9679720760 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=c8N8X8N68/tYRVZ215IttCJvKvKjZT9ZNE8iqKKTArQ=; b=PSzcwHN/3sx+2w/kgTs+pAR1+ q0a9jGeLK6lmYW6zoQuSAFq7KEJ/RRMGxLW5IFMcee1LwSshREUIJU90v1ty+tO7hWAkH9/F4JsmB +fMHbk4CSWRcV+KzZVV/rDNmOMKSBJUckHPEFWp9BgBS3L/zuP/vyOiddODOicA0bM3Cr8xwfrnkm dlv1JL/MERKB+QikI7xYd0chvT7RPy/FxhNTgALvJu3x3tMa6RinImQzvDivCR40Ty6nYj6QJpuAP I2xgv3B2/EdqsQ3B9BFWSPcphB6sFjX1rWO/D15GMs//sp3jhDDVTm9CeEqpMGaptSCM7lw/7m3Bm V8pya0tTg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr2yI-00012q-0b; Thu, 02 Jul 2020 17:26:02 +0000 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr2yF-000126-1G for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2020 17:25:59 +0000 Received: by mail-ej1-x642.google.com with SMTP id p20so30645724ejd.13 for ; Thu, 02 Jul 2020 10:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zKcCJcC7Q8PJoAnihwGAVpWoMYH3cBF0KesdV2Y/nys=; b=FhXBAjOqlpaiC3ecnywt7k95es1/ZcfGA2/Gx5kmRKXUkyFJUnS9n9AKAKBNfVEFZu l4kdLm+DrynoKo9ekZIcOqixss6+IcrN03lfi6UVV9JqFh/R1YHSDsOqvy/jfYgCjHKh RKiNjq14ffb2BZZmdIxNh86k98oCaLiI8/jFJfWn/roJ6rhoYreJvRlffrGJ9NkM3UUA 8MgNfuJ+gvf3/B5eXepTWwLdO9ktFHxu2q7QJa6V+y1uAfTJ56RI4kUSD30d4pCKViaA u5W5efPo+o5uI3Dkgkuovaxet2I4Nv2SZnvsdV1etAWmRwW/0NCntDejkYeoPlTiLNoC cU5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zKcCJcC7Q8PJoAnihwGAVpWoMYH3cBF0KesdV2Y/nys=; b=DTk9mxj1fqryWOwXN0E14Qz1PIzbJVwv0RpjxDbVL4BYHNNti+9f8DklG19LBwf96t LgobyVb8UmEenFWSnd4ka3R2Dz2DtgXH0wM4hovLNroiwUZBLnTKUO5++1qz4ws0R/g3 aNu/DjDQIB3pA5TbR6Hn45S5v1f0KgRbPLLKvowyGeJepbeQ+vKvffW5/IGA59ikEhOR Ws43AwbKcjoIfTSjfFZzVqQTcuUMnb0lyG4d1bt/53jvwfTgHy0nHz1mjFiw8G8smPN/ Y3ib8vobwJye6dsZSTp580Z9/utrAkQgIYw0/BIAUrRdNWxaf6mVD5z8/o+z7bUwRQkB JSJQ== X-Gm-Message-State: AOAM532djv2nmlAhwK141KfQxz6lEkVcuhjF+yxWWLjJNSVxRz6eLwnp qsRrSnHYEgZFC3OAowhO8oY= X-Google-Smtp-Source: ABdhPJxtGmXlNc6yvDyDRwEnvG2TlYq3vDDk0QPmRiikQO1uJuM5hDhP7g7t9l1Vpp7ZexHL4J5WnQ== X-Received: by 2002:a17:907:426c:: with SMTP id nx20mr28068480ejb.548.1593710757680; Thu, 02 Jul 2020 10:25:57 -0700 (PDT) Received: from localhost.localdomain ([2a04:2413:8140:6d80:2142:c138:da0:5086]) by smtp.gmail.com with ESMTPSA id p4sm7427033eji.123.2020.07.02.10.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 10:25:57 -0700 (PDT) From: Adrian Pop To: Maxime Coquelin , Alexandre Torgue , Rob Herring , Lee Jones Subject: [PATCH v2 2/2] ARM: dts: stm32: Enable MIPI DSI display support. Date: Thu, 2 Jul 2020 20:27:14 +0300 Message-Id: <20200702172714.158786-2-pop.adrian61@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200702172714.158786-1-pop.adrian61@gmail.com> References: <20200702172714.158786-1-pop.adrian61@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_132559_085131_728AD47F X-CRM114-Status: GOOD ( 12.00 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:642 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [pop.adrian61[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [pop.adrian61[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adrian Pop , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org STM32f769-disco features a 4" MIPI DSI display: add support for it. On Cortex-M7 DMA can't use cached memory. For this reason I use a dedicated memory pool for DMA with no-cache attribute which is located at the end of RAM. Signed-off-by: Adrian Pop --- arch/arm/boot/dts/stm32f746.dtsi | 34 +++++++++++++++++++ arch/arm/boot/dts/stm32f769-disco.dts | 49 +++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index 93c063796780..577a812ca01c 100644 --- a/arch/arm/boot/dts/stm32f746.dtsi +++ b/arch/arm/boot/dts/stm32f746.dtsi @@ -48,6 +48,19 @@ / { #address-cells = <1>; #size-cells = <1>; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,dma { + compatible = "shared-dma-pool"; + linux,dma-default; + no-map; + reg = <0xc0f00000 0x100000>; + }; + }; + clocks { clk_hse: clk-hse { #clock-cells = <0>; @@ -75,6 +88,27 @@ clk_i2s_ckin: clk-i2s-ckin { }; soc { + 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"; + }; + + dsi: dsi@40016c00 { + compatible = "st,stm32-dsi"; + reg = <0x40016c00 0x800>; + interrupts = <98>; + clocks = <&rcc 1 CLK_F769_DSI>, <&clk_hse>; + clock-names = "pclk", "ref"; + resets = <&rcc STM32F7_APB2_RESET(DSI)>; + reset-names = "apb"; + status = "disabled"; + }; + timer2: timer@40000000 { compatible = "st,stm32-timer"; reg = <0x40000000 0x400>; diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts index 1626e00bb2cb..a9e81b49809c 100644 --- a/arch/arm/boot/dts/stm32f769-disco.dts +++ b/arch/arm/boot/dts/stm32f769-disco.dts @@ -153,3 +153,52 @@ &usbotg_hs { pinctrl-names = "default"; status = "okay"; }; + +&dsi { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <<dc_out_dsi>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { + remote-endpoint = <&dsi_in_panel>; + }; + }; + + }; + + panel: panel { + compatible = "orisetech,otm8009a"; + reg = <0>; + reset-gpios = <&gpioj 15 GPIO_ACTIVE_LOW>; + status = "okay"; + + port { + dsi_in_panel: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; +}; + +<dc { + status = "okay"; + + port { + ltdc_out_dsi: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; +};