From patchwork Thu Nov 22 11:39:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 151766 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp628924ljp; Thu, 22 Nov 2018 03:40:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/UF9gO7MvnJh7AzBaWRhKwB6LsJBMhQI2TtHs6/M+xjAveWTBKZ1khnrTp94QiGjiIi6OoA X-Received: by 2002:a63:2222:: with SMTP id i34mr8972833pgi.83.1542886829464; Thu, 22 Nov 2018 03:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542886829; cv=none; d=google.com; s=arc-20160816; b=tdcn6H03y+H0JRddSuJgX+xpDdeIjbL2SRp5BfornAblIfbRSDIa99bgBMGZr+h62S B6kcuymS1yE7+EuS2Tuk0IFA23nSYx6h1DOSzBOTk4KPqkdy1j+goyQeVHIVMK6Ko4y5 j3sXFHvtENdhjEJyPzK1AIMIvbW9oJzjdD3dvRqjIoCqo7lEZ4DXrJKHbvOL9cmCab3R mGuhNuEnbr1oBhkLdIHiH6XV14CXPpBFjr7qFfSojoPB7IZlCN8C9ul1BBBBCfucJ/mY 5Ei9MOO4dgwLARFizH1yxs3dHAOGcHSt/iNBdLmOF4q27y96RpR546I9ezlX2d2K+hIX O+sg== 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; bh=Ng5z4dagtHX8lvj6nUscX5CiLZR34B+6mpicKjwn6Pg=; b=VWFPU6rcCiuZTLHbqTC0TlmY9Xa1Ri1F7Z8MsIiJngbl04mo/+YxTeGSW+2DsnvFfF dJfHpzAizyf/5ryLii9ZegX/9zVDQgwcm5K+5YKxkmMlVZ2mPtOzFT7OA1Fw8wOdyOSG erwPdcrD1urMxdzompVLtzx/6kY1j9A3YLeRhTXoBeMHA+YM2mzXLPwTJ2dqL6V0Feu6 jV0i6TNUBfN0kzoazMYET6VSV1eMD+Okm21IXRyOE1PMIdW4umsX/dlB/oK3oHZ8H5wl GxEWakO1TlxCgw+1jZjkc+q2oCEPkUNXcJWIw4iB8Qz49xjwvpVDw2SUF+ah8LFENZFB P47w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) 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 x124-v6si54430682pfb.154.2018.11.22.03.40.29; Thu, 22 Nov 2018 03:40:29 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394975AbeKVWT1 (ORCPT + 32 others); Thu, 22 Nov 2018 17:19:27 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58524 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394958AbeKVWT1 (ORCPT ); Thu, 22 Nov 2018 17:19:27 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAMBeNQX008613; Thu, 22 Nov 2018 05:40:23 -0600 Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAMBeNYY130688 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 22 Nov 2018 05:40:23 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 22 Nov 2018 05:40:23 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 22 Nov 2018 05:40:23 -0600 Received: from dlelxv97.itg.ti.com (dlelxv97.itg.ti.com [172.17.2.193]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAMBeNSb028209; Thu, 22 Nov 2018 05:40:23 -0600 Received: from localhost.localdomain (vboxa0400828d.dhcp.ti.com [172.22.239.63]) by dlelxv97.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAMBdDfF013203; Thu, 22 Nov 2018 05:40:19 -0600 From: Roger Quadros To: CC: , , , , , , , , , , , , , , , , Subject: [PATCH 16/17] ARM: dts: AM33xx: Add PRU system events for virtio Date: Thu, 22 Nov 2018 13:39:12 +0200 Message-ID: <1542886753-17625-17-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542886753-17625-1-git-send-email-rogerq@ti.com> References: <1542886753-17625-1-git-send-email-rogerq@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 From: Suman Anna Two PRU system events "vring" and "kick" have been added to each of the PRU nodes in the PRU-ICSS remote processor subsystem to enable the virtio/rpmsg communication between MPU and that PRU core. The additions are done in the base am33xx.dtsi file, and so are inherited by all the AM33xx boards. Do note that PRUSS is not available on all AM335x SoCs. The PRU system events is the preferred approach over using OMAP mailboxes, as it eliminates an external peripheral access from the PRU-side, and keeps the interrupt generation internal to the PRUSS. The difference from MPU would be minimal in using one versus the other. Mailboxes can still be used if desired. Either approach would require that an appropriate firmware image is loaded/booted on the PRU. Signed-off-by: Suman Anna --- arch/arm/boot/dts/am33xx.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index ce42cd9..b7e3f69 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -983,6 +983,9 @@ <0x4a322400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am335x-pru0-fw"; + interrupt-parent = <&pruss_intc>; + interrupts = <16>, <17>; + interrupt-names = "vring", "kick"; }; pru1: pru@4a338000 { @@ -992,6 +995,9 @@ <0x4a324400 0x100>; reg-names = "iram", "control", "debug"; firmware-name = "am335x-pru1-fw"; + interrupt-parent = <&pruss_intc>; + interrupts = <18>, <19>; + interrupt-names = "vring", "kick"; }; }; };