From patchwork Thu Aug 10 23:52:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 9894767 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 BA2BF600CB for ; Thu, 10 Aug 2017 23:53:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB790285A5 for ; Thu, 10 Aug 2017 23:53:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F46E28BB9; Thu, 10 Aug 2017 23:53:21 +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 1A8B8285A5 for ; Thu, 10 Aug 2017 23:53:21 +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=s9MPCdKBD64oIZeQwGPomg78KlCCLbEiyIiH6/OrXwk=; b=jqHyPsd0aCeklp G1WotelwS98/I4Mcxl2BHAOazmoHrdEgj2NzARAdAgZnxh3yzEuEOK/ItYw715KqvNYqGjXfWMXMF jHsv+P+1LOEiw058QkqWlb8RCOfAwwACdDvTvD5t0ngWL2vElt5XJf0T4MMyR0/tWDMc4nGmW/pCd QZWGRca4FYph1NeoNsgK0DqeXrWjkBLeXoEPEMCy7zSkP54rKj9ppjOhQtsgUiGHEtWRxDTWvy7sa ye4s7YI5AKcuKcsTDdW0lnu4sJsulcvNz7UTiT3PbDCjAFa4juxRpj539uZxNfjEBp3oBNIEjYJO4 /sDW70OU8jwvJ8oR5ViQ==; 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 1dfxGP-0007xW-8B; Thu, 10 Aug 2017 23:53:17 +0000 Received: from fllnx210.ext.ti.com ([198.47.19.17]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfxGL-0007vD-MP for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2017 23:53:15 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7ANqovl022716; 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=pqxoYc1JNW/D90cy6aH2arMUp4NGxF+v5VEZHOom74Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aOOd5F0+/8MMGBtw3Lz8+KyGnX/Lrlj8D2jyHDS67QrrUbs4/RLwlfow4j19D9NdJ NSxaoswuHLzRc0JBsrBwsko8fhMLuGaL5ZUAq7FDwp6Bhzz6PJEtccKQ3lz88Ce5ze F6TeeB2yfWIu8r9fPn/2/Zsrjrmscm8/++HyoTbE= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7ANqo78029091; Thu, 10 Aug 2017 18:52:50 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE105.ent.ti.com (10.64.6.26) 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 dflp33.itg.ti.com (10.64.6.16) by DFLE115.ent.ti.com (10.64.6.36) 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 dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7ANqoEX019526; 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 v7ANqo327910; Thu, 10 Aug 2017 18:52:50 -0500 (CDT) From: Suman Anna To: Santosh Shilimkar Subject: [PATCH 2/3] ARM: dts: keystone-k2g-evm: Add and enable DSP CMA memory pool Date: Thu, 10 Aug 2017 18:52:44 -0500 Message-ID: <20170810235245.30316-3-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170810_165313_869336_061B3410 X-CRM114-Status: UNSURE ( 7.61 ) 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: "Andrew F. Davis" A CMA memory pool reserved memory node is added, and is attached to the DSP node through the 'memory-region' property on the K2G EVM 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 66AK2G EVM board. Signed-off-by: Andrew F. Davis Signed-off-by: Suman Anna --- arch/arm/boot/dts/keystone-k2g-evm.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts index f47f95d8bf1c..f462f1043531 100644 --- a/arch/arm/boot/dts/keystone-k2g-evm.dts +++ b/arch/arm/boot/dts/keystone-k2g-evm.dts @@ -25,6 +25,19 @@ reg = <0x00000008 0x00000000 0x00000000 0x80000000>; }; + 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"; + }; + }; + vcc3v3_dcin_reg: fixedregulator-vcc3v3-dcin { compatible = "regulator-fixed"; regulator-name = "mmc0_fixed"; @@ -94,3 +107,8 @@ vmmc-supply = <&vcc3v3_dcin_reg>; /* VCC3V3_EMMC is connected to VCC3V3_DCIN */ status = "okay"; }; + +&dsp0 { + memory-region = <&dsp_common_memory>; + status = "okay"; +};