Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3247834imw; Mon, 18 Jul 2022 04:58:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vn0dHko9Xxa+HCxNsP1uRk/Cgxx2C4oH3c/c7j98da5bwv/kPO3q3JY5RuvT6WRkZO3tEM X-Received: by 2002:a05:6402:4255:b0:43a:c03f:1aa4 with SMTP id g21-20020a056402425500b0043ac03f1aa4mr37518573edb.146.1658145482182; Mon, 18 Jul 2022 04:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658145482; cv=none; d=google.com; s=arc-20160816; b=fgNaDBXgu5CI+rp6oio806te/IlRgyrglvNqiEM9kxlzLNeCwhs8SmG6jc9k71ikVT MPHKuP/bMydj5i/MDmY9Ph8sZE7GsW08Mg2ORugDb9uUtu7WAfidP6RSuW/5uPXnXMr9 9Vp6mMl+Xz1f3zQbDUTGVYmKhVf37pNd22t0kBeVSM1pl60P0rgw7ZqTUDiqjF3ERPnN 0r7GLuBa8r9SzPJFc+ZhS2be53n6KSW3aTwuUIy8k/TUjZc3WVGX86KgAKjqweWW7J+8 tV25hlYW9GnKn4JHmEJipwQtOc/DKhCY4/6nIV81jHzrx2w5EyEXIlnfFsxqLpPAL0Ta 3sFw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VUkkOSAXZacjBCzCeSrS20MXnMMiVIds1nXyUgQGuFA=; b=FtQO8+JGxhkh1au8eN5tvFH8AdbOgLdqfcFHwxcU30qGiE18RXZoRq/QGGclHESjcu ACha9hlCiEPF0xawkN2xaY3U2/mOp4MzQ9AGVBU3i+kv3hEIskNMATYqi2T1ttNnDRPj I7N2asPywEx5oLeDiNu8uF1n/Co1QcMpS1EF3Q2pTVqeE4O5jeirz/NpiXObUfqCa3wF zQmgmiVQ3ieNh+c/45OAmy7MaTPeJx8sURZZ0/rUp7v30ELLFxnVTcqZthPg7TX+XWwz 1ZnHQNMLS9pHVJV9nae4B0lL0RNoGt/5lxwGWdJpHdXLZGfsJxqY6BOlmJ/CGNFTOjxW 3YNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=C3KHlEpU; 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 iy24-20020a170907819800b0072f208cb339si4913357ejc.660.2022.07.18.04.57.37; Mon, 18 Jul 2022 04:58:02 -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=C3KHlEpU; 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 S234392AbiGRLuS (ORCPT + 99 others); Mon, 18 Jul 2022 07:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233428AbiGRLuO (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 356781AF32; 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; bh=Az4oavSHofRE1tjzEMn0br3sl3wRFVDML1JMzXfuTDA=; b=C3KHlEpUsVpUb/pQarZwAx8KwTF4fYNeet3f6nNr6FVV4tXjrsfR7YuLIiqKtZnIs7E/44hAcdAie OzAGd0YnDyFQFWpaT7wkL+yuV/1izlU6oytilUrf9OST6KdmNuuLdiHZ4fYyoYZvsRdsoUL+Ca5jp7 C0tJy0Hf4wa0ggLwfTouPFoZI8hycmxz9REM5qUoDdevY7sOKezsqvZOKJGF3TT4Qr9QHsXas4K87l IrHPA5H/ZxAzwCNDSmX1/tdFSldNhQ3StjV7RMt+aP5tnwP80g1Q+CaOzQk/XsuIblmya5C5afobF9 2KR/cjewR0WOka6i+kmJPi0AdVxSb+w== X-Kerio-Anti-Spam: Build: [Engines: 2.16.3.1424, Stamp: 3], Multi: [Enabled, t: (0.000008,0.005318)], BW: [Enabled, t: (0.000020,0.000001)], RTDA: [Enabled, t: (0.073412), Hit: No, Details: v2.40.0; Id: 15.52k50a.1g88i9ga0.357fm; 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:55 +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 0/2] Lattice ECP5 FPGA manager Date: Mon, 18 Jul 2022 14:49:26 +0300 Message-Id: <20220718114928.22092-1-i.bornyakov@metrotek.ru> X-Mailer: git-send-email 2.37.1 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 support to the FPGA manager for programming Lattice ECP5 FPGA over slave SPI interface with .bit formatted uncompressed bitstream image. ChangeLog: v1 -> v2: * remove "spi" from compatible string * reword description in dt-bindings doc * add reference to spi-peripheral-props.yaml in dt-binding doc * fix DTS example in dt-bindings doc: 4-spaces indentations, no undersores in node names. v2 -> v3: * fix typo "##size-cells" -> "#size-cells" in dt-bindings example Ivan Bornyakov (2): fpga: ecp5-spi: add Lattice ECP5 FPGA manager dt-bindings: fpga: add binding doc for ecp5-spi fpga mgr .../bindings/fpga/lattice,ecp5-fpga-mgr.yaml | 73 +++++ drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/ecp5-spi.c | 275 ++++++++++++++++++ 4 files changed, 356 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice,ecp5-fpga-mgr.yaml create mode 100644 drivers/fpga/ecp5-spi.c -- 2.37.1