Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3222117ybt; Mon, 29 Jun 2020 19:24:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFs/278k1LnkAxPafi/3YGzhBO7PHNHkKYGCn6g9NZIsmQB4MGaWC5Amz25iUQJE69BDCV X-Received: by 2002:a50:fb93:: with SMTP id e19mr15703973edq.106.1593483849551; Mon, 29 Jun 2020 19:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593483849; cv=none; d=google.com; s=arc-20160816; b=hNeF5vt+jsTwGtygXzizlTrc2yUwk4vReyZDwOL+MDt6e8vaqS6+735Tif2xsxSWDI 02k24xE8SUf+c7pykCBBFz5c2aGDms45j+NIry9MDSWnHfG+X05XkKMPgA+5Yz67JVZ6 uye/y/PzEhmOzqvKqRPpImEQ6+k0HKxq+Tu1PMfmIQldnyI1XLTf5s/dHqalOaQXxeB8 B1Q7824AnxAdl9fhUoVpvhCuW3qGvrJ/CnDsW1aaJBFSTLCw+gFjb0+Jl6bQv7fEFOCh V389fEPQuqA1EqcFmwU8KJZj71uENVLHXWDhwK5wTvVuURgnNIAlRs10B9Ms289J1QlZ zadA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=D7EQW6LVu/0LCQVaLjrZlygqrUoX4J/4WhIdq95ups4=; b=HuPRvpSXt+3zmOU/eHAm5t+5CiOuCux+52mK9jCzNFK7uCKG9IO1xVMxk0jkMqdUt3 9pMLBtKI03Uc1uMzwJV79GOTwrx3ZDzKFmudwyhwFGKtv+puY3SaDWT9A+C3PtSor3YN vzJYIHY2kjkraB2HLQY5iYc71Hr8d5aZyjneWrN8nKvHOyoValOspQeBFHbNG3nQduar KJ2KuAaEGiSDlIm8ITkczRlSH8lPFWuyy8OxEoDS+IbP7xQ+jf0pusa/qpiyCbbumBVm AazlB2RBgf6KNyEDEBMep4ps1LKfUSjX0FstwzgyJNWswD9pFfIcSR0YP2KJn++v2Ocm GcQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqGvK2P0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si890870edv.230.2020.06.29.19.23.46; Mon, 29 Jun 2020 19:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqGvK2P0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbgF3CXD (ORCPT + 99 others); Mon, 29 Jun 2020 22:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbgF3CXC (ORCPT ); Mon, 29 Jun 2020 22:23:02 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 550ADC03E979 for ; Mon, 29 Jun 2020 19:23:02 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id f2so7847529plr.8 for ; Mon, 29 Jun 2020 19:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=D7EQW6LVu/0LCQVaLjrZlygqrUoX4J/4WhIdq95ups4=; b=eqGvK2P0KbEv7YNVWM3sX4gdSuUS22MEImdYUCitDNbLwwQhlXEWVMN+sfnQfxSI7s X3ZIBVg76VMnPRXZLDlylOoDN2aMsPdl82fJrcCwBMALeO9TkTUu4vmMLyek91DGMJKb b5KkT4yWgiJNfABUQSLhbMG+6l8qMZK7pv24h3ZS18gqVw5Kq1LmRqmgHfUnSrdtbjfb bSMaxciVuXntSrLmo3XqJ4Td/FraZqYIPvwoEXdWHAV/LeSKTk+BRhZOU2ypdssfZ/le crp20QShS7XdaU+N1xz+B+0AbQA4L0rm24yak5coOERB5bK9q1uVAn7wadqkY1rG1c13 CMwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=D7EQW6LVu/0LCQVaLjrZlygqrUoX4J/4WhIdq95ups4=; b=JCfgcaxZUeMThSRNvKEKMx1wvgavJyOMF0pkwDTqRMsNIQSRgOSwN6LLvjqSOLAWPJ 5zIq8wMHc1L6L4j/P4BzSk33q1YXCcrLVmLgZBjjXiDRTW5sX5ahhRPVKfM6UExBgKnb TFQZfOb8b2egz3nxhIUycX/BbP2TquWJ3g4Dw2kIwgv9SgNCe3cpWkwMo3u2ux2YaDYu snP2TqJypIu0xRcmlkBJ/5n1WANR6iIQwvewKHl9i+csC5KSteIrHD62mBiOyDmIzmPa YuJH5TD2zv1hVT/KoMPytB6sWfuzKURAzqGdo6f3BiKszvxqLNOL3748EPhqd0c9kdu8 0ZNw== X-Gm-Message-State: AOAM531IVlg7F4nthJzaI0UaUtEi2Y78ISuSFEYkgBejfHH1v+qmIQ2o aLP58DWVR5azRFQ89b4/a8ugBw== X-Received: by 2002:a17:90a:20e9:: with SMTP id f96mr20462600pjg.13.1593483781624; Mon, 29 Jun 2020 19:23:01 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id j19sm819933pfn.109.2020.06.29.19.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 19:23:00 -0700 (PDT) Date: Mon, 29 Jun 2020 19:20:29 -0700 From: Bjorn Andersson To: Stefano Stabellini Cc: Rob Herring , Ben Levinsky , "ohad@wizery.com" , Michal Simek , Jolly Shah , Rajan Vaja , "mark.rutland@arm.com" , "linux-remoteproc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Stefano Stabellini Subject: Re: [PATCH v4 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings Message-ID: <20200630022029.GC407764@builder.lan> References: <1587749770-15082-1-git-send-email-ben.levinsky@xilinx.com> <1587749770-15082-5-git-send-email-ben.levinsky@xilinx.com> <20200511221755.GA13585@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 29 Jun 17:37 PDT 2020, Stefano Stabellini wrote: > On Wed, 10 Jun 2020, Rob Herring wrote: > > On Tue, May 26, 2020 at 11:40 AM Ben Levinsky wrote: > > > > > > Hi Rob, > > > > > > The Xilinx R5 Remoteproc driver has been around for a long time -- admittedly we should have upstreamed it long ago. The driver in the current form is using an "classic" remoteproc device tree node as described here. > > > > I would rather not have 2 possible bindings to maintain. If there's > > been no rush to upstream this til now, then it can wait longer. > > > > > > > > I am working with Stefano to come up with an appropriate System Device Tree representation but it is not going to be ready right away. Our preference would be to upstream the remoteproc node and driver in their current forms while system device tree is maturing. > > > > There's obviously going to still need to be some sort of description > > of the interface between cores, but this has parts that obviously > > conflict with what's getting defined for system DT. The TCMs are the > > most obvious. If you can remove (or hardcode in the driver) what > > conflicts, then perhaps this can be upstreamed now. > > > Hi Rob, > > Sorry it took a while to answer back but we wanted to do some research > to make sure the reply is correct. > > > The System Device Tree version of the OpenAMP remoteproc bindings aims > at being simpler and vendor-neutral. As anything else System Device > Tree, Lopper will read it and generate a "traditional" device tree with > the existing remoteproc bindings. In that sense, it might not affect > Linux directly. > Can you give some examples of how you will be able to describe the hardware involved in powering/clocking resources surrounding your remoteproc and the necessary resources in a "simpler and vendor neutral" way that then can be further lopped(?) into something that Linux can use to control any remoteproc? > However, given the fragmentation of the remoteproc bindings across > multiple vendors (they are all different), I think it is a good idea for > Linux, for System Device Tree, and in general to come up with simpler > remoteproc bindings, more aligned between the vendors. If nothing else, > it is going to make Lopper's development easier. > In my view the big reason for the fragmentation between bindings is because they all describe different hardware. There has been common properties of remoteprocs discussed, but apart from the firmware-name property I don't think we have agreed on any. > > So I think it is a good idea to take this opportunity to simplify the > Xilinx remoteproc bindings as you suggested. The idea of to removing the > TCM nodes is a good one. In addition I asked Ben to have a look at > whether the mboxes and mbox-names properties can be removed too. > If your remoteproc uses a mailbox for signaling, then this should be described in devicetree. This will allow you to reuse components in other designs where either part is replaced or reused. Regards, Bjorn > Ben will reply with a simplified bindings proposal.