From patchwork Fri Jul 28 23:19:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 9869655 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 47F2D60382 for ; Fri, 28 Jul 2017 23:21:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 206F228648 for ; Fri, 28 Jul 2017 23:21:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1546428879; Fri, 28 Jul 2017 23:21:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9AFF028648 for ; Fri, 28 Jul 2017 23:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=w0hlL9rr7x2YMGEPtdEHdZpqvNi8j/HLiGNOgq6mjAg=; b=mgjMDfHHvuVagQ Pvnhp9mXsr9Wp7HyZMue5Y3gPWpdEv7AeR/0rb30fbdgEj5w6vnY0K6G9k7Z00YgfNQf+Q4Rq+pZk jfZmRJOOi8SeXciHRoxKJ5SEVQFqtB3dEps1bBiV8jp99LasUAEwLhroDsbfx/JNIPdhHKvsZbZYg l4nlvppnf7hc7X9piPXdvb/HmQXcAgYZCJdYArpTtZJmS+xNK6iBlvjPMuNW7ZA+qD3F3F8YJXQXa bJDWEJL/9+MfAW4J6Uhs/G7gAYZHyBHrZjbo4TYKhimmFmi1yECeTKVkXqPTS4FdgxH95shC1XaMl MJ7P3hRt6kOQ6OQ+3DMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dbEZm-0008Pn-La; Fri, 28 Jul 2017 23:21:46 +0000 Received: from fllnx209.ext.ti.com ([198.47.19.16]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dbEYI-0005qX-7g for linux-arm-kernel@lists.infradead.org; Fri, 28 Jul 2017 23:20:20 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6SNJR5P028737; Fri, 28 Jul 2017 18:19:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501283967; bh=XAtkIdMTqx90Sa40ty1Qyl4dS87oAc+Bl0g2QKbnL9k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jJf00LYEcSDOqEun4ACyYWTeZQe7UN0s0VYjPdPqX9VYvLqzws3QhChz9OysXs/zb WCtwnP+1bhJHIxQjfquxg34wvfrXKUiULULYxYJdbAc05l0lRh8hN/T1crND6Z572p dwUw57mdYOZu90lW4weA9uEEi0hq4lekYBORhZuY= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJMAV020129; Fri, 28 Jul 2017 18:19:22 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Fri, 28 Jul 2017 18:19:21 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJLMV015009; Fri, 28 Jul 2017 18:19:21 -0500 Received: from localhost (irmo.dhcp.ti.com [128.247.58.153]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id v6SNJL311365; Fri, 28 Jul 2017 18:19:21 -0500 (CDT) From: Suman Anna To: Santosh Shilimkar Subject: [PATCH 5/6] ARM: dts: keystone-k2l-evm: Add and enable common DSP CMA memory pool Date: Fri, 28 Jul 2017 18:19:17 -0500 Message-ID: <20170728231918.16778-6-s-anna@ti.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170728231918.16778-1-s-anna@ti.com> References: <20170728231918.16778-1-s-anna@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170728_162014_495104_7ED5264A X-CRM114-Status: UNSURE ( 6.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "Andrew F. Davis" , linux-arm-kernel@lists.infradead.org, Sam Nelson Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sam Nelson A common CMA memory pool reserved memory node is added, and is attached to all the DSP nodes through the 'memory-region' property on the 66AK2L EVM board. This area will be used for allocating virtio rings and buffers. The common node allows the DSP Memory Protection and Address Extension (MPAX) module to be configured uniformly across all the DSP processors. The reserved memory node and all the user DSP nodes are also marked okay to enable the DSPs on the 66AK2L EVM board. Signed-off-by: Sam Nelson Signed-off-by: Suman Anna --- arch/arm/boot/dts/keystone-k2l-evm.dts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2l-evm.dts b/arch/arm/boot/dts/keystone-k2l-evm.dts index 056b42f99d7a..528667618db4 100644 --- a/arch/arm/boot/dts/keystone-k2l-evm.dts +++ b/arch/arm/boot/dts/keystone-k2l-evm.dts @@ -16,6 +16,19 @@ compatible = "ti,k2l-evm", "ti,k2l", "ti,keystone"; model = "Texas Instruments Keystone 2 Lamarr EVM"; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + dsp_common_memory: dsp-common-memory@81f800000 { + compatible = "shared-dma-pool"; + reg = <0x00000008 0x1f800000 0x00000000 0x800000>; + reusable; + status = "okay"; + }; + }; + soc { clocks { refclksys: refclksys { @@ -133,3 +146,23 @@ reg = <1>; }; }; + +&dsp0 { + memory-region = <&dsp_common_memory>; + status = "okay"; +}; + +&dsp1 { + memory-region = <&dsp_common_memory>; + status = "okay"; +}; + +&dsp2 { + memory-region = <&dsp_common_memory>; + status = "okay"; +}; + +&dsp3 { + memory-region = <&dsp_common_memory>; + status = "okay"; +};