Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3405213imw; Mon, 18 Jul 2022 07:33:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uBcO8sI5BEXIMgY+9F9XY0fy7rOd6jk5gdJlpU2GDSKXV8Bq8XgxZ7mgqeSlShjoLg+odx X-Received: by 2002:a05:6214:23c8:b0:45f:b582:346e with SMTP id hr8-20020a05621423c800b0045fb582346emr21263381qvb.109.1658154802534; Mon, 18 Jul 2022 07:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658154802; cv=none; d=google.com; s=arc-20160816; b=AjiGEI/P/XhJxi0WY2sd0GwZlVgTTz89wXKWxCOs9rMuIzM+2yvW/cqKV0e21aao4x 6eA1c35utiePj3o5VOjQV8FPxQ8L6d5euNAYYHOmroggU6nDVZPKYW1Lza7caBqWgaEJ zkt9VIhA7e6XTW+L2tuRznBRwjq87CTfaFp8TwVztkm6YqHxco+G6k1eVv+O4zp62r0T Xw7RMIEMfOL8S6PRHoC7NzapPhnnKOivXn5aaYxl1WkK1SLRPDtquY/HSx9aSrNDpKt9 b3ttZxZYf2icjMKjnfeq5RRvad4g7ljOjcB4NKXZm9U+MO/QTd0oyC7H5KwgxgbXENeN rCTw== 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=scDNluyl3Sc3xGeqgTfNYZogBEUOOlaQnjVhvnH1aKQ=; b=lut/Us1imgmHeqJ7yy44ijQNXNXbTqQs7Mb90fvJc3sWA8bPH+dwYH3WOa+f71jv6i EykO5Vp2oakdt9Kazm5P7DF0FzhCSsMUoPz7hDYAE6k61CUNBsF8NLVtUBB/JWNHBHYj mZBeI24fGGyxvyS7B7UK9828jD9gUGV9TSTNqtKzGmyw0dRnkL1OEryS3yGN+mhzQ9V5 E1N4iNxi8mk3u9NMkYOO+Yr92yBMAhPBACHCKsEDqqn9DPtth9/9ZnwoD9Nj8CKhYIAo EG1GRrxnPfo4tJJk9y0RFUSZKvkSQ00b1xh5K7w4F8O/8fG3iML2TDyaom8sKTFYyg8J N8dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LWRdlN3Q; 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 q17-20020a05620a039100b006b5e8842d7bsi1160561qkm.114.2022.07.18.07.33.08; Mon, 18 Jul 2022 07:33:22 -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=LWRdlN3Q; 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 S235641AbiGRN63 (ORCPT + 99 others); Mon, 18 Jul 2022 09:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbiGRN61 (ORCPT ); Mon, 18 Jul 2022 09:58:27 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C992F27FE6 for ; Mon, 18 Jul 2022 06:58:25 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id p6so13689821ljc.8 for ; Mon, 18 Jul 2022 06:58:25 -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=scDNluyl3Sc3xGeqgTfNYZogBEUOOlaQnjVhvnH1aKQ=; b=LWRdlN3Qf31EcZGv0pnKMXuD8WmWanUevmoH/VV4mhnGAvFytZSZUD+9dTSWms+JkZ N+K9p6Khl9Z0OVVT1i0H3sl+uvv/aF2a1r8ATUk5tYG7Q4JtM+okhG2FUUA8DclMfDpm SySuuICQU2cM1v4B5wApQIhdzzFgYAYxnm7UxQGJwa+u0GqeIR8Tl3yajLl6iiVq6E3F xmMNFceC1nCym4z9xVPxTPBzzyfLBayKrG/MipLIBb25CZWZujsrDRJqxxiht6xfQ6T2 8qbNWnbnzUtzpxxtbLQGlyADkv01v6HpVbWhbFK8lrSCES4ArJ04dKUW+Oxb8ifmSZh9 YkWQ== 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=scDNluyl3Sc3xGeqgTfNYZogBEUOOlaQnjVhvnH1aKQ=; b=HI97lsUUnmMj78ikdI/B+gOigwVzv5/jVNPBTnVDNRUeqxn6ZBCxRZNbLoNylaA2fY Y9x/xkL5wcJkQtZQtoEWQgg+9ZHUAzXexE98kbIUQvQCNKHyqUdhfRlTyfcmOwtRmLcH APquBEbxTStD51wp60GyTzi/oB94jtA44rndZ+c/8QV2h/Lg+098yW8pIYDmZ/1uz3zv zNAiub2y/JRpFr8ogIama/MTOrB+tapb5riknpTXx6iCHLk8sAwXpqR2bpJcb3R9NFa7 8itiokbSMDXMGxIq3/8EYRtJDEc3xxQyEFCTjBxz7O+RspS/GF1bjOB2Ra0pvuwftz/H 9/hg== X-Gm-Message-State: AJIora8WFg11EiFVOuwfKzjsNZXzPGau+RST3IbB+Mh7H8Qi/HTFvO9a Fs2SwyAqbtr79A9NjfhVEPAu/A== X-Received: by 2002:a2e:895a:0:b0:25d:6815:98ff with SMTP id b26-20020a2e895a000000b0025d681598ffmr11998753ljk.189.1658152704119; Mon, 18 Jul 2022 06:58:24 -0700 (PDT) Received: from [192.168.115.193] (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id m7-20020a056512114700b0047a0300746fsm2609261lfg.304.2022.07.18.06.58.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 06:58:23 -0700 (PDT) Message-ID: Date: Mon, 18 Jul 2022 15:58:22 +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 v3 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: <20220718114928.22092-1-i.bornyakov@metrotek.ru> <20220718114928.22092-3-i.bornyakov@metrotek.ru> From: Krzysztof Kozlowski In-Reply-To: <20220718114928.22092-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=unavailable 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 18/07/2022 13:49, 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 > --- > .../bindings/fpga/lattice,ecp5-fpga-mgr.yaml | 73 +++++++++++++++++++ > 1 file changed, 73 insertions(+) > create mode 100644 Documentation/devicetree/bindings/fpga/lattice,ecp5-fpga-mgr.yaml > > diff --git a/Documentation/devicetree/bindings/fpga/lattice,ecp5-fpga-mgr.yaml b/Documentation/devicetree/bindings/fpga/lattice,ecp5-fpga-mgr.yaml > new file mode 100644 > index 000000000000..bb10fd316f94 > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/lattice,ecp5-fpga-mgr.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/lattice,ecp5-fpga-mgr.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Lattice ECP5 Slave SPI FPGA manager. > + > +maintainers: > + - Ivan Bornyakov > + > +description: > + FPGA Manager capable to program Lattice ECP5 with uncompressed bitstream > + image in .bit format over SPI. The same question as before - you need to explain what is the hardware (not Linux API or Linux subsystem). > + > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml > + > +properties: > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 60000000 > + > + compatible: > + enum: > + - lattice,ecp5-fpga-mgr Compatible goes first in the list of properties. Change here was not requested, so I am surprised to see different coding style. > + > + 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 that 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>; > + #size-cells = <0>; > + > + fpga-mgr@0 { > + compatible = "lattice,ecp5-fpga-mgr"; > + spi-max-frequency = <20000000>; > + reg = <0>; compatible then reg, then rest of properties. Best regards, Krzysztof