From patchwork Thu Aug 10 23:52:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 109851 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp181404qge; Thu, 10 Aug 2017 16:53:58 -0700 (PDT) X-Received: by 10.84.229.5 with SMTP id b5mr15849891plk.216.1502409238532; Thu, 10 Aug 2017 16:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502409238; cv=none; d=google.com; s=arc-20160816; b=MgEC7OSOq0BXZWbjDzNNHBOB2dSJZdMU5wAZujK8Tww1OWzxYF9PPrzZz+cNrH2Drt ZeK0TpjnIyZ6nP7ONb1ZNGWwybqDeeh1qVTqZJlkkdaUdh2qLpDB/qn3hpZ6J8akErzZ 5m1NBWYRcyk5GbFwCn6syi76MdfJGzfkgtnMIIKcqivKlTRjaSAI+fGB6OdymwGkpea8 ps+fcuGKkIzwC3jzgcTUx/zA5W3sdiiQqzwBkMzqcTLRw3TGv7DbWtvqD0pZ/MioeCcO mqx93XXtOi+oAU/WDo2UnzB1Cv8utJuyIrX0oAq89YOv4oqMYuMOhDUKB1eyI4wLHju8 Glcw== 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=lwP9kqRUt/P1yfc7LaFbRBMhaiZtN/jMdm4pBKmKEW8=; b=M4CMg8bpwzLH53g3MkNQM8xpn4rzQN4fxGEXh+KZL0RJF0FClwnHNq8zUwsqhbzd3d 7yYnmGeSxpdG7eiGLCeZfjolbIooaBljy/ZagYojLUkP2CsYI1gzDO1bUOXxspwy9rt0 SWy+6CArxlTCMa904mUzBR25DsAMKRqvy6k28MJfy0mVnu9+9VwGMELmjMhVSEi/gHjx E/Ep1GBR+m/cMVyIfxRzxcYbDvTNrZI3Wzqz0vVjrLUflA3I/ImipsES2F/HXIGTl2L1 XJoJ/2z2xUnn96v6pFvs7sLmbWPDaITOAT9R0WaDH/eKT6+RqY7krMk7zZGroPE4C5KA XTrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=sO1h1q0u; 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 b61si5107103plb.250.2017.08.10.16.53.58; Thu, 10 Aug 2017 16:53:58 -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.s=ti-com-17Q1 header.b=sO1h1q0u; 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 S1752318AbdHJXx5 (ORCPT + 6 others); Thu, 10 Aug 2017 19:53:57 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:9331 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752317AbdHJXxz (ORCPT ); Thu, 10 Aug 2017 19:53:55 -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 v7ANqtba004721; Thu, 10 Aug 2017 18:52:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1502409175; bh=IWowQiwJFuCOSAOctuKQAnGa94jx2UjYG+6y+G3Nv88=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sO1h1q0u9GPrZXtey3ZweKhRk62z06gPrnQ+/FDcUgeWGHm6ufnUOpkV0RLC6d+z9 Fw/Y1s0TdJkJfAeD1+qBkAutcdnWNdKFeufU15NqGh1eseqQEQ/9J3XGxvcz9RNuET vAmsdS43ulCFWQIKT/MpF7BQHq6sGVIAeh8ABDBo= 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 v7ANqoQH029088; Thu, 10 Aug 2017 18:52:50 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) 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 DFLE106.ent.ti.com (10.64.6.27) by DFLE112.ent.ti.com (10.64.6.33) 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 dlep33.itg.ti.com (157.170.170.75) by DFLE106.ent.ti.com (10.64.6.27) 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 dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7ANqooq029604; 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 v7ANqo327906; 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 1/3] ARM: dts: keystone-k2g: Add DSP node Date: Thu, 10 Aug 2017 18:52:43 -0500 Message-ID: <20170810235245.30316-2-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Keystone 2 66AK2G SoC has a single TMS320C66x DSP Core Subsystem (C66x CorePac), containing a C66x Fixed/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 DT node has a new property 'power-domains' and no 'clocks' properties, and uses slightly different property values for 'resets' compared to other Keystone 2 SoCs. The processor does not have an 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: Andrew F. Davis Signed-off-by: Suman Anna --- arch/arm/boot/dts/keystone-k2g.dtsi | 17 +++++++++++++++++ 1 file changed, 17 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-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index 35726b66fb91..826b286665e6 100644 --- a/arch/arm/boot/dts/keystone-k2g.dtsi +++ b/arch/arm/boot/dts/keystone-k2g.dtsi @@ -28,6 +28,7 @@ aliases { serial0 = &uart0; + rproc0 = &dsp0; }; cpus { @@ -147,6 +148,22 @@ gpio,syscon-dev = <&devctrl 0x240>; }; + dsp0: dsp@10800000 { + compatible = "ti,k2g-dsp"; + reg = <0x10800000 0x00100000>, + <0x10e00000 0x00008000>, + <0x10f00000 0x00008000>; + reg-names = "l2sram", "l1pram", "l1dram"; + power-domains = <&k2g_pds 0x0046>; + ti,syscon-dev = <&devctrl 0x844>; + resets = <&k2g_reset 0x0046 0x1>; + interrupt-parent = <&kirq0>; + interrupts = <0 8>; + interrupt-names = "vring", "exception"; + kick-gpios = <&dspgpio0 27 0>; + status = "disabled"; + }; + msgmgr: msgmgr@02a00000 { compatible = "ti,k2g-message-manager"; #mbox-cells = <2>; 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: 109849 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp180897qge; Thu, 10 Aug 2017 16:53:18 -0700 (PDT) X-Received: by 10.99.54.9 with SMTP id d9mr13650125pga.195.1502409198594; Thu, 10 Aug 2017 16:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502409198; cv=none; d=google.com; s=arc-20160816; b=Be0mgqSMbBDCaxe0IRh8FlZZI6/47ADropyXF9r4ROxOILCSLt+ayJmqMYctaaeEXQ rCE5ukPlKm0TsztLhXSVl3xRwvXGWF4IFMa0yFXtWSZue8zApIsaidkE1DNI1DKzqVSq HqenLNKMYrgvawqqfBET4WNE4H8ZdXd2oWfbgZucSycjtjNZHxX/asUTpNXGLBmcm10d lc/eHjQs/4Cc0Vt84YoDjyPqewh2/bGXcdPtAZRNxNErAW9zR8EaDyR9Z8/D2zlH84yi 3W5s1FppqTe2kPBDKLaik+0OWI3IAq1zTywsg3weppqpVMto8XtduS84zQyik9mGCxOg 7VYw== 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=Q26Re2WcGGPigMGK7/xi/5m8VAczxReumPy/cY67Ebg=; b=nUpVxMVfwYiMQs/DBiujCLPDktaqoKfOkVydOE06hlnJO0z4loW1kgO2lMvO3sIMuY GlmlgcXKRmLDpg6f7TMjYiN116g1jRJ+HkfCuCfywALMpI6xRWbuwwaOEkeU9gTEqFCf 4UdQK/+hKHXBZCC2An4L+4dz06oAdLvbzrIfFf16e8UjojSIbqBoIb9/8aQpLgGE7pEX QhmHcY/14uepQJNNjWsQCpaudVq9//hmMWxcc8NeaDfLg3g+rhwYbLpDjwgZO3QbsP4D AjE/kzSURQ2V2aK3ldTkUQLyxPoWMJY5cipZXDR+EicWNd8EWyNX7HopoRkwABGskg9R WXjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=aOOd5F0+; 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 x87si4782570pfk.359.2017.08.10.16.53.17; Thu, 10 Aug 2017 16:53:18 -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.s=ti-com-17Q1 header.b=aOOd5F0+; 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 S1751891AbdHJXxQ (ORCPT + 6 others); Thu, 10 Aug 2017 19:53:16 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:10224 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbdHJXxP (ORCPT ); Thu, 10 Aug 2017 19:53:15 -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 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 CC: , , , Suman Anna , Sam Nelson , "Andrew F. Davis" 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 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-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"; +};