From patchwork Thu Jun 10 08:20: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: 12312213 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB1F9C48BD1 for ; Thu, 10 Jun 2021 08:23:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AC8006140F for ; Thu, 10 Jun 2021 08:23:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC8006140F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=QUAZjAq+F3UnQ0MgbQhkbuzrdN/8ZayIQYnzwv1CzjY=; b=JcG5pYBxSwY7UT QV4Ad9UxeMlCISWR/uou7VUlXdOnGOvnJBYaGIscrihR9heOf9rDmvgRiXJaUDuqoyIZJxHXaRv+b 3y14RhW9j89/whH2FnIHyswCQmSunQN96BhpFZYtqrq/nzpMgzPXNDOXT9zv5HcddOYqoIEDeuSxq jutwqU0AKVZsI1CAanC0U0sTsCFNyyBaxaBkoCH2LuU7bTG72aBPMolOVAmqMMMyWIkOWeBesJmfp P/NWv8U1RjtK8l+QM8WMmCtrMT8BxNCcEQnDJSUnBeGnw69ZoTBpVewhgXis7mo/h9fASvSI+3heQ T5cLZ28kVLaOhjDDyxrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrFw1-00HS2Z-67; Thu, 10 Jun 2021 08:21:05 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrFvl-00HRvQ-1o; Thu, 10 Jun 2021 08:20:51 +0000 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id C976720008; Thu, 10 Jun 2021 08:20:40 +0000 (UTC) From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , , Rob Herring , , Krzysztof Kozlowski Cc: Michal Simek , Naga Sureshkumar Relli , Amit Kumar Mahapatra , Thomas Petazzoni , , , helmut.grohne@intenta.de, Srinivas Goud , Siva Durga Prasad Paladugu , Miquel Raynal Subject: [PATCH v23 00/18] ARM Primecell PL35x support Date: Thu, 10 Jun 2021 10:20:22 +0200 Message-Id: <20210610082040.2075611-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-20210610_012049_384043_59012B15 X-CRM114-Status: GOOD ( 10.59 ) 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, I am taking over Naga's series, here are the major changes: * Cleaning of the SMC bus binding file (and yaml conversion) * Superficial cleaning and great simplification of the SMC bus driver * Addition of a yaml file describing the NAND controller * Full rework of the NAND controller driver. JFFS2 and UBIFS not tested yet, only bare test tools have been used to proove basic correctness of the helpers. * Addition of a couple of MAINTAINERS entries. A Github branch named pl353 is available on my repository: https://github.com/miquelraynal/linux/ Thanks, Miquèl Changes in v23: - Collected Naga Acked-by's. - Used const instead of single enum entries in the bindings. - Dropped the address-cells/size-cells superfluous definitions out of the NAND controller binding. - Enhanced the SMC reg property description to mention that the various CS are described in the ranges property. - Fixed the SMC child nodes regex to match Rob's requirements. Changes in v22: - Misc typo fixes. - Light rewording of a few commit titles. - Not forgetting to Cc: Rob and Krzysztof this time... Changes in v21: - Added Rob's Acked-by/Reviewed-by tags. - Addressed all comments from Rob and Michael about the bindings. - Tested both JFFS2 and UBIFS with simple file I/O. Miquel Raynal (18): dt-binding: memory: pl353-smc: Rephrase the binding dt-binding: memory: pl353-smc: Document the range property dt-binding: memory: pl353-smc: Drop the partitioning section dt-binding: memory: pl353-smc: Describe the child reg property dt-binding: memory: pl353-smc: Fix the example syntax and style dt-binding: memory: pl353-smc: Drop unsupported nodes from the example dt-binding: memory: pl353-smc: Fix the NAND controller node in the example dt-binding: memory: pl353-smc: Enhance the description of the reg property dt-binding: memory: pl353-smc: Convert to yaml memory: pl353-smc: Fix style memory: pl353-smc: Rename goto labels memory: pl353-smc: Let lower level controller drivers handle inits memory: pl353-smc: Avoid useless acronyms in descriptions memory: pl353-smc: Declare variables following a reverse christmas tree order MAINTAINERS: Add PL353 SMC entry MAINTAINERS: Add PL353 NAND controller entry dt-bindings: mtd: pl353-nand: Describe this hardware controller mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller .../memory-controllers/arm,pl353-smc.yaml | 131 ++ .../bindings/memory-controllers/pl353-smc.txt | 47 - .../bindings/mtd/arm,pl353-nand-r2p1.yaml | 53 + MAINTAINERS | 16 + drivers/memory/pl353-smc.c | 314 +---- drivers/mtd/nand/raw/Kconfig | 8 + drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/pl35x-nand-controller.c | 1194 +++++++++++++++++ include/linux/pl353-smc.h | 30 - 9 files changed, 1413 insertions(+), 381 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/arm,pl353-smc.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/pl353-smc.txt create mode 100644 Documentation/devicetree/bindings/mtd/arm,pl353-nand-r2p1.yaml create mode 100644 drivers/mtd/nand/raw/pl35x-nand-controller.c delete mode 100644 include/linux/pl353-smc.h