From mboxrd@z Thu Jan 1 00:00:00 1970 From: Han Xu Subject: [PATCH v3 2/6] Documentation: dt: mtd: gpmi: document the clocks and clock-names in DT property Date: Fri, 24 Jun 2016 16:40:07 -0500 Message-ID: <1466804411-19874-3-git-send-email-han.xu@nxp.com> References: <1466804411-19874-1-git-send-email-han.xu@nxp.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1466804411-19874-1-git-send-email-han.xu@nxp.com> Sender: linux-kernel-owner@vger.kernel.org To: han.xu@nxp.com, boris.brezillon@free-electrons.com, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org add the clocks and clock-names in DT property, gpmi-io clock is mandatory for all platforms, but some platforms, such as i.MX6Q may need more extra clocks for submodules. More details please refer to the SoC reference manual. Signed-off-by: Han Xu --- Documentation/devicetree/bindings/mtd/gpmi-nand.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/gpmi-nand.txt b/Documentation/devicetree/bindings/mtd/gpmi-nand.txt index d02acaf..a2fd034 100644 --- a/Documentation/devicetree/bindings/mtd/gpmi-nand.txt +++ b/Documentation/devicetree/bindings/mtd/gpmi-nand.txt @@ -13,6 +13,13 @@ Required properties: and GPMI DMA channel ID. Refer to dma.txt and fsl-mxs-dma.txt for details. - dma-names: Must be "rx-tx". + - clocks : The clocks needed by the gpmi controller. This field varies + depends on the SoC design, "gpmi-io" is mandatory but some platforms may + need several extra clocks, such as i.MX6 series, which requires "gpmi_apb, + gpmi_bch, gpmi_bch_apb and per1_bch" for all submodules, while i.MX7 only + need gpmi_bch_apb. Please refer to the HW design manual. + - clock-names : the name of the clocks, please refer to the HW design + manual. Optional properties: - nand-on-flash-bbt: boolean to enable on flash bbt option if not @@ -51,6 +58,8 @@ gpmi-nand@8000c000 { interrupt-names = "bch"; dmas = <&dma_apbh 4>; dma-names = "rx-tx"; + clocks = <&clks 50>,; + clock-names = "gpmi_io"; partition@0 { ... -- 1.9.1