From patchwork Fri Jul 28 23:19:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 108926 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp968808qge; Fri, 28 Jul 2017 16:21:01 -0700 (PDT) X-Received: by 10.84.214.23 with SMTP id h23mr9534693pli.321.1501284061504; Fri, 28 Jul 2017 16:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501284061; cv=none; d=google.com; s=arc-20160816; b=YTUC0ZuO+9qY8hu48dgz7vW1TOuiylHuRFfdTGWoOy28ZYaRObMmu5Td4TxmQYNNVi dz1mMJWjfchjDNPs30G/YS/PRX64yUZth5bvyGEB0KM2Ckxp/SNsBGXnIG63xNwzVyYc S4P500l+o6ahd3krk8pkkJOV2T4lQFXGmHl53NrXgPl4ngqX/VfVqFlbVDq2bMjSDWR2 gATfsQQkW/xwstpZFhp5tKV7VHvoSqkzuqAfTvSwRDt0JTbFPPEzC3NPL+rjsON3t6kc ssV61AnOisQ/ECdBc1BYGngHjGRY/g2mSWppaQJsx7ZVcU8IcYY9J5cpGQAz5111XZSq +a/A== 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:dkim-signature :arc-authentication-results; bh=+DuGHgwQMV/wfUJXyZ4y/vkMoruowmkk/N4rrCU8uc0=; b=GrK4PsJHOgBX34Zc2ToBAiIhS+em9dIEiUbw94WNZRWq2YC8x6RCHYipr2Q36BXLQv UhXAOq5ykaNitegCKOOvugd0Z0Ci/ofM4lWMK2/JV5vK3b+7aBvg07z8iPzPD5bHa5iQ Tye6U3774gZ3Sn5Jr/Pq4LRGxe+/2AxBnyYDbqoKu2rGK7MjrxsxrWjSp8hRer5WxChN lsKljyGFxqwEehf1aXVFf6I8SOa+VRiPUcnCB3TnfOwRUGqUQ7L8HNgZt6pMT/dNt762 AERSpXaJZFtV+tS52k6o0JiFzl43nuayCSUVGPy/rtux1O7GBTG6L6FpWt2751WykbfZ veVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.b=QBo9C1FS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1314793pli.434.2017.07.28.16.21.01; Fri, 28 Jul 2017 16:21:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.b=QBo9C1FS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753192AbdG1XTu (ORCPT + 26 others); Fri, 28 Jul 2017 19:19:50 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:45624 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753112AbdG1XTr (ORCPT ); Fri, 28 Jul 2017 19:19:47 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6SNJLAU023890; Fri, 28 Jul 2017 18:19:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501283961; bh=xd2f5/1K4loioeyaDN6M2+/tgTJ+s2AI1yHiOQ55Ei4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QBo9C1FSTdgmSDPmSEpexThKObWPkKbcLiB1Sa1kfI+jrPASgAGVGfTJSFNRI0/57 rNV6yiP7BXKNECKz5kRIsNADoql06K7Re3dqYvvq3Ypm69nKBL5lK+JFCu/sBP06Tw TaCmGxkKK+m/qhb7Y1930Uy3jwaPFE7d93ggc0Uk= Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJLLV031705; Fri, 28 Jul 2017 18:19:21 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE70.ent.ti.com (157.170.170.113) 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 dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJLGr030393; 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 v6SNJL311361; Fri, 28 Jul 2017 18:19:21 -0500 (CDT) From: Suman Anna To: Santosh Shilimkar CC: , , , Suman Anna , Sam Nelson , "Andrew F. Davis" Subject: [PATCH 4/6] ARM: dts: keystone-k2hk-evm: Add and enable common DSP CMA memory pool Date: Fri, 28 Jul 2017 18:19:16 -0500 Message-ID: <20170728231918.16778-5-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 66AK2H 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 66AK2K EVM board. Signed-off-by: Sam Nelson Signed-off-by: Suman Anna --- arch/arm/boot/dts/keystone-k2hk-evm.dts | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) -- 2.13.1 diff --git a/arch/arm/boot/dts/keystone-k2hk-evm.dts b/arch/arm/boot/dts/keystone-k2hk-evm.dts index 2156ff92d08f..6dd13b98aaba 100644 --- a/arch/arm/boot/dts/keystone-k2hk-evm.dts +++ b/arch/arm/boot/dts/keystone-k2hk-evm.dts @@ -16,6 +16,19 @@ compatible = "ti,k2hk-evm", "ti,k2hk", "ti,keystone"; model = "Texas Instruments Keystone 2 Kepler/Hawking 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 { @@ -184,3 +197,43 @@ 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"; +}; + +&dsp4 { + memory-region = <&dsp_common_memory>; + status = "okay"; +}; + +&dsp5 { + memory-region = <&dsp_common_memory>; + status = "okay"; +}; + +&dsp6 { + memory-region = <&dsp_common_memory>; + status = "okay"; +}; + +&dsp7 { + memory-region = <&dsp_common_memory>; + status = "okay"; +};