Received: by 10.223.185.116 with SMTP id b49csp6445763wrg; Thu, 8 Mar 2018 07:34:45 -0800 (PST) X-Google-Smtp-Source: AG47ELuXWgGETz82ctnaEbamK+Zs4m+lVSAOF03hPOEsR4iN9c9k7AYPJzZqOadSRDqwuLVA1w9o X-Received: by 10.101.70.10 with SMTP id v10mr21528201pgq.327.1520523285175; Thu, 08 Mar 2018 07:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520523285; cv=none; d=google.com; s=arc-20160816; b=hp5HuFFiNk/bbNoARm2j3IB5vpxA5jBik/dGkvfuSiYyuKxxjyhAVXO9xfgELEeke0 ZHedsEvwyebcQZg9G4qwkwNWlMR3WeJ9bZP69n7Szu7kp145wcaflLIJebSWoG4S0GxL eR8InGCBH1QvSh+m86lj9DET9tl3maJZ05dQGU5a0L2RRWbf5zeroKMy8i6OmU3lQm1S PU1coYmGgdtUadMYnOaTObYtihsWpzdagU40NiACZM3elYVrfA0n5ivOWQfdTK4dVH0g ZDeJt9v+7iR0jjD+GA9aaRmXY5O1p4aBN2ed44f4Wdh/pEk7imlxWBNyWAl3XcIsoGTc vFOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=wEGbpb5gHpNAsT+SeB3d5KGbdlucxZOubNpsb+A+HPY=; b=PD6hg7gtoMqCKhcXoAvcdChiMSVqd+Vl1RS11utcAtAADmK2/iFrjfY6jS2RRH1Tn7 66CIJ4axuKnplODWtT0wJpvwp6WuXIDVqklkIET0Ahivcma7nNdqSZoNp5qFfOS5ZdET CHuN1s2YDmQOR3nCVOTrB5TgayKm28n4gGtbwAD9lp0KHDq+omkB8Vy5KePdqZhwu5fN QNRctQSZMvCD3S5FovNs1J9/I+QTom5UjtqiJFNJYNLkSPjj9fBM1l/RN/S/oBdyZPyE IE2Arecrw9UnnEPEUSzxUnCCKK4eFswLkrqB4cfcVZJWzM4fo1lQh5o4OIm3tz3+f+pM 1pqQ== 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 h62si13122786pgc.723.2018.03.08.07.34.30; Thu, 08 Mar 2018 07:34:45 -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 S1756040AbeCHPd3 (ORCPT + 99 others); Thu, 8 Mar 2018 10:33:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:50504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755990AbeCHPd1 (ORCPT ); Thu, 8 Mar 2018 10:33:27 -0500 Received: from mail-ua0-f174.google.com (mail-ua0-f174.google.com [209.85.217.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D8692133D; Thu, 8 Mar 2018 15:33:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D8692133D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=atull@kernel.org Received: by mail-ua0-f174.google.com with SMTP id e25so50046uam.6; Thu, 08 Mar 2018 07:33:26 -0800 (PST) X-Gm-Message-State: APf1xPD/cnKYGPGx8v82fFeMAO3LQvp1XZul+xJeQs+aHrI08d2+9Rtf WolzYdGqQCTF4xbFFDoEfsI5KyUfgEp7t6+g1ok= X-Received: by 10.159.49.27 with SMTP id m27mr20103652uab.169.1520523205429; Thu, 08 Mar 2018 07:33:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.60.71 with HTTP; Thu, 8 Mar 2018 07:32:44 -0800 (PST) In-Reply-To: References: <1519949975-13548-1-git-send-email-richard.gong@linux.intel.com> <1519949975-13548-5-git-send-email-richard.gong@linux.intel.com> <20180307194745.657ewa6rtcta6eqm@rob-hp-laptop> From: Alan Tull Date: Thu, 8 Mar 2018 09:32:44 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv2 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding To: Rob Herring Cc: Richard Gong , Catalin Marinas , Will Deacon , Dinh Nguyen , Mark Rutland , Moritz Fischer , Arnd Bergmann , Greg Kroah-Hartman , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-fpga@vger.kernel.org, Yves Vandervennet Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 7, 2018 at 7:24 PM, Rob Herring wrote: > On Wed, Mar 7, 2018 at 4:20 PM, Alan Tull wrote: >> On Wed, Mar 7, 2018 at 1:47 PM, Rob Herring wrote: >>> On Thu, Mar 01, 2018 at 06:19:32PM -0600, richard.gong@linux.intel.com wrote: >>>> From: Alan Tull >>>> >>>> Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. >>>> >>>> Signed-off-by: Alan Tull >>>> --- >>>> v2: this patch is added in patch set version 2 >>>> --- >>>> .../devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt | 10 ++++++++++ >>>> 1 file changed, 10 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt >>>> >>>> diff --git a/Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt b/Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt >>>> new file mode 100644 >>>> index 0000000..78de689 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt >>>> @@ -0,0 +1,10 @@ >>>> +Intel Stratix10 SoC FPGA Manager >>>> + >>>> +Required properties: >>>> +- compatible : should contain "intel,stratix10-soc-fpga-mgr" >>>> + >>>> +Example: >>>> + >>>> + fpga_mgr: fpga-mgr@0 { >>>> + compatible = "intel,stratix10-soc-fpga-mgr"; >>> >>> No reg or anything else? Is that because it all goes thru the service >>> layer firmware? >> >> Yes. >> >> There will be a few more clients of the service layer: QSPI, Crypto >> and warm reset. >> >>> Just get the service layer driver to instantiate a >>> device for this driver or get rid of the 2 layers if that's all the >>> firmware interface does. DT is not a Linux driver instantiation >>> mechanism. >> >> Right, this should be describing hardware. >> >> I could add this to the service layer binding: >> >> firmware { >> svc { >> compatible = "intel,stratix10-svc"; >> method = "smc"; >> memory-region = <&service_reserved>; >> fpga-mgr { Actually, add a label. fpga_mgr: fpga-mgr { >> compatible = "intel,stratix10-soc-fpga-mgr"; > > Still, why do you need this node? If you don't have any other cross > tree connections, then the service layer can instantiate the > device(s). It's used for the FPGA region to know what mgr can program the region. > > OTOH, QSPI would need a node because you'll need to describe its bus. > > Rob