From patchwork Thu Aug 10 23:52:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 109850 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp180968qge; Thu, 10 Aug 2017 16:53:23 -0700 (PDT) X-Received: by 10.84.171.132 with SMTP id l4mr15396853plb.183.1502409203137; Thu, 10 Aug 2017 16:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502409203; cv=none; d=google.com; s=arc-20160816; b=tmgdi/Fw1K/YZhhD557/Vwg709m3kfChZim/bw2KghnMOUceNTBawdZxqAOMzaGA6j 7FJ6tUSjVRWfEBThfma3zzODFl2Iuy2NNJ6f76se74wlxRzINOrnofRH0ATG7adhmySc uUXaNmIenmVUk2I6I7RHpmOjuw2O8BVtN+FN7a1CHQBWxZgYR76v7laNn376qkO5KkJj 6RVlnw1wT3QctheY73MC4Hjz97hMvWnFi04/p9IeVi9d5GSou2yemvWZsvIIMorHGq8E 99MnOvjuht4CCAc3FNQkl+bTOGysWeoYBUE0pqadAzF7ZAySbiMsALZek/CfdOL3gyB9 ZxOw== 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=WJ6MXYs1vE/vJCoNqT3dzwuqM0LI3kpHmo8OCm08wXY=; b=vnwYe6xUGtDhzKKA0g7TYCg7Fxa3hWX09Yw00pp6LreyILMX8ZQJaUfOuUnqvxgdQU nPX8w3ytHml+aMKxMJmPAqGs/2SbzJHV3Ow/JzEVt/tN+UF9ppIgnPOlfQPbIpUjykhB YH2o9UmJLeu1wov6XZbvf8puvtzsSTsS72uNbQjxnZ41poWgFKFRMnOv07bKYEL2O+HR n0SyucGJrr0CicmbUri5/LqcycFa4SgagDyZHfUftrKZDDHmohizvcNAlbsfF7CnsVR2 x0cJ1xcsYWJa0rnbX3Z4RsZ+3MrE82X1U7TqavMijJS24rfVPS74aJDrwNIQLgA+yEtH K0Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=o68hgHC/; 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 o18si4677175pgn.304.2017.08.10.16.53.22; Thu, 10 Aug 2017 16:53:23 -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.s=ti-com-17Q1 header.b=o68hgHC/; 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 S1752111AbdHJXxU (ORCPT + 25 others); Thu, 10 Aug 2017 19:53:20 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:17002 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbdHJXxQ (ORCPT ); Thu, 10 Aug 2017 19:53:16 -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 v7ANqoBn016673; Thu, 10 Aug 2017 18:52:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1502409170; bh=LbdqDlq2s8IN8txI7S60FAZSp3cNlfwtMf0pAYdi868=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=o68hgHC/NLVv44YVJbgK+ZXSNyNIXk7UEZCH7720seBz5cJ83Q+79RyvtF2Ugrf5M p5y+SVfqMb99UMAPXAGoCPMkh9w/QBPxilgTSmjjyAuhF9H11h9bsyRYWpMPURDLS1 ybxYYXMUAZ0W0PUinCMXm8kjjU4InDFWOnpE0EPE= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7ANqoeh029097; Thu, 10 Aug 2017 18:52:50 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 10 Aug 2017 18:52:50 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Thu, 10 Aug 2017 18:52:50 -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 v7ANqoKj030219; Thu, 10 Aug 2017 18:52:50 -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 v7ANqo327914; Thu, 10 Aug 2017 18:52:50 -0500 (CDT) From: Suman Anna To: Santosh Shilimkar CC: , , , Suman Anna , Sam Nelson , "Andrew F. Davis" Subject: [PATCH 3/3] ARM: dts: keystone-k2g-ice: Add and enable DSP CMA memory pool Date: Thu, 10 Aug 2017 18:52:45 -0500 Message-ID: <20170810235245.30316-4-s-anna@ti.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170810235245.30316-1-s-anna@ti.com> References: <20170810235245.30316-1-s-anna@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A CMA memory pool reserved memory node is added, and is attached to the DSP node through the 'memory-region' property on the K2G ICE board. This area will be used for allocating virtio rings and buffers. This node allows the DSP Memory Protection and Address Extension (MPAX) module to be configured properly for the DSP processor, and matches the values used on the other Keystone 2 boards for software compatibility. The reserved memory node and the user DSP node are also marked okay to enable the DSP on the K2G ICE board. Signed-off-by: Suman Anna --- arch/arm/boot/dts/keystone-k2g-ice.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.13.1 diff --git a/arch/arm/boot/dts/keystone-k2g-ice.dts b/arch/arm/boot/dts/keystone-k2g-ice.dts index d820d37b5148..78692745e0af 100644 --- a/arch/arm/boot/dts/keystone-k2g-ice.dts +++ b/arch/arm/boot/dts/keystone-k2g-ice.dts @@ -17,6 +17,19 @@ device_type = "memory"; reg = <0x00000008 0x00000000 0x00000000 0x20000000>; }; + + 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"; + }; + }; }; &k2g_pinctrl { @@ -33,3 +46,8 @@ pinctrl-0 = <&uart0_pins>; status = "okay"; }; + +&dsp0 { + memory-region = <&dsp_common_memory>; + status = "okay"; +};