Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp230581imm; Fri, 5 Oct 2018 02:54:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV61+lHTxllAJpj4VxIYsJKiya2TOqkbeCEyFck3h1t1Q3tTmg5CFXtspsiMosDMhTGNB/4ys X-Received: by 2002:a17:902:6184:: with SMTP id u4-v6mr10554711plj.121.1538733260663; Fri, 05 Oct 2018 02:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538733260; cv=none; d=google.com; s=arc-20160816; b=MJRYoL+uscQ4ophPUYQs+mQqnqCAxwyYmAJNZ1IV61JT7afPxQRndRtP0cDNowHFyW vYa6Hsu1a8sRz6/ecKpi6ecbIyMYAM/qyzb9Shy7WXGzT56dFbxl5SlqumZ9Qt27x67E qEhlJyk0RwPw80QY58USfgO4sTUaynkOI9o0V4xm3ANat5APjofcwJkTctFU9p1+hDXY jok0pu98VEbEfGIeWKnCYXxJopE3t9QlC6aY87WYNbKzMYW5EwHxGlkqojzUq8UjLq8p R0eGLvWteuwvBhWXZKH1GT/HtkFcfvw0RLpT1c2W8zM04IcbFnzi2rwopXD374oE/d66 CRbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=RZ1L0TORMMh9wF36ooYKnDY23S+R8vVc+0Nv67D6Gd8=; b=eTdsad0hryqq5TpLTBUvZHCfBoxEqfvAex+B27WO1zOGwJ7fTCozZI1sEcXWmzows5 GvibgogQVNmh6dFrUOkt5OmfEs0tSjkBj0Zto+n54HhM9BTcGyy6gxJJtXdYvcscFXsH 5u9jWNXRcHotPcauuxTfPOE4ONt6mOCS3DeGoVDSm3M2FyaIrCNWOLojdxJ7OJNGMYYs 6pJXGktTQ6XkU5nzzahzrlXGtfRDRl7Ny+/0IBURDuzqN7EUq9NDFV0SfwcqVYPNCBqr 8tzMTWlqfwPdS+fg5/p+ePrjAvy7JXlO4gkch3UJrjikAsk8+xxDvDdB8AhAeCFZIRMA JS8Q== 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 b9-v6si7904440plr.267.2018.10.05.02.54.04; Fri, 05 Oct 2018 02:54:20 -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 S1727813AbeJEQvy (ORCPT + 99 others); Fri, 5 Oct 2018 12:51:54 -0400 Received: from mail.bootlin.com ([62.4.15.54]:38139 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727535AbeJEQvy (ORCPT ); Fri, 5 Oct 2018 12:51:54 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6FC492074F; Fri, 5 Oct 2018 11:53:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id F3677206A1; Fri, 5 Oct 2018 11:53:49 +0200 (CEST) Date: Fri, 5 Oct 2018 11:53:50 +0200 From: Boris Brezillon To: Cc: , , , , , , , , , , Subject: Re: [PATCH v2 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation Message-ID: <20181005115350.64d640eb@bbrezillon> In-Reply-To: <1538732520-2800-2-git-send-email-christophe.kerello@st.com> References: <1538732520-2800-1-git-send-email-christophe.kerello@st.com> <1538732520-2800-2-git-send-email-christophe.kerello@st.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Oct 2018 11:41:58 +0200 wrote: > From: Christophe Kerello > > This patch adds the documentation of the device tree bindings for the STM32 > FMC2 NAND controller. > > Signed-off-by: Christophe Kerello > --- > .../devicetree/bindings/mtd/stm32-fmc2-nand.txt | 59 ++++++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt > > diff --git a/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt > new file mode 100644 > index 0000000..b620176 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt > @@ -0,0 +1,59 @@ > +STMicroelectronics Flexible Memory Controller 2 (FMC2) > +NAND Interface > + > +Required properties: > +- compatible: Should be one of: > + * st,stm32mp15-fmc2 > +- reg: NAND flash controller memory areas. > + First region contains the register location. > + Regions 2 to 4 respectively contain the data, command, > + and address space for CS0. > + Regions 5 to 7 contain the same areas for CS1. Maybe you could use reg-names here ("nfc", "csX-data", "csX-cmd", "csX-addr"). Anyway, even without this Reviewed-by: Boris Brezillon > +- interrupts: The interrupt number > +- pinctrl-0: Standard Pinctrl phandle (see: pinctrl/pinctrl-bindings.txt) > +- clocks: Use common clock framework > + > +Optional properties: > +- resets: Reference to a reset controller asserting the FMC controller > +- dmas: DMA specifiers (see: dma/stm32-mdma.txt) > +- dma-names: Must be "tx", "rx" and "ecc" > + > +Optional children nodes: > +Children nodes represent the available NAND chips. > + > +Optional properties: > +- nand-on-flash-bbt: see nand.txt > +- nand-ecc-strength: see nand.txt > +- nand-ecc-step-size: see nand.txt > + > +The following ECC strength and step size are currently supported: > + - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Hamming) > + - nand-ecc-strength = <4>, nand-ecc-step-size = <512> (BCH4) > + - nand-ecc-strength = <8>, nand-ecc-step-size = <512> (BCH8) (default) > + > +Example: > + > + fmc: nand-controller@58002000 { > + compatible = "st,stm32mp15-fmc2"; > + reg = <0x58002000 0x1000>, > + <0x80000000 0x1000>, > + <0x88010000 0x1000>, > + <0x88020000 0x1000>, > + <0x81000000 0x1000>, > + <0x89010000 0x1000>, > + <0x89020000 0x1000>; > + interrupts = ; > + clocks = <&rcc FMC_K>; > + resets = <&rcc FMC_R>; > + pinctrl-names = "default"; > + pinctrl-0 = <&fmc_pins_a>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + nand@0 { > + reg = <0>; > + nand-on-flash-bbt; > + #address-cells = <1>; > + #size-cells = <1>; > + }; > + };