From patchwork Fri Jul 28 23:19:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 108923 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp968288qge; Fri, 28 Jul 2017 16:20:21 -0700 (PDT) X-Received: by 10.99.107.193 with SMTP id g184mr8597137pgc.167.1501284021418; Fri, 28 Jul 2017 16:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501284021; cv=none; d=google.com; s=arc-20160816; b=tbw8zz4Jq+GxtbISEsiC3VkfEcdo+5Ve711olOYZ2XaivKj0r8gBL5o0FwA2yaRZ79 LIShTgvRUBYwaBV8lNADpMLRZJk7CmusWm2vIkVMc0I5ilyCkcSbHp0CDYjDdDrdGtFS gBSvLGE6tzDX1d0s/kquRvhGwnwzbrsnBUPS30ve8ptFGWpPoNpq34dmKqIK2n486bit p6H4w2TDge3o2yZYKTcPvzCxUKBtnhoxY8Ix4BpORmc8S1IT7S+3UwWXU56j/x2XNN9X s/1FX9ny4b4AoF4NE2SNIxmLRYqPvC01EHtJnnVAVu1nBjPUqChb2S+/Xylj042YEsRS Zglg== 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=9eraFgGEVc2W7u1Zo0SzX8HotWYxyQeclLANz+IAtNw=; b=0xxt/Yyay7ywrtQK/U8BMlu/4/KRSLtWPkCW/nm7sA5Ejh0XqqvwrVRVn1/POmEFeO BFV2sHjudgFmvYJXLl9J7WWhjH9w27R5kzNT9zf014hwY+s6EKI8Ew+SUTrqQLtnJFvx qiwgdB/AKyhRkKb4fmyQ2F5z671Bk44S3MpIAwMF5WXA1njOUoNty8KnCWXVAM7EX/9i WQlFvnSaXMX8k8yehgoYHW/V2/1Makk7bbx305AnEiqk69w+Qy7IrGSFAw5Xp/ouChIQ H7GWezF7oWlXrcrZoPwyX3c8+DRsK0yyt6GdTXehivuaE3InD0YxVMbB2FKQhxX0bLM4 YZXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.b=xqpzs7j8; 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 m11si10368806pgc.962.2017.07.28.16.20.20; Fri, 28 Jul 2017 16:20:21 -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=xqpzs7j8; 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 S1753214AbdG1XTw (ORCPT + 26 others); Fri, 28 Jul 2017 19:19:52 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:45625 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753133AbdG1XTs (ORCPT ); Fri, 28 Jul 2017 19:19:48 -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 v6SNJL3a023882; 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=MbrE5SW96RHI7IdNHj1qWqOuJeMAS42xuKK2YzZPZIo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xqpzs7j8jIzjQh02KNuyMWHB1YoXfpl43ygF+VJjXvroFsANa52way6MaNgWMTBNX v8A76QUvyx/ZBNYRqCzXoCz6gXR2u01R8pXp7nolWYFWgosPeArAiL9Bl+O42euWR1 MvjR8abUzXyNwmDom5hGBtvjC20+T98DTEx2s3S8= 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 v6SNJLUf031697; Fri, 28 Jul 2017 18:19:21 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) 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 dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6SNJKs7030388; Fri, 28 Jul 2017 18:19:20 -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 v6SNJK311349; Fri, 28 Jul 2017 18:19:20 -0500 (CDT) From: Suman Anna To: Santosh Shilimkar CC: , , , Suman Anna , Sam Nelson , "Andrew F. Davis" Subject: [PATCH 1/6] ARM: dts: keystone-k2hk: Add DSP nodes Date: Fri, 28 Jul 2017 18:19:13 -0500 Message-ID: <20170728231918.16778-2-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 The Keystone 2 66AK2H/66AK2K SoCs have upto 8 TMS320C66x DSP Core Subsystems (C66x CorePacs), each with a 1.0 GHz or 1.2 GHz C66x Fixed/Floating-Point DSP Core, and 32 KB of L1P & L1D SRAMs and a 1 MB L2 SRAM. Add the DT nodes for these DSP processor sub-systems. The processors do not have an MMU, and use various IPC Generation registers and shared memory for inter-processor communication. The aliases with a stem 'rproc' have also been added for all the DSPs, they provide a fixed remoteproc id to each DSP processor. Signed-off-by: Suman Anna Signed-off-by: Sam Nelson Signed-off-by: Andrew F. Davis --- arch/arm/boot/dts/keystone-k2hk.dtsi | 139 +++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) -- 2.13.1 diff --git a/arch/arm/boot/dts/keystone-k2hk.dtsi b/arch/arm/boot/dts/keystone-k2hk.dtsi index 69d449430511..31dc00e4e5fd 100644 --- a/arch/arm/boot/dts/keystone-k2hk.dtsi +++ b/arch/arm/boot/dts/keystone-k2hk.dtsi @@ -45,6 +45,17 @@ }; }; + aliases { + rproc0 = &dsp0; + rproc1 = &dsp1; + rproc2 = &dsp2; + rproc3 = &dsp3; + rproc4 = &dsp4; + rproc5 = &dsp5; + rproc6 = &dsp6; + rproc7 = &dsp7; + }; + soc { /include/ "keystone-k2hk-clocks.dtsi" @@ -134,6 +145,134 @@ gpio,syscon-dev = <&devctrl 0x25c>; }; + dsp0: dsp@10800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x10800000 0x00100000>, + <0x10e00000 0x00008000>, + <0x10f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem0>; + ti,syscon-dev = <&devctrl 0x40>; + resets = <&pscrst 0>; + interrupt-parent = <&kirq0>; + interrupts = <0 8>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio0 27 0>; + status = "disabled"; + }; + + dsp1: dsp@11800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x11800000 0x00100000>, + <0x11e00000 0x00008000>, + <0x11f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem1>; + ti,syscon-dev = <&devctrl 0x44>; + resets = <&pscrst 1>; + interrupt-parent = <&kirq0>; + interrupts = <1 9>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio1 27 0>; + status = "disabled"; + }; + + dsp2: dsp@12800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x12800000 0x00100000>, + <0x12e00000 0x00008000>, + <0x12f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem2>; + ti,syscon-dev = <&devctrl 0x48>; + resets = <&pscrst 2>; + interrupt-parent = <&kirq0>; + interrupts = <2 10>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio2 27 0>; + status = "disabled"; + }; + + dsp3: dsp@13800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x13800000 0x00100000>, + <0x13e00000 0x00008000>, + <0x13f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem3>; + ti,syscon-dev = <&devctrl 0x4c>; + resets = <&pscrst 3>; + interrupt-parent = <&kirq0>; + interrupts = <3 11>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio3 27 0>; + status = "disabled"; + }; + + dsp4: dsp@14800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x14800000 0x00100000>, + <0x14e00000 0x00008000>, + <0x14f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem4>; + ti,syscon-dev = <&devctrl 0x50>; + resets = <&pscrst 4>; + interrupt-parent = <&kirq0>; + interrupts = <4 12>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio4 27 0>; + status = "disabled"; + }; + + dsp5: dsp@15800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x15800000 0x00100000>, + <0x15e00000 0x00008000>, + <0x15f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem5>; + ti,syscon-dev = <&devctrl 0x54>; + resets = <&pscrst 5>; + interrupt-parent = <&kirq0>; + interrupts = <5 13>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio5 27 0>; + status = "disabled"; + }; + + dsp6: dsp@16800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x16800000 0x00100000>, + <0x16e00000 0x00008000>, + <0x16f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem6>; + ti,syscon-dev = <&devctrl 0x58>; + resets = <&pscrst 6>; + interrupt-parent = <&kirq0>; + interrupts = <6 14>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio6 27 0>; + status = "disabled"; + }; + + dsp7: dsp@17800000 { + compatible = "ti,k2hk-dsp"; + reg = <0x17800000 0x00100000>, + <0x17e00000 0x00008000>, + <0x17f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem7>; + ti,syscon-dev = <&devctrl 0x5c>; + resets = <&pscrst 7>; + interrupt-parent = <&kirq0>; + interrupts = <7 15>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio7 27 0>; + status = "disabled"; + }; + mdio: mdio@02090300 { compatible = "ti,keystone_mdio", "ti,davinci_mdio"; #address-cells = <1>; From patchwork Fri Jul 28 23:19:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 108925 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp968573qge; Fri, 28 Jul 2017 16:20:43 -0700 (PDT) X-Received: by 10.99.163.26 with SMTP id s26mr8555055pge.232.1501284043318; Fri, 28 Jul 2017 16:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501284043; cv=none; d=google.com; s=arc-20160816; b=I0/MdIPYQhBAKTBYnSFViyCh7qwmoBLAoo37Fft+BXV2xoLcRC6Jgewd8j4i8clWVr pKyCazM+FOAiGRJuTjK4seQEPUibsiix7a7zOWbncuKETQzJf7kJLd/JJCPYi0KtjMO8 sqRqWCw2yye0L5dOPKlSvbx2TDdSpgvyn6I9iehSOnJtwUBz/GTBfcqXoYwWEbBW8f6B iDs3u3bMcH1I+DtD5WXFi10xRFwZRUVBs2tNffJV9s4R2++lAzhPzedFKrf0Plbqp9VP OGVvjVJ/fMhd9iamO2JVppkp8PuzQCPWhZyoAPrssZdZ1tEOvkBfgsFulKmyMKPSac6d eM6g== 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=0welhj//eVPgYJI4Wpin0E0ttVNo4JxIX+Pv8ptq94c=; b=kAC/TcNR6REFjiXLX9T27Ibu0fL3Q2aFtJGX2kp+jH4Aobv2M9CRJ7B4pPoQtvZTEu 5A/m3gogfrwwrAT5OIR9F7PZJHYhFj5Zdr+GaZ+2bV0XtjJsHsP/rCJRBZD3HQ06P7cs ou8xQ/7vFmlYyNRLR4e6ffo6lFvHgZWPQalW609vbehbF0U1YGlxUa+NpVlceib//FXQ QP/UdqWWDAlZdXbe1sUdLBqh11pjnK4oAT94EpLySP5w96UnKPylsWRtZs1ZZMKSjzOk hS3VuJzN8It6dp/9dhs2h1bTuQkyeYUCrJol5TjdCI0jGrlRAtQMnFyjv1YiiPfVzKZ1 dO6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.b=oLSKWzMM; 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 a5si5327252plh.712.2017.07.28.16.20.43; Fri, 28 Jul 2017 16:20:43 -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=oLSKWzMM; 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 S1753298AbdG1XUk (ORCPT + 26 others); Fri, 28 Jul 2017 19:20:40 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:45678 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753136AbdG1XUZ (ORCPT ); Fri, 28 Jul 2017 19:20:25 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6SNJQku028736; Fri, 28 Jul 2017 18:19:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501283966; bh=5hVd79m7yT0mhCTsWtj0XbKwCiYKOhcCYEu4S3PwBs8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=oLSKWzMM6AgRYsuNeabAqPpNQuwVZZ+1du7lWHMlrZtDHNZ0F2tB9UZZlAl8B3ppo i1dCRI7UoWo23Opso0e0vJhYdmxpU9fPuMyM4lQwZszOtaWZytr+8QwPWlzuDXRQ/E IkseMeOCjz7cnNL6bo62nl3YjCvl8ctzP0T6kouc= 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 v6SNJLUe031697; Fri, 28 Jul 2017 18:19:21 -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:20 -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 v6SNJKEY015006; Fri, 28 Jul 2017 18:19:20 -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 v6SNJK311353; Fri, 28 Jul 2017 18:19:20 -0500 (CDT) From: Suman Anna To: Santosh Shilimkar CC: , , , Suman Anna , Sam Nelson , "Andrew F. Davis" Subject: [PATCH 2/6] ARM: dts: keystone-k2l: Add DSP nodes Date: Fri, 28 Jul 2017 18:19:14 -0500 Message-ID: <20170728231918.16778-3-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 The Keystone 2 66AK2L SoCs have 4 TMS320C66x DSP Core Subsystems (C66x CorePacs), each with a 1.0 GHz or 1.2 GHz C66x Fixed / Floating-Point DSP Core, and 32 KB of L1P & L1D SRAMs and a 1 MB L2 SRAM. Add the DT nodes for these DSP processor sub-systems. The processors do not have an MMU, and use various IPC Generation registers and shared memory for inter-processor communication. The aliases with a stem 'rproc' have also been added for all the DSPs, they provide a fixed remoteproc id to each DSP processor. Signed-off-by: Suman Anna Signed-off-by: Sam Nelson Signed-off-by: Andrew F. Davis --- arch/arm/boot/dts/keystone-k2l.dtsi | 71 +++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) -- 2.13.1 diff --git a/arch/arm/boot/dts/keystone-k2l.dtsi b/arch/arm/boot/dts/keystone-k2l.dtsi index 148650406cf7..4431310bc922 100644 --- a/arch/arm/boot/dts/keystone-k2l.dtsi +++ b/arch/arm/boot/dts/keystone-k2l.dtsi @@ -33,6 +33,13 @@ }; }; + aliases { + rproc0 = &dsp0; + rproc1 = &dsp1; + rproc2 = &dsp2; + rproc3 = &dsp3; + }; + soc { /include/ "keystone-k2l-clocks.dtsi" @@ -268,6 +275,70 @@ gpio,syscon-dev = <&devctrl 0x24c>; }; + dsp0: dsp@10800000 { + compatible = "ti,k2l-dsp"; + reg = <0x10800000 0x00100000>, + <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"; + }; + + dsp1: dsp@11800000 { + compatible = "ti,k2l-dsp"; + reg = <0x11800000 0x00100000>, + <0x11e00000 0x00008000>, + <0x11f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem1>; + ti,syscon-dev = <&devctrl 0x848>; + resets = <&pscrst 1>; + interrupt-parent = <&kirq0>; + interrupts = <1 9>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio1 27 0>; + status = "disabled"; + }; + + dsp2: dsp@12800000 { + compatible = "ti,k2l-dsp"; + reg = <0x12800000 0x00100000>, + <0x12e00000 0x00008000>, + <0x12f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem2>; + ti,syscon-dev = <&devctrl 0x84c>; + resets = <&pscrst 2>; + interrupt-parent = <&kirq0>; + interrupts = <2 10>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio2 27 0>; + status = "disabled"; + }; + + dsp3: dsp@13800000 { + compatible = "ti,k2l-dsp"; + reg = <0x13800000 0x00100000>, + <0x13e00000 0x00008000>, + <0x13f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + clocks = <&clkgem3>; + ti,syscon-dev = <&devctrl 0x850>; + resets = <&pscrst 3>; + interrupt-parent = <&kirq0>; + interrupts = <3 11>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio3 27 0>; + status = "disabled"; + }; + mdio: mdio@26200f00 { compatible = "ti,keystone_mdio", "ti,davinci_mdio"; #address-cells = <1>; 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"; +}; 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"; +};