From patchwork Tue Sep 19 00:28:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 112953 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4292718qgf; Mon, 18 Sep 2017 17:29:27 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDbDmk0XDvmGlFUfsu0K6OrUEhGD6dbIjWdkr1Ykr86cPFXzuyzn6is0NX91pVqH6pxumOx X-Received: by 10.99.109.142 with SMTP id i136mr315294pgc.353.1505780967662; Mon, 18 Sep 2017 17:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505780967; cv=none; d=google.com; s=arc-20160816; b=s37tahY5xQPLDbbcTRIxdNuiEFPtNydRb3iE1vQQXbeXZUfQS/o7b3INfCeVzUDQQ+ gfgmuiIK/YUUZhKzKf2lAvZQmfL9fV5HjdDS6dDEuMrEGmuQaVF+C24YjrF5gQQqLGdN HSZVGAvtby29iRh3Cr1DBNHcUND0BPYlxKXcAgn31faNoNb6q/jzvacqirs90eDstr/m 4C1RNrHpkn2+kNRaXEiryYf6/LrXbH+l3R/ZITT9v1hBAq1I/xGTb4t+Z4giy2n2SVqU eAv2eDML92Bf2FPPmz1VA2WR99SEoOsYwflYAK3fgk0J2UFF+hM4ldf+8VuVyLqxtrbk 2JgA== 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=u3AEzkgKJk9cWVPBuK7/tMHyrrrFktGjtknpaJi9uqY=; b=G7Vqyu8Cu8VdRsKeq4Q7oTrF6F+romYGpIBnbnwhVu8n9REfWc6Uf4nyiM2dfevwSg gs5ZbVu92Uub6FSYiZyF0AMaWswTvjyNiuEB8kqIYdTuFUTnQKlaGHsxOHOwNf2Dw0Yo 34IQlwT5HE6icgYOX2DbJ3H+gPCP1dg7vqcg34XWSAvI2OYwsQEU3EanCmyQu7zXkAPa pUpFp6TjRE//Bi6n//ugLNOWHkK3wMse0a8nFoaxt/++Lmoz5DNQltIM1OGuJz8wwpEC lC3HdoojJloT9laGKdKW8aqo8EDBjGZbyrJT9KNH+rm3WRddRPDO2FnZPeBmCjHNtCuz dL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=D+zM19EP; 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 q90si432775pfk.278.2017.09.18.17.29.27; Mon, 18 Sep 2017 17:29:27 -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=D+zM19EP; 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 S1751465AbdISA30 (ORCPT + 26 others); Mon, 18 Sep 2017 20:29:26 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:29352 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbdISA3D (ORCPT ); Mon, 18 Sep 2017 20:29:03 -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 v8J0SZJk026526; Mon, 18 Sep 2017 19:28:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1505780915; bh=rzxb1MPRptJ5U027Q2ISkMSZtHsW3Jke7EpdUoBJoig=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=D+zM19EPtKaiI92sWI4AMhil8Le/TKneFIZSC5pbJ3nWobCBE0Ca4/gbLddUU+s8V RDIJrOnbNWGZPsz5bPwBrsdpQ3rAFPK2izyH9CZq8bx35LxT3BV8WruqjL5UYJ7mtp 6Mt2sVOKguirbVLksj+0LnjVHD/8zKVlWZh4Y+RY= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8J0SZER032617; Mon, 18 Sep 2017 19:28:35 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) 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; Mon, 18 Sep 2017 19:28:35 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Mon, 18 Sep 2017 19:28:35 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8J0SZFd003744; Mon, 18 Sep 2017 19:28:35 -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 v8J0SZ329422; Mon, 18 Sep 2017 19:28:35 -0500 (CDT) From: Suman Anna To: Sekhar Nori , Kevin Hilman CC: , , , Suman Anna Subject: [PATCH 1/3] ARM: dts: da850: Add DSP node Date: Mon, 18 Sep 2017 19:28:31 -0500 Message-ID: <20170919002833.5677-2-s-anna@ti.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170919002833.5677-1-s-anna@ti.com> References: <20170919002833.5677-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 The TI Davinci DA8xx family of SoCs have a single DSP subsystem that is comprised of TI's standard TMS320C674x megamodule and several blocks of internal memory (L1P, L1D and L2 RAMs). Add the DT node for this DSP processor sub-system. The processor does not have an MMU, and uses a chip-level signalling register and shared memory for inter-processor communication with the ARM core. The node has been added in disabled state, and can be enabled in the respective board dts file with an associated reserved memory block. Signed-off-by: Suman Anna --- arch/arm/boot/dts/da850.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.13.1 diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index af68ef7b0caa..c66cf7895363 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -23,6 +23,18 @@ reg = <0xfffee000 0x2000>; }; }; + dsp: dsp@11800000 { + compatible = "ti,da850-dsp"; + reg = <0x11800000 0x40000>, + <0x11e00000 0x8000>, + <0x11f00000 0x8000>, + <0x01c14044 0x4>, + <0x01c14174 0x8>; + reg-names = "l2sram", "l1pram", "l1dram", "host1cfg", "chipsig"; + interrupt-parent = <&intc>; + interrupts = <28>; + status = "disabled"; + }; soc@1c00000 { compatible = "simple-bus"; model = "da850"; From patchwork Tue Sep 19 00:28:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 112952 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4292494qgf; Mon, 18 Sep 2017 17:29:08 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBTDMQSf7APz/iGbBszUkWCm96RPGhDgyqL1sYQETrGeBY87dsHfj6ysFwd5D7drOiLMkin X-Received: by 10.99.53.3 with SMTP id c3mr342620pga.220.1505780948647; Mon, 18 Sep 2017 17:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505780948; cv=none; d=google.com; s=arc-20160816; b=mmgoL3arHOgH4S684qFoPl1yKLU2j8zp3wBxKOolcmzwBtymdBwsgtvejwDnBqBAmV dbO00GTyaQVNHBOMorUuA4517SHXVQsBcQsAMKZX/OTlIi1Sdd7vHCKJqTdE4ycEiRYk NgttzLbxGp4Vda2OY/4QMSYFk0PSxi3KE486mGpJtL2dwyunzQDw32o/TUXMs2Ls6HgA S809id+iqbuJRNoffCmpoK0t++dY2nSjbVPMLs7Gqel8KnqhtnJg450W1xMGs/TSoOnH fF2ap/i2/w1FszCUFM9GppfLIIL6sQvAHbcftf1t6bxVeFD5E+7SQICkDeZeEzhZlMwC aIog== 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=yLcc4hBvosMfoT45fFWLeaEWTXsJpM314VEgOIswI1M=; b=lGQFz/dXw+ewiCQivNY02K6V7ISXRUAfhbWU0GIy5hEqCxhdWRljSgyPUUJSA/XFou Y14NSgbzeM/lT+i5StAmbY4v5FBGBGH9YGUtPgbaNzxQ+V8bMUY7x2EMYriCdWq69YeU CzvoxzdeN/2ErF5UUNyXRsGJ1riHzfxYcY8fJMd3GqbavTfI5GhZCMz/VLllfxuAgVMH anELqvgY1dZSaJSaQGD10mWYlxWiDod05zgWfy1xcTF7vUenVpXrzRMGCb9tZQTg6BxL lhG62dnhkk1JK5b/h7r9pnVkVNMkbRL7GJ2S29vT1z2yWhZ5ELvol22odcddiP4SsgXT YM4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LF4t67GF; 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 f25si428843pgn.358.2017.09.18.17.29.08; Mon, 18 Sep 2017 17:29:08 -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=LF4t67GF; 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 S1751411AbdISA3F (ORCPT + 26 others); Mon, 18 Sep 2017 20:29:05 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:29348 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbdISA3B (ORCPT ); Mon, 18 Sep 2017 20:29:01 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v8J0SZw2026530; Mon, 18 Sep 2017 19:28:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1505780915; bh=2RzJwAWEC4WyAK9dIrYqWzzodkLngQBYLMmPOuD5h0c=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LF4t67GFzmwGIWzojJWYvD+3+tATmx94iRolxkQiZdmnSHCPuZeGSLCv0sFKjjzw7 EQ2BMb63moB0ouYRLIXStrpjJgtLieft9L0DszD8v809qpDvmjZyI1TWOOx+ZUqOeC yEWL/NcIBytQWQwyhtaXZptYKXqvaBce6HC2BQ70= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v8J0SZ9l015194; Mon, 18 Sep 2017 19:28:35 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Mon, 18 Sep 2017 19:28:35 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Mon, 18 Sep 2017 19:28:35 -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 v8J0SZO0032486; Mon, 18 Sep 2017 19:28:35 -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 v8J0SZ329426; Mon, 18 Sep 2017 19:28:35 -0500 (CDT) From: Suman Anna To: Sekhar Nori , Kevin Hilman CC: , , , Suman Anna Subject: [PATCH 2/3] ARM: dts: da850-lcdk: Add and enable CMA reserved pool for DSP Date: Mon, 18 Sep 2017 19:28:32 -0500 Message-ID: <20170919002833.5677-3-s-anna@ti.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170919002833.5677-1-s-anna@ti.com> References: <20170919002833.5677-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 reserved memory node of 16 MB has been added and assigned to the DSP remoteproc device on the OMAP-L138 LCDK board. The CMA starting address matches the values used within the TI IPC 3.x software. Both the CMA node and the corresponding rproc node are also marked okay to enable the DSP on the OMAP-L138 LCDK board. Signed-off-by: Suman Anna --- arch/arm/boot/dts/da850-lcdk.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.13.1 diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index a0f0916156e6..eed89e659143 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -26,6 +26,19 @@ reg = <0xc0000000 0x08000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + dsp_memory_region: dsp-memory@c3000000 { + compatible = "shared-dma-pool"; + reg = <0xc3000000 0x1000000>; + reusable; + status = "okay"; + }; + }; + sound { compatible = "simple-audio-card"; simple-audio-card,name = "DA850/OMAP-L138 LCDK"; @@ -319,3 +332,8 @@ pinctrl-0 = <&vpif_capture_pins>; status = "okay"; }; + +&dsp { + memory-region = <&dsp_memory_region>; + status = "okay"; +};