Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4147322imm; Mon, 17 Sep 2018 08:55:10 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdax0kWCG6SyFLneQan6V45Pi5CbriDk/ulFfD1adL/NOtD7/lnGOIMZaP4l5QHMsWETX0j+ X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr24921499plb.99.1537199710813; Mon, 17 Sep 2018 08:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537199710; cv=none; d=google.com; s=arc-20160816; b=WDw4FzwxSvtLyEZZpVrBuGI4iP45fvFHuqBoCBtFc3TMrPWXSqhpaeFI9vVIcC/3+a Gw+s8YjcOL9kOzpemDBukiqGn2X0upCxDDixtHYumkwOVLA1evh0YWwfJ8532zfkzhXG BLdkfMflgH7T8uxIeA8k5a346LAtoaT6DmgPf4p7zhNbthONJEme14cDpdfzR4haIh63 1INYlnrn6Aa8/fI8x2JMfehkQwFbr9YRdYdGKis58CreVRzfijhbaOZHD+I5fLBt8eAL JLduzdZba0/KO2rUetXTyL+9IUBAo8cdZU5nQ5Q+nQX4egnnoizhU6tGWiMbzCKWBKAT zcSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=gjWrA5LjMeTEnMiD0wspKSuHiXKeB9OpAOKJVCgZ7mY=; b=WusUZ+7Fc/PvTg07FGVxg/4G6d1qD9P5/Q7das/oE85uz0enjmoD+kpB5M7ErIDkfV cCR5bbATMibjlBvcW/vDXeom+93PltZIDkgM8CiPcwJekrvcF0rsMy9wYVXHLtHfwiqt ZBUJ6AFswWdhYHOF7usg7OG87TQPO+sQmBX716ooJwqKjaUr5vSwPYc8NXaBAKPxC+5u Fic0CwIjglqpM5l3laI2YLwKedQ4zXCpWjP5h/BjciQaZoasYScGFLYrVRAg+f7t7+89 NwWns+S+rOWkaEYSq6WeqZPiAmGJtyMeagYtDjVKR94G2siDtLRtjhBN9mwgyK286qrx ePww== 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 h5-v6si14146895pls.188.2018.09.17.08.54.55; Mon, 17 Sep 2018 08:55: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728486AbeIQVT0 (ORCPT + 99 others); Mon, 17 Sep 2018 17:19:26 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:61094 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727179AbeIQVT0 (ORCPT ); Mon, 17 Sep 2018 17:19:26 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w8HFmvo9018458; Mon, 17 Sep 2018 17:50:43 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2mgq75mc1k-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Sep 2018 17:50:43 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CDD644A; Mon, 17 Sep 2018 15:50:42 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9D72D51E3; Mon, 17 Sep 2018 15:50:42 +0000 (GMT) Received: from localhost (10.75.127.49) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 17 Sep 2018 17:50:42 +0200 From: To: , , , , , , , CC: , , , , Christophe Kerello Subject: [PATCH 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation Date: Mon, 17 Sep 2018 17:47:38 +0200 Message-ID: <1537199260-7280-2-git-send-email-christophe.kerello@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1537199260-7280-1-git-send-email-christophe.kerello@st.com> References: <1537199260-7280-1-git-send-email-christophe.kerello@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG5NODE2.st.com (10.75.127.14) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-17_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 90 ++++++++++++++++++++++ 1 file changed, 90 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..93eaf11 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt @@ -0,0 +1,90 @@ +STMicroelectronics Flexible Memory Controller 2 (FMC2) +NAND Interface + +Required properties: +- compatible: "st,stm32mp15-fmc2" +- reg: the first contains the register location and length + the second contains the data common space used for cs0 and length + the third contains the cmd attribute space used for cs0 and length + the fourth contains the addr attribute space used for cs0 and length + the fifth contains the data common space used for cs1 and length + the sixth contains the cmd attribute space used for cs1 and length + the seventh contains the addr attribute space used for cs1 and length +- 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 +- st,fmc2_timings: array of 8 bytes for NAND timings. The meanings of + these bytes are: + byte 0 TCLR : CLE to RE delay in number of AHB clock cycles, only 4 bits + are valid. Zero means one clock cycle, 15 means 16 clock + cycles. + byte 1 TAR : ALE to RE delay, 4 bits are valid. Same format as TCLR. + byte 2 THIZ : number of HCLK clock cycles during which the data bus is + kept in Hi-Z (tristate) after the start of a write access. + Only valid for write transactions. Zero means 1 cycle, + 255 means 256 cycles. + byte 3 TWAIT : number of HCLK clock cycles to assert the command to the + NAND flash in response to SMWAITn. Zero means 1 cycle, + 255 means 256 cycles. + byte 4 THOLD_MEM : common memory space timing + number of HCLK clock cycles to hold the address (and data + when writing) after the command deassertion. Zero means + 1 cycle, 255 means 256 cycles. + byte 5 TSET_MEM : common memory space timing + number of HCLK clock cycles to assert the address before + the command is asserted. Zero means 1 cycle, 255 means 256 + cycles. + byte 6 THOLD_ATT : attribute memory space timing + number of HCLK clock cycles to hold the address (and data + when writing) after the command deassertion. Zero means + 1 cycle, 255 means 256 cycles. + byte 7 TSET_ATT : attribute memory space timing + number of HCLK clock cycles to assert the address before + the command is asserted. Zero means 1 cycle, 255 means 256 + cycles. + +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: + + fmc2_nand: fmc2_nand@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 = <&fmc2_pins_a>; + #address-cells = <1>; + #size-cells = <0>; + + nand@0 { + reg = <0>; + nand-on-flash-bbt; + st,fmc2_timings = /bits/ 8 <2 2 1 7 1 0 104 25>; + #address-cells = <1>; + #size-cells = <1>; + }; + }; -- 1.9.1