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: 108924 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp968392qge; Fri, 28 Jul 2017 16:20:29 -0700 (PDT) X-Received: by 10.98.224.73 with SMTP id f70mr8632724pfh.12.1501284029371; Fri, 28 Jul 2017 16:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501284029; cv=none; d=google.com; s=arc-20160816; b=Pltqstzdq9VqMeOqLnv5dVyKe9DGT3zHY1w9jc7f+InkD2El/VBaKNWNUfRfNsmyKX WNA82Qbm4UeNRIaYjY/qGAzpwpRxJ+qOc4YfuEi2A6fi8IsnBMBD/+0obvoKWd7VAPPn bf995bTn5j8+phVx25qOKXXCf9iudFXtHtUv+qDiMkwYw98YO+fIOom2nj4VRk8QYYuZ f5zOdNVKOcz4M7zM1bP/S5c0pyGMQ/o1iL/yeGF4UAP2ZXTroDhzPuBFlVGoSmMi1/ei Wh32g/tviWSNY0Qb56fLwczS/cJQfJyWMRbPkdl9xWept15psgBRCcbSEK7Bz4yeyQ6B xIQg== 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=omqKmCS41GH3iv4sQIwt/061F7EeZ2vQ6y7TxjzCT5E=; b=lDl57FK9iEsne5LQ+d8LXbla6LvLjDZR9JjvwJtDgH0+ZIeDLSooxYVwhUnpC5i8PZ rHlDQ+YuhDl2af0A0Wea6+L4YvGUd6SCMb9krHUcqzv6RUgEQlf/OAR02E/GYrq/rT84 BegAku243JpGaqE+jjzjDZ5s+2FAAMasxJk5OOU0GkK8aptDKBbkh/lfT5KuJszbw0dg 00qbznp3hMkrQUPJO9Zg3k+fUslyywNc7ytq2vMmaAwHLaPMZMXM2mtkgkMFvtTBAejy xc1j0Kfl28rDfKC+G+1DwW3Zue7qL7CgMpF/2DX3yX1AMx7VweCBZujBSVDoiwhXNBJp 0xQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.b=jJf00LYE; 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 v188si7361605pfv.506.2017.07.28.16.20.29; Fri, 28 Jul 2017 16:20:29 -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=jJf00LYE; 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 S1753284AbdG1XU0 (ORCPT + 26 others); Fri, 28 Jul 2017 19:20:26 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:45677 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753013AbdG1XUZ (ORCPT ); Fri, 28 Jul 2017 19:20:25 -0400 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 CC: , , , Suman Anna , Sam Nelson , "Andrew F. Davis" 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 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 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(+) -- 2.13.1 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"; +};