Received: by 10.223.185.116 with SMTP id b49csp143872wrg; Thu, 8 Mar 2018 14:28:59 -0800 (PST) X-Google-Smtp-Source: AG47ELsU8H7BzvGWOFvSp6ENUofizBrEeE65zITNAzsu25ew2QRQl4gTskj/mGTZOzNCCoh+sG0e X-Received: by 2002:a17:902:900b:: with SMTP id a11-v6mr16362958plp.366.1520548139242; Thu, 08 Mar 2018 14:28:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520548139; cv=none; d=google.com; s=arc-20160816; b=HGasfVVWYnTcMr1K5KNr4I6KQ+JmpKQBsZ0lUrtyDc6ZlY0xrXAaXYri29t8xpk+l9 1n0m7o9iqaFy+BfLgezixSw1NshgkEvKateMlfN+RTGGFBC7rMP6T5ZGy/MqdH5xfZ+I Yz12Y9z44iaDb2MwVBQkCXsoQFHqeoZ3ymMsuqWa7y9MZp5q0K2Yv9EAi9e1HmzqgyKj OJCnZHXz8JDExNDTlLVQQ3Ah5WxD1U44cDJw1LHeZWl8m1FVurOiV9nSLDhWe3KtrNZa RuA4Mvuk+QXHzhme9UPBrAixCRSqHeEbjHL+cc2AIMa5miguc1i/SXc4SGmKe5UjNmGG zQXw== 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=352CFyWaGY5UdbX1v0lzlTQIuPnb3TBnAjmjFNHwu54=; b=Th+0ExjeaYmrz9YRSrqqBbD9T2Dsx+zU5+/RQc8jR9fs9arnR85R7iLjs/5QCAcUys p4tlRuI9LtPjwmSWYaJNyJ2G1N4LPTvW2fv9qcKbCbjxIDtYrpHf9MVbnQ0S2sKUp0ek qjfiFvz1xh6mM8TgPfpsZcc+7yOp8HGOAzO+EE+ixtIe7g8BFvpntLsulGWnovnQcA5l nCJI3ORJcbeoQTV6eUIPjuCsJUZyE46DKNC/u5TQFGky79VHZXIM/okguwnMADSo08/R /5Bt6k9H4mZmeNnx+OdSzCGgMy9cOY27K0EEEH0J284KmrLhwX5rKlOOVisz23MDLihy LUhQ== 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 s3-v6si15323885plb.4.2018.03.08.14.28.44; Thu, 08 Mar 2018 14:28:59 -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 S1751160AbeCHW1k (ORCPT + 99 others); Thu, 8 Mar 2018 17:27:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:45776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbeCHW1i (ORCPT ); Thu, 8 Mar 2018 17:27:38 -0500 Received: from mail-qt0-f180.google.com (mail-qt0-f180.google.com [209.85.216.180]) (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 C34AC2178E; Thu, 8 Mar 2018 22:27:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C34AC2178E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-qt0-f180.google.com with SMTP id m13so8614708qtg.13; Thu, 08 Mar 2018 14:27:37 -0800 (PST) X-Gm-Message-State: AElRT7FQtzyz+giOEu83RLxpJQkp0vCdil4HxGwkIN7YfXzZBh7+lV84 Zc6QWOqPst/nr84rNq+Wp/WdjRKTCLEacp5VCA== X-Received: by 10.237.55.71 with SMTP id i65mr43308911qtb.27.1520548056961; Thu, 08 Mar 2018 14:27:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.178.131 with HTTP; Thu, 8 Mar 2018 14:27:16 -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: Rob Herring Date: Thu, 8 Mar 2018 16:27:16 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv2 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding To: Alan Tull 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 Thu, Mar 8, 2018 at 9:32 AM, Alan Tull wrote: > 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. Ah yes, that's probably good enough reason. Rob