Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4232794imw; Tue, 19 Jul 2022 02:33:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tlKgLaeQg4ZisGBZkUrHtFmccP153qNKN+OQdQdQDs603VB2WUjvLqr9yCbkLyfwoxbTeS X-Received: by 2002:a63:905:0:b0:415:fcde:2423 with SMTP id 5-20020a630905000000b00415fcde2423mr28931475pgj.374.1658223194572; Tue, 19 Jul 2022 02:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658223194; cv=none; d=google.com; s=arc-20160816; b=yC42oA5pDBEBignjHmq0ofHi+ysRVh3zbxvPabl3+czGgA/MswW9i6S8erc8FAIaVt wjfO2i3DAvtI8raJvz4xcqVzvE++ueSvVFppgG3F97zo33k61vy0S7htOVzUxpucjIIm WtJVE1i98qeKfss8T991F+JJyeUoP3iENhc+m7azqQv8cTQGffVsFbq1X/MNoqTiVQep xYuqK7I485mSBEaAM7UxxLUPG87acJDEBcKIY+WKH5TFAkZ6zpRPoeEI2QnEj917Fc6t uhOMDc4UP1EXBj+azhppr6V9rdP7Vlraq1s0xRhBKJXaLiabpfKalUXV5Qd4e9DmCD5d s+Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jtx2CUyKu3fdm/dOKNFAfEMsCyCzwS5jbW+FhW/fT7A=; b=pYRL1jnEwpRAF7eGirWWRq6gyNN4uNWxINvpQEoWwahoc8QVuv+zlll3CIAypvuSLK aMG8MsDdZ/v3OaMAywsTWAQrCLue3E7dg7kPz0ue02P/Npb9Wzoai+P4oU81lQaIw1nz yzcGYgGpXHjZMB6CZPb9Od8Yj888qns5e6QIez5ZLJeTM3/TTuhlP3Wv+2PKExb7R6nx klYiiOmxzIRKiOATHke9NAEsC8AuxWS/tfboOyfjjHKLa4wt1OGpE4avbPPDqjxPRKyX 1TLTea1N35UtyRCZjaBLY+xLRK8kI67Jo92+n701TIa3uag/x/fDxhH0iQPaxGXmn67w csew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=eXY+qxt6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a63e254000000b00413af3f972csi3570328pgj.264.2022.07.19.02.33.00; Tue, 19 Jul 2022 02:33: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=fail header.i=@metrotek.ru header.s=mail header.b=eXY+qxt6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237261AbiGSJ07 (ORCPT + 99 others); Tue, 19 Jul 2022 05:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237179AbiGSJ00 (ORCPT ); Tue, 19 Jul 2022 05:26:26 -0400 Received: from mail.pr-group.ru (mail.pr-group.ru [178.18.215.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96384205D1; Tue, 19 Jul 2022 02:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding: in-reply-to:references; bh=9lawGXSlctRioIAgWyzdnPUI+D9SXfpVriP3oerE2NY=; b=eXY+qxt6cVTLKLb6lgpSHn/Tze49zfYEczIGHgj3P6NaVuPe8ULYoOcz11eQF5AxkQw3coeiHFWJI 5gTQMLLT0R4eR0weOmX7GaxHgUabeh/+4ZUdwhBSvMaTSn+xjyC632fN5QD8l7RXY8RgvsiGuaqbkW Q7T2bDcrP/NecUUAH6Ae7trPPS0K8axMzpMh+PzVEEP7HSmxjVskg5DrKyiCnb64kgAlR4LMb8Jok+ XUKDlNpdmTHeXCUB9iDjX2zz9+onqDZrI1JbfI5zD9Y95XKWvs4IC7uyM6L1fbWB29p5LXi7U8zoJq MQX+CVk2sz7ccABy5tIGv0O3WsW78+g== X-Kerio-Anti-Spam: Build: [Engines: 2.16.3.1424, Stamp: 3], Multi: [Enabled, t: (0.000010,0.011320)], BW: [Enabled, t: (0.000020,0.000001)], RTDA: [Enabled, t: (0.113640), Hit: No, Details: v2.40.0; Id: 15.52k3pm.1g8asevbt.22i; mclb], total: 0(700) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: X-Footer: bWV0cm90ZWsucnU= Received: from h-e2.ddg ([85.143.252.66]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Tue, 19 Jul 2022 12:26:10 +0300 From: Ivan Bornyakov To: mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: Ivan Bornyakov , linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, system@metrotek.ru Subject: [PATCH v4 2/2] dt-bindings: fpga: add binding doc for ecp5-spi fpga mgr Date: Tue, 19 Jul 2022 12:25:39 +0300 Message-Id: <20220719092539.6748-3-i.bornyakov@metrotek.ru> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719092539.6748-1-i.bornyakov@metrotek.ru> References: <20220719092539.6748-1-i.bornyakov@metrotek.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 | 75 +++++++++++++++++++ 1 file changed, 75 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..7d2bd386b533 --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/lattice,ecp5-fpga-mgr.yaml @@ -0,0 +1,75 @@ +# 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: + Lattice ECP5 sysCONFIG port, which is used for device configuration, among + others, have Slave Serial Peripheral Interface. The driver is to program + Lattice ECP5 FPGA with uncompressed bitstream image in .bit format over SPI. + Only full reconfiguration is supported. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml + +properties: + compatible: + enum: + - lattice,ecp5-fpga-mgr + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 60000000 + + 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"; + reg = <0>; + spi-max-frequency = <20000000>; + program-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; + init-gpios = <&gpio3 3 GPIO_ACTIVE_LOW>; + done-gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>; + }; + }; -- 2.37.1