From patchwork Fri Jul 28 23:19:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 108920 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp967825qge; Fri, 28 Jul 2017 16:19:48 -0700 (PDT) X-Received: by 10.98.220.218 with SMTP id c87mr8945410pfl.192.1501283988263; Fri, 28 Jul 2017 16:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501283988; cv=none; d=google.com; s=arc-20160816; b=pysNjr36H91iDxjEpKp99olUoNw7wdaI8/uHRDAI0p37Oqvp1GugYyEb54Fi4aQEtJ ipRz0rOWKJBznziIs6ZS216k+9GK9bR6PKAYolAGe1ekJEiHIBfihD9DMgr8wKPb9KDC zU+aQEyMSgx4gLM3zZoDE/WDxfJhM8gCJTqdXTvGAZvcPPqN1O9WnHwD84sTlN4lN51F URkDCgcqwg3CLOu6gVSegvZgr105a+27XY8v1x+b9b5uJbxmucHJFDk2NGIzjwGKkdLW teoAh+aeqPoExkAoeyiQNMM6oh36wMR4Oh1ENxLkSfsQKQxW9B9P5/p+CGn4Uny7F0W3 SoMA== 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=OwFPaDGhH2tQXwYXyqpJPa5rIT3YX/5o/4K2D9fcUDg=; b=SHygvXL3Gy7PiZI8wzeetggptSMctoq6CPoLB1CSHlfw8Yn7rkgcHvhZ+XI8zJ3W99 txBhTeZ9Jz4a0IoPZ9XEWEMYIwjMamT6IorZKimjo1GJ1KSNRILyle1HIm5d/qGxJSgf AVnkNALDg6qyhS1zHa/DCV9q92Xk/E3H47rAZClt/LtuHE5dIRJERBJsyNT9+SG0FfdY dIAOvxKzFEdJFDavqAE0HxW/1rBU4Yr+vuR+IEJjfyD3/wVakYDbyXl5/QOfwS6lH8CD E8IbebPzk/7OKZhNUQz72HV1V3lWjbtSWLgXrecGIAaHggkOBNXEbp6SOjcwvNJpFA/i 5Tlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.b=GImuWivY; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e7si2042556pgu.286.2017.07.28.16.19.47; Fri, 28 Jul 2017 16:19:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.b=GImuWivY; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753001AbdG1XTq (ORCPT + 7 others); Fri, 28 Jul 2017 19:19:46 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:45623 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849AbdG1XTq (ORCPT ); Fri, 28 Jul 2017 19:19:46 -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 v6SNJLB2023886; 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=IlId6r9SIroHryUhVVgBayDoE0UWcKJKDkc+Woge0Dk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GImuWivY7ndus0Z9PLMBsgWNkQPoDlGYTSX24xD5evEODURY2XyLyI6etJNG2IijD sYjR+GYZJec+IX6umwEu12p6rZrbH6pTSuFmENdXGxtsmQ1MJIC0Rp7JTJOWT418LW tnmENkfAYlJXDFeGNCe80YoXG3Q8PoYmheHUAWR8= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJL4f031702; Fri, 28 Jul 2017 18:19:21 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Fri, 28 Jul 2017 18:19:20 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJLc5022336; 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 v6SNJK311357; 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 3/6] ARM: dts: keystone-k2e: Add DSP node Date: Fri, 28 Jul 2017 18:19:15 -0500 Message-ID: <20170728231918.16778-4-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Keystone 2 66AK2E SoC has one TMS320C66x DSP Core Subsystem (C66x CorePac), with a 1.4 GHz C66x Fixed or Floating-Point DSP Core, and 32 KB of L1P & L1D SRAMs and a 1 MB L2 SRAM. Add the DT node for this DSP processor sub-system. The processor does not have a MMU, and uses various IPC Generation registers and shared memory for inter-processor communication. The alias with a stem 'rproc' has also been added for the DSP, it provides a fixed remoteproc id for the DSP processor. Signed-off-by: Suman Anna Signed-off-by: Sam Nelson Signed-off-by: Andrew F. Davis --- arch/arm/boot/dts/keystone-k2e.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.13.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/keystone-k2e.dtsi b/arch/arm/boot/dts/keystone-k2e.dtsi index 0dd4cdd6d40c..819ab8345916 100644 --- a/arch/arm/boot/dts/keystone-k2e.dtsi +++ b/arch/arm/boot/dts/keystone-k2e.dtsi @@ -45,6 +45,10 @@ }; }; + aliases { + rproc0 = &dsp0; + }; + soc { /include/ "keystone-k2e-clocks.dtsi" @@ -114,6 +118,22 @@ gpio,syscon-dev = <&devctrl 0x240>; }; + dsp0: dsp@10800000 { + compatible = "ti,k2e-dsp"; + reg = <0x10800000 0x00080000>, + <0x10e00000 0x00008000>, + <0x10f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem0>; + ti,syscon-dev = <&devctrl 0x844>; + resets = <&pscrst 0>; + interrupt-parent = <&kirq0>; + interrupts = <0 8>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio0 27 0>; + status = "disabled"; + }; + pcie1: pcie@21020000 { compatible = "ti,keystone-pcie","snps,dw-pcie"; clocks = <&clkpcie1>; From patchwork Fri Jul 28 23:19:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 108921 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp967914qge; Fri, 28 Jul 2017 16:19:54 -0700 (PDT) X-Received: by 10.84.129.47 with SMTP id 44mr9727262plb.414.1501283994296; Fri, 28 Jul 2017 16:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501283994; cv=none; d=google.com; s=arc-20160816; b=VvHrchX51sRFzjTDmI+xHqrKxcSs90J8tZdKf9HzgWzfu7LHP2Ia/V/MxlIHTJo2d8 hfvnOcopg2I06gRDmPQVq2wiGhmTi/6J9ONKumZTtTHr/JDzWGD/l+FvDSjwZQusns+a mUQqSdyitacbOHMnZFuh12SPYMIMJiUd4t+lbraZWDvlWBTQReyQlqnrhLXP8/s42QQt NmCpjo0fU+sb1suqH9OolG0kSaUTuvsS5XFaCF3JV4WgSUyVW6Vr4LRAtcvJLMrjBbjJ hlTsfxKNcU50dZBGcFXSYlMaQE6JtsIwohdNX9NdHa/SSA8/IpPN4hYSAIN8qq2hrNf8 Tb6g== 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=XqarzCalEm7cBrscq/ZYJJMIKyqc8JIV16SsXWANCUo=; b=Yt4xDwWe322jN5x60ZbQV874zTNKNQsjOHN4GBZwe5Ea2Ta8aoGMuHFLzCO1tqrKlR SJn2XHPt6nTEd33lQDmq/jW9mtwpSNzi0bi2x22U6Gl0wcyXuNE4pkabUBWh8f74fiG/ 0Kgx7G4Epm1I5bpi0Re+AZS2olhBqeydrA7ocPCafalM8wMBfYMp8A7NZ87k04NXwk8h 2Vz3+/xRxU/OYT7+MGZ+GTS5i3iOZlVw9PHkT5LmwF177EE4FkOL45PDXhdOf0ejFjwE 0y1MZYNfEvVg2g2FaI55M9CaQP49TuP3xwCkFbpAzQW6yeD/av4MdNQuLOQOfykZIq6F rW0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.b=WxG3i2T6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 q2si13695187plh.464.2017.07.28.16.19.54; Fri, 28 Jul 2017 16:19:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.b=WxG3i2T6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753112AbdG1XTu (ORCPT + 7 others); Fri, 28 Jul 2017 19:19:50 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:30059 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137AbdG1XTs (ORCPT ); Fri, 28 Jul 2017 19:19:48 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6SNJMOu010104; Fri, 28 Jul 2017 18:19:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501283962; bh=jzH9lp6pVQI2e10dOtoAfL+tFTSCPLAYWslyVba00h8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=WxG3i2T6c7143yCirQd+xcMYsJs3to7czG1TRTi8dxc05c1cJ/a609bOEgy1ML+zR 1kEzhLvDGfrZdcFJupk9BLYrHsck+dUwqXjwJugCGvAuCuhyvQpUPSAKIytHrOupO7 UG5zIdCAzp1mJrk2fFPC8SHekZxs5daa7tiRUGMw= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJMXI031711; Fri, 28 Jul 2017 18:19:22 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) 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 dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJLMH022339; 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 v6SNJL311369; 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 6/6] ARM: dts: keystone-k2e-evm: Add and enable DSP CMA memory pool Date: Fri, 28 Jul 2017 18:19:18 -0500 Message-ID: <20170728231918.16778-7-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Sam Nelson A CMA memory pool reserved memory node is added, and is attached to the DSP node through the 'memory-region' property on the K2E 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 66AK2E EVM board. Signed-off-by: Sam Nelson Signed-off-by: Suman Anna --- arch/arm/boot/dts/keystone-k2e-evm.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.13.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/keystone-k2e-evm.dts b/arch/arm/boot/dts/keystone-k2e-evm.dts index ae1ebe7ee021..f1f32c54e72f 100644 --- a/arch/arm/boot/dts/keystone-k2e-evm.dts +++ b/arch/arm/boot/dts/keystone-k2e-evm.dts @@ -16,6 +16,19 @@ compatible = "ti,k2e-evm", "ti,k2e", "ti,keystone"; model = "Texas Instruments Keystone 2 Edison 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 { @@ -160,3 +173,8 @@ reg = <1>; }; }; + +&dsp0 { + memory-region = <&dsp_common_memory>; + status = "okay"; +};