From patchwork Fri Nov 26 14:06:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 12693755 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E725CC433EF for ; Fri, 26 Nov 2021 14:08:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Hh6+NdtbeKuVAq3JyJcRDNwjQC6vumc0dftBUcUOEgk=; b=ktgM3waPPkGngt YZIfYFaNe5dhUDw7/sXr08OdymGhJFUGcwPLz4QcQ1YhY/ReyRGIsq0QxAAzN/Wq41KzsXy5qzTQM f0DUMCDknEDPl65jpaFlANlWF+iYrM7BYp+U164FQBYwWrbH4GEts6Fh9a+3/j/msiqk3UUKRlxSJ PP7AVQspgyaWSrYlZf7AUaYZD4T+4m+4WLjWaK5qurIiUEi5a+rOzWvODUpUmtR0KIp3GMPq4E71y abAKOk0TaDttxE6MdtKBxDjyy2g4wc4SlzZwwogHg0KJnDdP7iebdCsXLoyCyxxtcodYWP8FzScUR Yb8cobPTxfo0ROnCrczg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqbs8-00AgKc-KK; Fri, 26 Nov 2021 14:06:40 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqbs4-00AgJL-RG; Fri, 26 Nov 2021 14:06:38 +0000 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id D1080FF804; Fri, 26 Nov 2021 14:06:25 +0000 (UTC) From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , Cc: Geert Uytterhoeven , Jimmy Lalande , Milan Stevanovic , Linux-Renesas , Magnus Damm , Gareth Williams , Phil Edworthy , Thomas Petazzoni , , Miquel Raynal Subject: [PATCH v2 0/3] Renesas RZ/N1 NAND controller support Date: Fri, 26 Nov 2021 15:06:22 +0100 Message-Id: <20211126140625.351697-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_060637_049018_BA9ADD6B X-CRM114-Status: GOOD ( 13.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, Here is a short series bringing support for Renesas RZ/N1 NAND controller. So far this driver has been tested with a not-fully-upstream device tree because clock tree is not yet described entirely, I am going to work on it really soon but I believe we don't need full clock support to get the NAND controller driver merged for now. Cheers, Miquèl Changes in v2: * Added the family-specific rzn1 compatible as suggested by Geert. Updated the bindings, the binding file name, the compatible used in the driver, the MAINTAINERS entry, etc. * Added an ARCH_RENESAS Kconfig dependency. * Changed the type (to unsigned) of a couple of variables. * Returned earlier when possible to reduce indentation. * Used platform_get_irq_optional() instead of platform_get_irq() to avoid a useless warning. * Handled probe deferral correctly. * Applied a massive s/nfc/nandc/ as suggested by Geert to avoid confusions with the near-field-communication device. * Mentioned Evatronix as original authors of the IP in the commit log and in the header. * Added an additional check on the validity of the child nodes reg property. * A couple of style fixes. Miquel Raynal (3): dt-bindings: mtd: rzn1: Describe Renesas RZ/N1 NAND controller mtd: rawnand: rzn1: Add new NAND controller driver MAINTAINERS: Add an entry for Renesas RZ/N1 NAND controller .../mtd/renesas,rzn1-nand-controller.yaml | 64 + MAINTAINERS | 7 + drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/rzn1-nand-controller.c | 1420 +++++++++++++++++ 5 files changed, 1498 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/renesas,rzn1-nand-controller.yaml create mode 100644 drivers/mtd/nand/raw/rzn1-nand-controller.c