From patchwork Mon May 9 12:27:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12843469 X-Patchwork-Delegate: geert@linux-m68k.org 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 89C52C433FE for ; Mon, 9 May 2022 12:28:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234436AbiEIMb7 (ORCPT ); Mon, 9 May 2022 08:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234543AbiEIMb4 (ORCPT ); Mon, 9 May 2022 08:31:56 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5B717E144 for ; Mon, 9 May 2022 05:28:00 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:8886:2b92:63eb:2922]) by albert.telenet-ops.be with bizsmtp id UcTv270070moLbn06cTv0Z; Mon, 09 May 2022 14:27:58 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1no2UU-003XSj-Ik; Mon, 09 May 2022 14:27:54 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1no2UU-003Ba7-0r; Mon, 09 May 2022 14:27:54 +0200 From: Geert Uytterhoeven To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski Cc: Yoshihiro Shimoda , Wolfram Sang , Bastian Hecht , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC] dt-bindings: mtd: Remove Renesas FLCTL NAND controller support Date: Mon, 9 May 2022 14:27:52 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The DT bindings for the Renesas FLCTL NAND controller document only support a single SoC, namely the Renesas R-Mobile AP4 (SH7372). Linux dropped support for this SoC in commit 59b89af1d5551c12 ("ARM: shmobile: sh7372: Remove Legacy C SoC code") in v4.1. Signed-off-by: Geert Uytterhoeven --- The FLCTL NAND controller (or an enhanced version) is also present on SH-Mobile AG5 (sh73a0) and R-Mobile A1 (r8a7740), but the sole boards supported upstream (KMC KZM-A9-GT resp. Atmark Techno Armadillo-800-EVA) use eMMC NAND instead of raw NAND FLASH. What's the policy w.r.t. stale DT bindings? Should it be converted to json-schema instead? drivers/mtd/nand/raw/sh_flctl.c still implements these bindings. The driver cannot be removed, as it is also used on the non-DT SH7723-based AP-325RXA platform. --- .../devicetree/bindings/mtd/flctl-nand.txt | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/flctl-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/flctl-nand.txt b/Documentation/devicetree/bindings/mtd/flctl-nand.txt deleted file mode 100644 index 427f46dc60add134..0000000000000000 --- a/Documentation/devicetree/bindings/mtd/flctl-nand.txt +++ /dev/null @@ -1,49 +0,0 @@ -FLCTL NAND controller - -Required properties: -- compatible : "renesas,shmobile-flctl-sh7372" -- reg : Address range of the FLCTL -- interrupts : flste IRQ number -- nand-bus-width : bus width to NAND chip - -Optional properties: -- dmas: DMA specifier(s) -- dma-names: name for each DMA specifier. Valid names are - "data_tx", "data_rx", "ecc_tx", "ecc_rx" - -The DMA fields are not used yet in the driver but are listed here for -completing the bindings. - -The device tree may optionally contain sub-nodes describing partitions of the -address space. See partition.txt for more detail. - -Example: - - flctl@e6a30000 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "renesas,shmobile-flctl-sh7372"; - reg = <0xe6a30000 0x100>; - interrupts = <0x0d80>; - - nand-bus-width = <16>; - - dmas = <&dmac 1 /* data_tx */ - &dmac 2;> /* data_rx */ - dma-names = "data_tx", "data_rx"; - - system@0 { - label = "system"; - reg = <0x0 0x8000000>; - }; - - userdata@8000000 { - label = "userdata"; - reg = <0x8000000 0x10000000>; - }; - - cache@18000000 { - label = "cache"; - reg = <0x18000000 0x8000000>; - }; - };