Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp278236imw; Fri, 15 Jul 2022 03:06:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vLfjuWxMhGx6mNodQQGfteFPJ9Dj7MmQp3urFUzI86CE058YA7/TVqVuc2GX9Y3Y5yk3PA X-Received: by 2002:a63:152:0:b0:419:a4c7:1e0f with SMTP id 79-20020a630152000000b00419a4c71e0fmr9537658pgb.538.1657879574225; Fri, 15 Jul 2022 03:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657879574; cv=none; d=google.com; s=arc-20160816; b=MwJ5Rove9VHg5+exiDhHbisrJ2lgjQH1X6o4QuUx4QRBAWnUBPuwcn6h1N0uzgJS/w bbCE/8QpIRlh32D1wvYHlJFeUngD2PqXDlQ4Mn0XD6vSTpu3efEXS5BZTy3NojF1F0Zi q79GIO/hLifrbX1GU8YV1hlPrSMBYT3/E2Dkc34onT5Ef88eD2JLTGK3q4rWU7pS9glj zgBJuUJZoctQjGr67MYzbrH8WHAVy6IHeJQfpPCoDsfA1ZPAmiGk3g5KbsR5L1E3dH/q RdKoOpZXnEJmJlYs+KlT4JplSUbpmcVAAFEw9uLLzSEL/TkYFiKZhm9yI6BemIAj0OhS A59g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LWs7AqRcsJIuTaEyljmzXxNtVa28ecrdNGzJsWNp11U=; b=LefYRuVFO6I6WO40CdoXSfSrZDfxYLn9dQ07LlyafhdFNAYLX1a1K1ezqR4OH6IuzG oCnQKibYeGHVj19+CSLm8boyTdFB7sPVMco7IiMaJfuUoySKhRWPYMnxqtQ+nF9hNNh5 1j0kP3WYDbsbmOeh7WirKvBDb3pJTZuSYG64bYc0vMkFMiRHdrrxSicpNEZI9WJiDHdS CYEWiqOGfL6LiOmBg1QI97o1dyQlhJYHkPedR5+LoHvNdbMIServ4MzrtGy8uah8b8Vm 3pSRyZX+xav7EcqAq6/UQTEyWhplkZkJTu2TAqx/qrvJZSQTxNmTJmPOjHO+inUhnj9e jl8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ccbbBpBH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020a63d852000000b00410702fe18dsi5085348pgj.422.2022.07.15.03.05.59; Fri, 15 Jul 2022 03:06:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ccbbBpBH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232678AbiGOJeQ (ORCPT + 99 others); Fri, 15 Jul 2022 05:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232202AbiGOJeB (ORCPT ); Fri, 15 Jul 2022 05:34:01 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD0A626AF8 for ; Fri, 15 Jul 2022 02:33:59 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id bu42so6998965lfb.0 for ; Fri, 15 Jul 2022 02:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=LWs7AqRcsJIuTaEyljmzXxNtVa28ecrdNGzJsWNp11U=; b=ccbbBpBHnHt320KqP5R2MNVZdv9btGA2pa5tLrgDv3xqrF6qYAhVNpkdVbm8drs9mC aygiC9IhevQ/w9zYa443tkCPgJHhpyUbcRO/imGQcjw4EFqiYDN7qtWkhZSl9Il6IBYz EUrWfosTDV3GDXXowzRyDFA/gBBuGjnIrdXmf73VkXnj9UEU4Oh/b741OR8p9AVNbOpu Gn3Hrrr4SOLXGUesNK07aogLzuBgYGnne1eXzsa38WOMv6wqxHEE/i9CR5RvHNMxX4ku eTAh11ZijzVzl+OOX9/QTnELt6b7W8i/kYnBKXSiM5OpH/T7nbv9BrlhDZHkfmPqbeq1 guPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=LWs7AqRcsJIuTaEyljmzXxNtVa28ecrdNGzJsWNp11U=; b=rWmlXsBTyUM200JHnwg7h2e6F+MNEuhuZHSurlm9lZS7vygjrxuEfVs941y4xjIm71 owguexoVFMZWSITVbw91UvUu/AVpCuryMsgFwl6xSEqPd1IC9yMhU97C0RB0LWPbBpQZ 7d+3NybI1CgNEYC9N6gCrHzSvtYwFwup3UbZyJk1z1g3BnYpIvXwtpLh811ZuqyK1dnI iOSyCi7kfOUh1emhExqZeorROvczHSUYgj00eIw8LgKtb9NMTBSlp9rKvySnhjpee9o+ Ck2iYLHyzz4jB+1LDIuF+YOwleYiWyYxe5lAkpanl47EJhkynZp9clZR0KyPwMa/Dng7 WcVQ== X-Gm-Message-State: AJIora/htgU+SpjztCPHR8grru4yeOj5y47OQEaRhPHJ9rejZNjuPToq aJRiElHg9OStUAPT66v+lnxlLQ== X-Received: by 2002:a05:6512:228d:b0:489:c925:e045 with SMTP id f13-20020a056512228d00b00489c925e045mr7535080lfu.545.1657877637867; Fri, 15 Jul 2022 02:33:57 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id k1-20020a2eb741000000b0025d542731ffsm682135ljo.5.2022.07.15.02.33.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Jul 2022 02:33:56 -0700 (PDT) Message-ID: <044a9736-a4ec-c250-7755-c80a5bcbe38b@linaro.org> Date: Fri, 15 Jul 2022 11:33:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 2/2] dt-bindings: fpga: add binding doc for ecp5-spi fpga mgr Content-Language: en-US To: Ivan Bornyakov , mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, system@metrotek.ru References: <20220714122657.17972-1-i.bornyakov@metrotek.ru> <20220714122657.17972-3-i.bornyakov@metrotek.ru> From: Krzysztof Kozlowski In-Reply-To: <20220714122657.17972-3-i.bornyakov@metrotek.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/07/2022 14:26, Ivan Bornyakov wrote: > Add Device Tree Binding doc for Lattice ECP5 FPGA manager using slave > SPI to load .bit formatted uncompressed bitstream image. > > Signed-off-by: Ivan Bornyakov > --- > .../fpga/lattice,ecp5-spi-fpga-mgr.yaml | 71 +++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 Documentation/devicetree/bindings/fpga/lattice,ecp5-spi-fpga-mgr.yaml > > diff --git a/Documentation/devicetree/bindings/fpga/lattice,ecp5-spi-fpga-mgr.yaml b/Documentation/devicetree/bindings/fpga/lattice,ecp5-spi-fpga-mgr.yaml > new file mode 100644 > index 000000000000..79868f9c84e2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/lattice,ecp5-spi-fpga-mgr.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/lattice,ecp5-spi-fpga-mgr.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Lattice ECP5 FPGA manager. > + > +maintainers: > + - Ivan Bornyakov > + > +description: > + Device Tree Bindings for Lattice ECP5 FPGA Manager using slave SPI to > + load the uncompressed bitstream in .bit format. s/Device Tree Bindings for// Instead describe the hardware you are adding bindings for. What is a "Manager"? It is so broad and unspecific... It is some dedicated hardware to communicate with FPGA or you just called this regular FPGA interface exposed to the CPU/SoC? > + > +properties: > + compatible: > + enum: > + - lattice,ecp5-spi-fpga-mgr Do not encode interface name in compatible so no "spi". > + > + reg: > + description: SPI chip select > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 60000000 Reference spi/spi-peripheral-props.yaml in allOf > + > + program-gpios: > + description: > + A GPIO line connected to PROGRAMN (active low) pin of the device. > + Initiates configuration sequence. > + maxItems: 1 > + > + init-gpios: > + description: > + A GPIO line connected to INITN (active low) pin of the device. > + Indicates the FPGA is ready to be configured. > + maxItems: 1 > + > + done-gpios: > + description: > + A GPIO line connected to DONE (active high) pin of the device. > + Indicates that the configuration sequence is complete. > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - program-gpios > + - init-gpios > + - done-gpios > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + spi { > + #address-cells = <1>; Wrong indentation. 4-spaces for DTS example. > + #size-cells = <0>; > + > + fpga_mgr@0 { No underscores in node names. > + compatible = "lattice,ecp5-spi-fpga-mgr"; > + spi-max-frequency = <20000000>; > + reg = <0>; > + program-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; > + init-gpios = <&gpio3 3 GPIO_ACTIVE_LOW>; > + done-gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>; > + }; > + }; Best regards, Krzysztof