From patchwork Wed Feb 28 13:10:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre TORGUE X-Patchwork-Id: 129986 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1008046lja; Wed, 28 Feb 2018 05:11:52 -0800 (PST) X-Google-Smtp-Source: AH8x224iEk856DcDQsgY0Qc/8Vw0SbMjKkrKAR2FZo0OwzTVDlLQ+OMtvh9e7ZLD33YnCmBLtoGl X-Received: by 10.98.83.6 with SMTP id h6mr17828377pfb.174.1519823512591; Wed, 28 Feb 2018 05:11:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519823512; cv=none; d=google.com; s=arc-20160816; b=CNypGqm0b/HAneYMR7xHdIFcmBYhKXDo7g+DZUOAjbsUUB+jPHhhPYEy2d4kLP4BIv 4orsrHaCteWensaCn0EUJzkGQFe92h5wdG4N1Mwe18CamuzP7PiRGupD3I+9NPFBa/s7 HMqxDycOzvPn8KDkQuMEvTeFEiYoW9c5AhyX9geI0i3clYv1hJJ78lA7I8Y4S0KQ83Ar kv80OM1UrfttxHqTtX6Y4R8TfCZqk/R5x9iIf4ot0I8Vivxq4rb+TP7C7jfujO3H6AB3 UMyRaFk+2BMNnso0qfpFDFuL0Tl0pRLib2QZlEKwooWfM0GRTN5nb4lDkQAz/ZQw+x3d KLPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=sJLicWGfhHbnrUplkTPyVXsEiw0XAYT6vEPhh2B+kLM=; b=gQ99+Eqe9Ykg9mutwISzAT8p0nbsGP0NAmCcYQx2Nq9/xO8bmirQHtkCEcqYdzPjty GGkzyyTDdp2vV8TcVqd6TZqKaCiTD7IkzmikWdqZ/kIQ54xpKfq8LRDuFvWJz8xJcZhW 8YOnvlVYxz87NHdyEpHWZOOrT5PQH15oG+AxZC8XXbi5lM9wsLV1rkwzrGuaHa9ot0Pa EvNIHyYUNNmywPd5pbo8X3LQJKSC1W1Ot/z3LG9dPkVu+FKDn89wbOaquw+kMXMULMvf vo17TkNRmgkprzOJd10cbD/twNIgAjby0P2fyA1PuQEotBdcj/4vWpjkBNGowHHQE7Gf QPZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61-v6si1264584plb.733.2018.02.28.05.11.51; Wed, 28 Feb 2018 05:11:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752556AbeB1NLu (ORCPT + 6 others); Wed, 28 Feb 2018 08:11:50 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:35738 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752469AbeB1NLu (ORCPT ); Wed, 28 Feb 2018 08:11:50 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w1SD9Aa0022358; Wed, 28 Feb 2018 14:11:05 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2gbwb16w28-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 28 Feb 2018 14:11:05 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4D01A34; Wed, 28 Feb 2018 13:11:05 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 28D0B2B31; Wed, 28 Feb 2018 13:11:05 +0000 (GMT) Received: from localhost (10.75.127.46) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 28 Feb 2018 14:11:04 +0100 From: Alexandre Torgue To: Maxime Coquelin , , , , , , CC: , , , Alexandre Torgue Subject: [PATCH v2 1/4] ARM: dts: stm32: add DMA memory pool on MCU which embed a cortex-M7 Date: Wed, 28 Feb 2018 14:10:55 +0100 Message-ID: <1519823458-27734-2-git-send-email-alexandre.torgue@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519823458-27734-1-git-send-email-alexandre.torgue@st.com> References: <1519823458-27734-1-git-send-email-alexandre.torgue@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-02-28_07:, , signatures=0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On cortex-M7 MCU, DMA have to use a non cache-able memory area. For this reason a dedicated memory pool is created for DMA. This patch creates a DMA memory pool of 1MB of each STM32 MCU which embeds a cortex-M7 except stm32f746-disco. Indeed, as stm32f746-disco has only a 8MB SDRAM and it's tricky to reduce memory used by Kernel. Reviewed-by: Vladimir Murzin Signed-off-by: Alexandre Torgue -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/stm32746g-eval.dts index e3f5a83..92651c3 100644 --- a/arch/arm/boot/dts/stm32746g-eval.dts +++ b/arch/arm/boot/dts/stm32746g-eval.dts @@ -58,6 +58,19 @@ reg = <0xc0000000 0x2000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,dma { + compatible = "shared-dma-pool"; + linux,dma-default; + no-map; + reg = <0xc1f00000 0x100000>; + }; + }; + aliases { serial0 = &usart1; }; diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts index d712260..c526853 100644 --- a/arch/arm/boot/dts/stm32f769-disco.dts +++ b/arch/arm/boot/dts/stm32f769-disco.dts @@ -59,6 +59,19 @@ reg = <0xC0000000 0x1000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,dma { + compatible = "shared-dma-pool"; + linux,dma-default; + no-map; + reg = <0xc0f00000 0x100000>; + }; + }; + aliases { serial0 = &usart1; }; diff --git a/arch/arm/boot/dts/stm32h743i-disco.dts b/arch/arm/boot/dts/stm32h743i-disco.dts index 45e088c..3689e70 100644 --- a/arch/arm/boot/dts/stm32h743i-disco.dts +++ b/arch/arm/boot/dts/stm32h743i-disco.dts @@ -57,6 +57,19 @@ reg = <0xd0000000 0x2000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,dma { + compatible = "shared-dma-pool"; + linux,dma-default; + no-map; + reg = <0xc1f00000 0x100000>; + }; + }; + aliases { serial0 = &usart2; }; diff --git a/arch/arm/boot/dts/stm32h743i-eval.dts b/arch/arm/boot/dts/stm32h743i-eval.dts index c7187e1..b9af696 100644 --- a/arch/arm/boot/dts/stm32h743i-eval.dts +++ b/arch/arm/boot/dts/stm32h743i-eval.dts @@ -57,6 +57,19 @@ reg = <0xd0000000 0x2000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,dma { + compatible = "shared-dma-pool"; + linux,dma-default; + no-map; + reg = <0xc1f00000 0x100000>; + }; + }; + aliases { serial0 = &usart1; };