Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1873412imu; Fri, 14 Dec 2018 02:00:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wjl4Wfd1XFcMhY9Qs5TZIJReDe5ohZ9Es0Lm4NoJwWIzHL0J9GZF3hdfZtCWgFdX4WLVml X-Received: by 2002:a63:fb4c:: with SMTP id w12mr1658095pgj.321.1544781617280; Fri, 14 Dec 2018 02:00:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544781617; cv=none; d=google.com; s=arc-20160816; b=lHL5QKn/4EbD7NX6ntMGIBpS093s9GUDw6PSnhRHfDTmozYKhK8Nbr0nnDIwiAIGjy u9wE30UFVLoDunyJtaOdDUw7AgEPczXkQzfM3ig7onB8L6/mM9jdFNhVTsspRqWaul4q iH87O2n70ZnpplcwIBzEWxB1bV4wDFYUhu5yCJr08s+YSuPMqYGt20D5zcmhFe2Tp3PT xMgLnGUtqF+2f6dZptAOwlcOdcOYJwQ9iHUfR18rIi0eKvIZ2ubkAUVnUZogCBDWFpNY TeMKEP/k+y+xAtaEWMfCok+BAXvJlLyoCd3Hr9bVZRy/950frZ5QRbSv0aQAes25TEbZ 8bKQ== 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=cztUN1UdDJ6xVuz0BjgB9lhN88vOLHvXBYARijW40KI=; b=QGsaVNsm1A9W/1wPN9OOofLbwr32zWvTclWsVYHpguCsuu3WKQiLjwpQLZUHEq1ZFA 3R0Mp2jMB2ViWWirhgmg8ShiNvx5qXhp+jq7h7wS0ViMZCT++Bw166eIZcfO8beW1MQ/ IF+e5WPVOjNNQ+B6hBZT8dO1kq1TI+fEJe26pJfDtint26Padl2DcVt5RHIs/AsV/pgq UCwbtL+ifl6coJxkIPBsCKOTbe+cXWP1XIfBKmIUHF3Zl+jkkRFKtqHgIwCPFPho+Gqd ma7LxbCdZQFtveeG3VkV81J2jssmDAMgSXIXJk5xNhtvcJ6s3GhopuAN18ORUDkOLY5J eueg== 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 y29si3803015pgk.376.2018.12.14.02.00.01; Fri, 14 Dec 2018 02:00:17 -0800 (PST) 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 S1729141AbeLNJ7J (ORCPT + 99 others); Fri, 14 Dec 2018 04:59:09 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:42895 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728269AbeLNJ7I (ORCPT ); Fri, 14 Dec 2018 04:59:08 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBE9v00f012188; Fri, 14 Dec 2018 10:58:23 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2p85qkjk89-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 14 Dec 2018 10:58:23 +0100 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 5A1D538; Fri, 14 Dec 2018 09:58:22 +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 267602B42; Fri, 14 Dec 2018 09:58:22 +0000 (GMT) Received: from localhost (10.75.127.45) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 14 Dec 2018 10:58:21 +0100 From: Christophe Kerello To: , , , , , , , CC: , , , , Christophe Kerello Subject: [PATCH v4 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation Date: Fri, 14 Dec 2018 10:58:06 +0100 Message-ID: <1544781488-18723-2-git-send-email-christophe.kerello@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1544781488-18723-1-git-send-email-christophe.kerello@st.com> References: <1544781488-18723-1-git-send-email-christophe.kerello@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-14_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 61 ++++++++++++++++++++++ 1 file changed, 61 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..ad2bef8 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt @@ -0,0 +1,61 @@ +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: The clock needed by the NAND flash controller + +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" + +* NAND device bindings: + +Required properties: +- reg: describes the CS lines assigned to the NAND device. + +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