Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3245982imw; Mon, 18 Jul 2022 04:55:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUyumYlSsA1hbTUGc0SiozKtf7mnVCByhGew10NRz0dq1KtUt55rwsFgwfoWMGvjny33P/ X-Received: by 2002:a05:6402:3492:b0:43a:d1f0:978e with SMTP id v18-20020a056402349200b0043ad1f0978emr36999040edc.306.1658145354031; Mon, 18 Jul 2022 04:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658145354; cv=none; d=google.com; s=arc-20160816; b=OEg3+1eEpbLjDPCvn4M+tFvKV2SSu0tZjRHcyBmovDWfn1ldkBcm7V6lGqiuyDWTfX 2ITOGSB0Kj+OrLxZU329IvgdabIEbaQbYCZAFu0QjkncmhsIe9XigCfdfKUSsRjlTQ7y cxLlHSWeXaESAr1OtYVrllNQoZcde68ljEUP2c+fmD5r5iTqF3frbE33V9+3+hoOibEW 6u5ZFaReLErDvDIHt2s8uxHfCOrFvcEfL8CSsSGvMHsp21jmX72H/pXafAtrwvOpsg6b l05r/rB73NmEmD13xJALflbLrBApu3HnRrZXx+T1rDHhx68lqs2s6/4s0g6Q8yEARRH4 eW9A== 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=YkIso2uLhJFLwDNTGTEo65rlD3JSTIfv1pAsh3CcNtU=; b=rayCbTyJUCBxlLetHDrxV2kMC6f8krCWMXwgBmslErUeiZRlG2bVWMyu+1S+j7f/7J mcvFts0QGjT+gcVNeWMpX/igvK/r7WJREWdKdPcmVsWXOwBqdDtXVf3lpXBAPZjcoulh pWKhyXIfoYod1ndiJvQlbzkLVdH49LtzJxlFNdAB1JlpB+n06+Xz/nGxhzr3tUbEzdOB qWZKtga38DgkNhw7GogLoM3WvJRrSWgaxtZf1bke8xRiqf/iVH2EY3mhvRmUIR+p7ZCs 2JoO+jWLCD2pLa5EFiYooRbtbf9K3OuyNas/Xlhid9z+VlF61KGDfMnAaoLUgRWYDAfD Xm6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=jThlrAxA; 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 he19-20020a1709073d9300b0072eda634546si20013391ejc.560.2022.07.18.04.55.29; Mon, 18 Jul 2022 04:55:54 -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=jThlrAxA; 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 S234543AbiGRLuQ (ORCPT + 99 others); Mon, 18 Jul 2022 07:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233990AbiGRLuO (ORCPT ); Mon, 18 Jul 2022 07:50:14 -0400 Received: from mail.pr-group.ru (mail.pr-group.ru [178.18.215.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F53F193EB; Mon, 18 Jul 2022 04:50:09 -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=6PLhnSCVS/0Hp1d4l6TlOyBGg/E0V6oM0LNabEHe2X8=; b=jThlrAxAbFmIWfmP0oGThJeVUwCaYGksDyNluumcdxPqezX2agAYkOr1qgnkbr90wfwYmnFyvfebm 8oTVqXhcz2adVKcnpzpZlMD6MzvFB+MBXzG6+vEIC5RkHf6fD8In3Cc6hBGs/tjPMU5mVY550oTCKr 73PbQYVe9RTy3zvv8fmAsXygON6QJofXwtkf+I7uovlpP+he5eVa/r3Kwcgf+d1pre9n2M23RtEr3r I5gOeVK9Z7F7iWGj8wF6IwPE+eefquunuTN6B3V07lLtcwARlNhqW8O0BuR3tUsBWvDGUi67zS8xDR kwaFmtDjtRf8OmzxX9aNGQTW2jwEtvw== X-Kerio-Anti-Spam: Build: [Engines: 2.16.3.1424, Stamp: 3], Multi: [Enabled, t: (0.000008,0.010833)], BW: [Enabled, t: (0.000019,0.000001)], RTDA: [Enabled, t: (0.151769), Hit: No, Details: v2.40.0; Id: 15.52k488.1g88i9g99.38vcp; 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)); Mon, 18 Jul 2022 14:49:57 +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 v3 2/2] dt-bindings: fpga: add binding doc for ecp5-spi fpga mgr Date: Mon, 18 Jul 2022 14:49:28 +0300 Message-Id: <20220718114928.22092-3-i.bornyakov@metrotek.ru> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220718114928.22092-1-i.bornyakov@metrotek.ru> References: <20220718114928.22092-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 | 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. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml + +properties: + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 60000000 + + compatible: + enum: + - lattice,ecp5-fpga-mgr + + 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>; + program-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; + init-gpios = <&gpio3 3 GPIO_ACTIVE_LOW>; + done-gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>; + }; + }; -- 2.37.1