Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp308037ybb; Thu, 28 Mar 2019 03:01:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHqRjlt/5CQ5x+UYYefQsnjGXBvIhBP9WZW3oAzz6JHwxhb1PsTEZFl+I3Q8gTXVNqEJLx X-Received: by 2002:a17:902:2e03:: with SMTP id q3mr41314667plb.166.1553767309950; Thu, 28 Mar 2019 03:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553767309; cv=none; d=google.com; s=arc-20160816; b=vJEwvZe+RiZ2ljLwGiq+LkAX49bxs6A4E6WrbbTO+MsoPmuMApFNjXFjjUcsA09yvN SdF0RQ+8IEVKn92gkaFFbAPs/HMzOuoHxCYTVqwrOAzqtd5qqIuhGwnosBePQcKUmzpl KhRQGwsv1/u8N6VSBy+Sb7Z7JlELlW+/8gNoDgawDAe3wJGCNuPxolGhhkl6ZIV3ZwUC +Uyl9kgAt19O8P8BseAr62dzapnXis87TDI2re4XtQZLTQ+GsAYCMv7om3Hy3929VReO YW1W+P7tgqa4I2UWzoJnGyUe1aF2BOrakMD9WUz/tsnWbbOIm3PPJANSkBp5sbjCotoj ML/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=4jlHPGw5dyWf71mAnH7DZfWVbl+KEOqm5x6RwPDULZE=; b=SmGFZJLGrbPQXYwjcwlFOo8IuBtzsSbsL/pAMbuXuOp3n08OxPt8vvaf6wVIOEaG5x 3MLTYfY+i4bFe7dNCpDBQtehr44ne0T9UBy0Oj+tODvteMAMuN6ewhBDTDpri/E0qrQi zWiIWQ2CxcOdT/exC7wCL3lJcPRuuo08vHaosA7vyJIOmi+ei6gsrdV/Mrs1PbcPnwf2 qpNQOWyCee/tSSRkJqsGoo/yWZqYmTWkhfTt6xAY2bhhL0aNQnXzVGeUZNnJmmw+n621 RA7TAWR99h24Fdi+b6PZnWfn7ljyRujzsx7yYQoySvWJ1YufzQJkcIVmM8PXL4gmiD4x Bbvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si22578931plb.396.2019.03.28.03.01.34; Thu, 28 Mar 2019 03:01:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727217AbfC1KAu (ORCPT + 99 others); Thu, 28 Mar 2019 06:00:50 -0400 Received: from twhmllg3.macronix.com ([122.147.135.201]:50838 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbfC1KAl (ORCPT ); Thu, 28 Mar 2019 06:00:41 -0400 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id x2S9wlJJ052359; Thu, 28 Mar 2019 17:58:47 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: broonie@kernel.org, marek.vasut@gmail.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, bbrezillon@kernel.org, dwmw2@infradead.org, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, computersforpeace@gmal.com, paul.burton@mips.com, stefan@agner.ch, christophe.kerello@st.com, liang.yang@amlogic.com, geert@linux-m68k.org, devicetree@vger.kernel.org, marcel.ziswiler@toradex.com, linux-mtd@lists.infradead.org, richard@nod.at, miquel.raynal@bootlin.com Cc: juliensu@mxic.com.tw, zhengxunli@mxic.com.tw, Mason Yang Subject: [PATCH 0/7] Add Macronix MX25F0A MFD driver and NAND function Date: Thu, 28 Mar 2019 18:18:31 +0800 Message-Id: <1553768318-23149-1-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 X-MAIL: TWHMLLG3.macronix.com x2S9wlJJ052359 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, These patches support 1. Add Macronix MX25F0A MFD driver for SPI and raw NAND controller. 2. Add direct mapping read mode for SPI host controller. 3. Macronix NAND device read retry and randomizer function. 4. Macronix NAND device block protection function. thanks for your review. best regards, Mason Mason Yang (7): mfd: Add Macronix MX25F0A MFD controller driver mtd: rawnand: Add Macronix MX25F0A NAND controller driver spi: Patch Macronix MX25F0A SPI controller driver dt-bindings: mfd: Document Macronix MX25F0A controller bindings spi: Add direct mapping mode for Macronix SPI controller mtd: rawnand: Add Macronix NAND read retry and randomizer support mtd: rawnand: Add Macronix NAND block protection driver .../devicetree/bindings/mfd/mxic-mx25f0a.txt | 66 +++++ drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile | 1 + drivers/mfd/mxic-mx25f0a.c | 90 ++++++ drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/mxic_nand.c | 306 +++++++++++++++++++++ drivers/mtd/nand/raw/nand_macronix.c | 216 +++++++++++++++ drivers/spi/spi-mxic.c | 288 +++++++------------ include/linux/mfd/mxic-mx25f0a.h | 176 ++++++++++++ 10 files changed, 974 insertions(+), 185 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/mxic-mx25f0a.txt create mode 100644 drivers/mfd/mxic-mx25f0a.c create mode 100644 drivers/mtd/nand/raw/mxic_nand.c create mode 100644 include/linux/mfd/mxic-mx25f0a.h -- 1.9.1