Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5258317ima; Tue, 5 Feb 2019 08:47:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IYwkBZUNLeC4gKFtojhp0fftPxKDyUcCfwvXDaLoumefEoGfarFCrz/RylPlcGlwtOlp0Xi X-Received: by 2002:a63:b24a:: with SMTP id t10mr5147524pgo.223.1549385240744; Tue, 05 Feb 2019 08:47:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549385240; cv=none; d=google.com; s=arc-20160816; b=UzsnayfvCJw1alTkwtakb0+CGODPVkVKXS6jhh+riBJRZFNKygoqvMizLamlW20TJ5 F0Bf4cfU2LpRUAQMipIHyWEd1IUkH41POz0bt05SL5kKqvq6Lhw6No095sY+5MEoLM6I uM0/4/oQEPvnBNmoi471nITLyvwlhHQM2K2OtMM8/zKRsM0ByMR0iwa6yWT6u0AVIQBq izyXnoPQBVy8qZX9K3QeUJqGl0qnVD73V9VNAlYHd/RvpyrFRHCZpe1Mu/oib+grn8iv n2CV5oAdIritsVOda1vWL84EmI6YTQnMJsuF1+xfMRUg8FNGrs2uc+YTZeuebGTm3/OX Tlaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PzTiJkIWIiWjAsU0CN2iSKSo8VMnLyY4ue5lCMkI8IE=; b=tV0DwSD+MBUAs2aDz0EX2uRvIKOU9dT/tj+xsCzZEYXIgmSYdMY9PmzRYv7mrdrlae /fyeiQslJtBPucMcv4t/G0CYHtAn9J+ZJ2SFIkySIpWqGGtAcgt2bF/pQpVWuDK4d8Tx PN8SvnxuCLGqjPvZ/4ecz6hgdc02T4TU1E0skuK1v/ula6Mx+YyatGvpSeQDS16cKt+E 0D3kHH6xtB8RsqyWlSXJKCyCvrq1XYJl01q6FM7FYHdJXad6S1OwopkPDKZj86tXAcyd lMF7wbf2L/dexPiWb0o2Lh/7GAvOCy9wcsARcX/IHcooBsgonYCpeX33mTpSrljlAkB3 N6SA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si3540334pll.248.2019.02.05.08.47.04; Tue, 05 Feb 2019 08:47:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730092AbfBEQlh (ORCPT + 99 others); Tue, 5 Feb 2019 11:41:37 -0500 Received: from muru.com ([72.249.23.125]:37726 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729743AbfBEQlg (ORCPT ); Tue, 5 Feb 2019 11:41:36 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 2A4CE809C; Tue, 5 Feb 2019 16:41:44 +0000 (UTC) Date: Tue, 5 Feb 2019 08:41:32 -0800 From: Tony Lindgren To: Roger Quadros Cc: s-anna@ti.com, ohad@wizery.com, bjorn.andersson@linaro.org, david@lechnology.com, nsekhar@ti.com, t-kristo@ti.com, nsaulnier@ti.com, jreeder@ti.com, m-karicheri2@ti.com, woods.technical@gmail.com, linux-omap@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij Subject: Re: [PATCH v2 01/14] dt-bindings: remoteproc: Add TI PRUSS bindings Message-ID: <20190205164132.GT5720@atomide.com> References: <1549290167-876-1-git-send-email-rogerq@ti.com> <1549290167-876-2-git-send-email-rogerq@ti.com> <20190204163312.GI5720@atomide.com> <5C5959DB.2090608@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5C5959DB.2090608@ti.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Roger Quadros [190205 09:40]: > On 04/02/19 18:33, Tony Lindgren wrote: > > > > shrdram2: memory@10000 { > > device_type = "memory"; > > reg = <0x10000 0x3000>; > > }; > > Shared RAM is not so straight forward. Both PRU firmwares and both application drivers > might need to read/write here. The area split is decided by firmware design and there > is no hardware protection to prevent from stomping on each others toes. > > We need a carveout based memory allocator at least I think that can do a > allocate(base_offset, size); into shared RAM. > > This could be used by pru_rproc driver at firmware load time and by application drivers > at initialization time. > > Thoughts? That sounds sane to me :) > > If the ti,pruss-gp-mux-sel and ti,pru-interrupt-map are > > firmware configuration options, maybe leave them out of > > the dts completely and make the app-node optional. > > Yes the app-node is optional. I will mention it. > > No, ti,pruss-gp-mux-sel and ti,pru-interrupt-map are not firmware options. > But these settings are application/firmware specific. > > ti,pru-interrupt-map specifies the configuration to be used for the INTC interrupt > controller. OK. So just to see if we have a standard solution available already.. It sounds a bit similar to what we're doing with omap-wakeupgen.c and stacked interrupts? I wonder if something similar might help here? > ti,pruss-gp-mux-sel is used to configure this register. > "Table 30-20. PRUSS_GPCFG0" in http://www.tij.co.jp/jp/lit/ug/spruhz7h/spruhz7h.pdf > "29:26 PR1_PRU0_GP_MUX_SEL" > > It configures how the pins from the PRUSS module are routed internally > to the various modules. > > see "30.2.1 PRU-ICSS I/O Interface" > and "Table 30-1. PRU-ICSS1 I/O Signals" Well these are external signals for PRUSS processor (although not necessarily external signals for the SoC). So why not handle them with a standard pinctlr binding with #pinctrl-cells? Sure it may not even be the Linux pinctrl framework running on the main SoC handling these pins, but after all you're describing hardware for a processor. Maybe Linus W has some comments on this? Regards, Tony