Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4232779imw; Tue, 19 Jul 2022 02:33:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vijqTvWznC6FAFthbdWci1LfdgyKaxcHzpEhLD5dCM279+2pr6tCKBY5Iiq8CWi5BQE4b1 X-Received: by 2002:a63:4a0b:0:b0:40d:d4c1:131f with SMTP id x11-20020a634a0b000000b0040dd4c1131fmr27365762pga.242.1658223193195; Tue, 19 Jul 2022 02:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658223193; cv=none; d=google.com; s=arc-20160816; b=d4vH7YjhSLcRESc3fa/NcVnaDEG/Txb6d+DmHV5r+ebu14We3Bb+7PDoEECi0gaOOy nVr0fGb4R3EFXwlzVGpFcRtpEHFqoKbWTccv+Bdu47gTZyD+PcwxTkUWQAYpXcmMYNvU b4qzcsxcKPLklT21HSHiznLpETxaaJhO43McMgUdssUD0gQFpo2NMo9deyO4uY0CmPA+ MSvNUqRSPwGyex5rAscVbKIHUXEcFM/IcWqMNCyT2BP58/22GsB1HhNwYRJkRFOCur8U 7Q7Oi2q5UGHg3BTuClX4ddNqfhrWsv3z++Hh5kSlZHLnzsK9wPyVThA5r7U49l6ZcPuV +k0g== 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=Af+wVDBTgsPQlke/aJNIQZIJA5dJVMOU2XnjoxYA310=; b=fEGMEiq/iMMkpdB1qc8OWxkwJVGRt+6IodCUz7jWaVI589sbkBdNufe/tq5kwAnODH iKYAilaHuo/IgqY4zk1HDEAsW6aJECKQAHG0GNfNeYIUNLWsz9w5+KjM2CHJraYuQ+Ml X08Q06DxzXex6PDraE8u02GYard5QsyJCppZ3PIgfwJKu8ayMuXPq1zHzy8vbsKGgV9S skNJrfCizesU0Igvi1zvK1th97TMmjMlcitde4d5mHfLHXa9Zb9JfttsW3bzGrNM+1IS fBO/4rfGVNRMXpKq3CKSSnMskllkOM1UI6POeC7nk76yTUWGWVPuvrxNdxcPlWECVPQJ BW1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=OC8csUcj; 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 d13-20020aa7814d000000b00528d3de8c76si17087307pfn.63.2022.07.19.02.32.58; Tue, 19 Jul 2022 02:33:13 -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=OC8csUcj; 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 S237252AbiGSJ04 (ORCPT + 99 others); Tue, 19 Jul 2022 05:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235924AbiGSJ00 (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 96C4B205F0; 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; bh=HjArIFUMElFnZpuy5xrA0s3oMM3zvqLR8XxtmEJmSDY=; b=OC8csUcju5yCZ2T/ErMqELNGjdLRU4O3P0JH2nGx5VJ3ZejF6sAsTQm5IopFtyLOB64VW+rchEOPO jvHWM5ya4e6H2R+yQu+zhxteZM1renubx7yB/wsKkVjJ9+iAidJ5IkO0i8tI4AkOThEetHlugrk/0z DKmO0J2QMjOMjzSh4dFVs4aSmBW0aleoxeWXaYORdnBVYAAzOM7YkyzzY3EHUeDrceWHOrUTDpyDOx 33wy+JgguDh9zKNcLKnalDGU+tDDMg6g8bwk/LVOgfUEGPlMjYBWC7YgDabT9zh/Cu+DXQ2VdXr5wi ncdSgcbxVrKPrKOXD0rE4533T30A1UA== X-Kerio-Anti-Spam: Build: [Engines: 2.16.3.1424, Stamp: 3], Multi: [Enabled, t: (0.000008,0.005642)], BW: [Enabled, t: (0.000013,0.000001)], RTDA: [Enabled, t: (0.073759), Hit: No, Details: v2.40.0; Id: 15.52k9pv.1g8asetbo.1fj1f; 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:08 +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 0/2] Lattice ECP5 FPGA manager Date: Tue, 19 Jul 2022 12:25:37 +0300 Message-Id: <20220719092539.6748-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 v3 -> v4: * dt-bindings: reword description * dt-bindings: revert props order 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 | 75 +++++ drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile | 1 + drivers/fpga/ecp5-spi.c | 275 ++++++++++++++++++ 4 files changed, 358 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice,ecp5-fpga-mgr.yaml create mode 100644 drivers/fpga/ecp5-spi.c -- 2.37.1