From patchwork Mon Nov 2 20:33:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 539108 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2B5CE140D98 for ; Tue, 3 Nov 2015 07:33:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752793AbbKBUdg (ORCPT ); Mon, 2 Nov 2015 15:33:36 -0500 Received: from ns.lynxeye.de ([87.118.118.114]:58925 "EHLO lynxeye.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752296AbbKBUdd (ORCPT ); Mon, 2 Nov 2015 15:33:33 -0500 Received: by lynxeye.de (Postfix, from userid 501) id 602DB26C2005; Mon, 2 Nov 2015 21:33:30 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lynxeye.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from tellur.intern.lynxeye.de (p57B5FBB9.dip0.t-ipconnect.de [87.181.251.185]) by lynxeye.de (Postfix) with ESMTPA id 5E96126C2002; Mon, 2 Nov 2015 21:33:27 +0100 (CET) From: Lucas Stach To: Stephen Warren , Thierry Reding , Alexandre Courbot , David Woodhouse , Brian Norris Cc: linux-tegra@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH v4 1/5] mtd: nand: tegra: add devicetree binding Date: Mon, 2 Nov 2015 21:33:18 +0100 Message-Id: <1446496402-8142-2-git-send-email-dev@lynxeye.de> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1446496402-8142-1-git-send-email-dev@lynxeye.de> References: <1446496402-8142-1-git-send-email-dev@lynxeye.de> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach --- .../bindings/mtd/nvidia,tegra20-nand.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt b/Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt new file mode 100644 index 0000000..911b130 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/nvidia,tegra20-nand.txt @@ -0,0 +1,30 @@ +NVIDIA Tegra NAND Flash controller + +Required properties: +- compatible: Must be one of: + - "nvidia,tegra20-nand" +- reg: MMIO address range +- interrupts: interrupt output of the NFC controller +- clocks: Must contain an entry for each entry in clock-names. + See ../clocks/clock-bindings.txt for details. +- clock-names: Must include the following entries: + - nand +- resets: Must contain an entry for each entry in reset-names. + See ../reset/reset.txt for details. +- reset-names: Must include the following entries: + - nand + +Optional properties: +- wp-gpios: GPIO used to disable write protection of the flash when pulled into + the active direction + + Example: + nand@70008000 { + compatible = "nvidia,tegra20-nand"; + reg = <0x70008000 0x100>; + interrupts = ; + clocks = <&tegra_car TEGRA20_CLK_NDFLASH>; + clock-names = "nand"; + resets = <&tegra_car 13>; + reset-names = "nand"; + };