From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4596EC3279B for ; Mon, 2 Jul 2018 08:19:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E98E42075E for ; Mon, 2 Jul 2018 08:19:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="lXmAWrBO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E98E42075E Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754132AbeGBITc (ORCPT ); Mon, 2 Jul 2018 04:19:32 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:34270 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753264AbeGBIT1 (ORCPT ); Mon, 2 Jul 2018 04:19:27 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w628HnZl099530; Mon, 2 Jul 2018 03:17:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530519469; bh=T+XFInU5VMCxn1ebBGZj2P3ts53DYSQPZyt0qxIWDKA=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=lXmAWrBO5tCoihjQikx1wlrRBe+Klcmc3fMyjLMurpJMFQGtb5kNvIT7u+vU2recd lueXdCseDPOHFNw7Avx6dNi9q0fKJNhvmeyg/kUSLXVb2ZiYcw/M1x2c+ieSP338Z5 bd7ZJFgEq5xboH4WcuuqBSu1ePPwH2aPQdk5E15Q= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w628Hn1V017454; Mon, 2 Jul 2018 03:17:49 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 2 Jul 2018 03:17:48 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 2 Jul 2018 03:17:48 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w628HiVS029472; Mon, 2 Jul 2018 03:17:45 -0500 Subject: Re: New remoteproc driver for TI PRU To: David Lechner , , , , CC: Ohad Ben-Cohen , Bjorn Andersson , Rob Herring , Mark Rutland , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Tony Lindgren , Sekhar Nori , Kevin Hilman , , "Anna, Suman" , Tero Kristo References: <20180623210810.21232-1-david@lechnology.com> <8fc18d40-72f5-9215-26f0-1492e3a6c0e7@lechnology.com> From: Roger Quadros Openpgp: preference=signencrypt Autocrypt: addr=rogerq@ti.com; prefer-encrypt=mutual; keydata= xsFNBFT1lPYBEADZlKgOS2lxNkDRlcROza/QPsYrS+V2YAXOd4rO/sshQDt1OgU4E8DD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YwTBJM+Go6tOuRnP6jrkf2Va/pIwIltzf9QOW cgEAEQEAAcLBXwQYAQIACQUCVPWU9gIbDAAKCRDSWmvTvnYwk8niEACcwBAfe1tTSqCCHkRj zgIrt+NPBBfxilf9JXPGTYqfUkrcVfiNqLGFgIDZKjkLfArxiSmpmtKf1O1VYO9XDgADUKJO RvmUQM/l3Q99QC5b8yUyZOsgfSBOsV6DeqiULO30cXH/uEpR2fUcbtyYXHouiF2UNdq/BV5h HBQkGYtTf7K26NPp4wXMS+YsBm2Gbms/wywJh4KgRPP6LuA+UE/7l0xqMD3pBQ/L1KLTqOQY CItcZ0YbEvlrJc25PRkCssHf1J2c2MXV+CRqsibW8UamBmOyzKHVK/CwvIndwBmcciJrOf+4 uxegvXEnwvYPuQ3wvBSkgbJRFNJemnp5KSczANr4R/aA5cEbxhbg7peLv0FdFyTFJXCsKeuO 1gKoKtOLyxRhDocprSuEamaDWDCy3TmX+6nWaBIPYXDFT7IcHT6l6TyZ6IMjkXiHSLhynTIj f2xjSrvKPljIUxcqjhyqWe+coe/Xwbqz69DsK150xoAaoS3rbNlhmalbg15HNTipNDI/k81A fwt7ncjxvjXVJnA2nqPBDIW3mZO/ED0blLrVdaMZjf5LvS+vvsMdH7dHtrAXA50egr74sX0A NO7iW+gkmFYwap531ipMXthHPWbo5x9xfb+a48xA80ePBJLBDyw9X+cOe40+N4Ybiwy5Q2La IwrfNkJOLj3CvocMIw== Message-ID: <419db83e-7918-7b54-c18a-d786c47e8ef5@ti.com> Date: Mon, 2 Jul 2018 11:17:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <8fc18d40-72f5-9215-26f0-1492e3a6c0e7@lechnology.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-GB Content-Transfer-Encoding: 8bit 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 On 29/06/18 20:44, David Lechner wrote: > On 06/29/2018 04:58 AM, Roger Quadros wrote: >> +Suman & Tero >> >> Hi David, >> >> On 24/06/18 00:08, David Lechner wrote: >>> >>> Date: Sat, 23 Jun 2018 15:43:59 -0500 >>> Subject: [PATCH 0/8] New remoteproc driver for TI PRU >>> >>> This series adds a new remoteproc driver for the TI Programmable Runtime Unit >>> (PRU) that is present in some TI Sitara processors. This code has been tested >>> working on AM1808 (LEGO MINDSTORMS EV3) and AM3358 (BeagleBone Green). >> >> This is great. We have been working on something similar and I think it would >> be great if we can collaborate to get all our needs addressed. > > Yes, I have used the PRU with the TI kernel on BeagleBone so I've seen the TI > implementation. My primary interest is in the AM1808, which has a far simpler > PRU than other SoCs. So, I was hoping I could get away with just implementing > the basic stuff that I need and let TI add the more complex stuff later. > The PRUSS core is essentially the same thing on most of our SoCs. They might be varying in amount of RAM and integrated modules though. So PRUSS core support should be scalable across all SoCs. It is perfectly fine to get basic support in first and add the rest as we go along. >> >> Our primary requirement is that it should be possible for a user (e.g. kernel driver) to >> - request a specific PRU core load a specific firmware blob and boot/stop the PRU. > > For this, I was thinking of suggesting a generic remoteproc provider/consumer > binding that is similar to other subsystems. For example: > > Provider node has: > >     #remoteproc-cells = <1>; > > And consumer has: > >     remoteprocs = <&pruss 0>, <&pruss 1>; >     remoteproc-names = "pru0", "pru1"; > > The consumer device would be responsible for determining the firmware file > and for calling the rproc boot function. > > >> - configure INTC interrupt mapping based on either resource table or DT >> - use request_irq to request and use an interrupt. > > I didn't consider creating a new interrupt controller in device tree, but > that makes sense. I will have to look into it some more. > > >> - request access to DRAM/SRAM > > Can the existing device tree bindings for reserved-memory be used for this? > I would expect the consumer nodes to use this and not the PRUSS provider node. > > >> - configure gpimode/miirt/xfr (CFG space) > > I have no idea what this stuff is. :-) > > (This is what I was referring to when I said I was hoping that someone > else could add more later). > -- cheers, -roger Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki