From patchwork Fri Jul 22 16:48:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 12926618 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13EF9C43334 for ; Fri, 22 Jul 2022 16:48:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235829AbiGVQs4 (ORCPT ); Fri, 22 Jul 2022 12:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiGVQsz (ORCPT ); Fri, 22 Jul 2022 12:48:55 -0400 Received: from out28-148.mail.aliyun.com (out28-148.mail.aliyun.com [115.124.28.148]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29C993C0E; Fri, 22 Jul 2022 09:48:52 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.2783662|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.00548407-0.00159274-0.992923;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047201;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=23;RT=23;SR=0;TI=SMTPD_---.Ob0cn8C_1658508518; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.Ob0cn8C_1658508518) by smtp.aliyun-inc.com; Sat, 23 Jul 2022 00:48:47 +0800 From: =?utf-8?b?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= To: tudor.ambarus@microchip.com, p.yadav@ti.com, michael@walle.cc, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, aidanmacdonald.0x0@gmail.com, tmn505@gmail.com, paul@crapouillou.net, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, jinghui.liu@ingenic.com, sernia.zhou@foxmail.com, reimu@sudomaker.com Subject: [PATCH 0/3] Add SFC support for Ingenic SoCs. Date: Sat, 23 Jul 2022 00:48:27 +0800 Message-Id: <1658508510-15400-1-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load. 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic. Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver. 周琰杰 (Zhou Yanjie) (3): mtd: spi-nor: Use the spi-mem poll status APIs. dt-bindings: SPI: Add Ingenic SFC bindings. SPI: Ingenic: Add SFC support for Ingenic SoCs. .../devicetree/bindings/spi/ingenic,sfc.yaml | 64 ++ drivers/mtd/spi-nor/core.c | 42 +- drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-ingenic-sfc.c | 662 +++++++++++++++++++++ 5 files changed, 768 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml create mode 100755 drivers/spi/spi-ingenic-sfc.c Tested-by: Tomasz Maciej Nowak