Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1196746imm; Fri, 12 Oct 2018 13:33:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61OQDM6kQoGbfsy//jAXD/jAhkt8Lc26WVCYAz6ngBuyZjwbT5l3oi78gkxoaZjj0Zz3T0/ X-Received: by 2002:a62:75c7:: with SMTP id q190-v6mr7592396pfc.137.1539376390429; Fri, 12 Oct 2018 13:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539376390; cv=none; d=google.com; s=arc-20160816; b=oTCLaTr6b9KijQ5TXNNLJEUub+IvoPHAN01vYxSLJ1HUhySmDLn1SJZ2oi/FOJ/X8r Q2ENufOJmmRjJrE4sDB8z7sO+tbVXNKJkwHpIgTjA+oIOxM93WXYaP7njpDm3Vq/kMPb 31IKbTb0msK9IeLTi916wiVliFDMM459vVwm9B8Ihh/SjWKGZ+hQw7lv1+s4eZASmRUY zcekcitZOznAwJKBkqcUMDuwDSS8CxkCD7ssGkVJTERzaJwHkcLCpg/JnjTV6EUoNb90 0rK3nkcJ52/9HZtlUTd9+VoxH4CBeO51ipmleqQoDaVMkX4/jBQHFS3UhgfRWIs3zP/l Jy3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=P1bHwF+AFT8xNDZsYdwNSvT99/dNs63nIP1CdMQEhdM=; b=p4B2MDaArLUDLD79/e2N7fa/IimspXla5SJyVlUtnVSDcJnFltoDZvpWQlblP+NCNW ZaB0AE23RSnouo7nCrmwbNyKxXuxWGxXFrP1F59h689jhZz/o8WTvAobzIZyWSZon/iM Pbn0JWQfm18KwjKDEUWDGmGGW1EkiqaMNQYTiQ5V/CE64R1tYpU4wVT9M+xEDNfx+NXO 0FRzOXxI1hA/Z+H/9j9bKgGhwHRBKOXGjvG3jrmkbGLhYp0M+m0mjGkMaF3UqzwwQ5wY Tm0xXDWi9tflgCAr5I9uh56p9qh+P6G8P1Pf1EzZ4u0qoj53JA3S3Jm+JyttmlDZ0dH3 SWRA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bd2-v6si2135341plb.382.2018.10.12.13.32.54; Fri, 12 Oct 2018 13:33:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725978AbeJMEGq (ORCPT + 99 others); Sat, 13 Oct 2018 00:06:46 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45695 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbeJMEGp (ORCPT ); Sat, 13 Oct 2018 00:06:45 -0400 Received: by mail-ot1-f68.google.com with SMTP id u22so13526897ota.12; Fri, 12 Oct 2018 13:32:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P1bHwF+AFT8xNDZsYdwNSvT99/dNs63nIP1CdMQEhdM=; b=IwtDgWKjI3UrRHhQrDdsXml2Bf/gPIdwGMduSQcNPEmOZPK8d6fw6OaEIuS5fYLLW3 aP1kF3ZGDF94hItJZm2MTtxL2nKRh6r/umZ3MJ/HPzG15rxvt0vNmTnzy1DI4j0mc7dD w8m9EMwLJmGYxxJr92Q4nnSLbg8IA0CiDnKFgAfVkYgyti53Wbb+GJBT6PSEnh45uxfi s6wQ9UqUeAcM28g4WO+oUeBqqjaRgG4oQ+BTJTc8zQ6Rzv+Qf9zGgG42J4+sdiqbtTju Bb6D/wl69SW0qJngyfPbeUiQ9w+7qPgpbKVz7RrOrIXN2h0PHbdSiTa/Ka7pl1IkI4wv qtJg== X-Gm-Message-State: ABuFfojDe4O/34t+fPKNrTfTb8+FE6RGzkyid4io8zp0qGbGtviGgnzm /l5GYDbmCj6F2hihzBBhh8H4tss= X-Received: by 2002:a9d:5b6:: with SMTP id 51mr4614411otd.221.1539376351398; Fri, 12 Oct 2018 13:32:31 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 110sm670197otj.19.2018.10.12.13.32.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Oct 2018 13:32:30 -0700 (PDT) Date: Fri, 12 Oct 2018 15:32:29 -0500 From: Rob Herring To: christophe.kerello@st.com Cc: boris.brezillon@bootlin.com, miquel.raynal@bootlin.com, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, mark.rutland@arm.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH v2 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation Message-ID: <20181012203229.GA9657@bogus> References: <1538732520-2800-1-git-send-email-christophe.kerello@st.com> <1538732520-2800-2-git-send-email-christophe.kerello@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538732520-2800-2-git-send-email-christophe.kerello@st.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 11:41:58AM +0200, christophe.kerello@st.com 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. > +- interrupts: The interrupt number > +- pinctrl-0: Standard Pinctrl phandle (see: pinctrl/pinctrl-bindings.txt) > +- clocks: Use common clock framework How many? 'common clock framework' is a Linux thing, not part of bindings. > + > +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>; > + }; > + }; > -- > 1.9.1 >