From patchwork Wed Mar 2 17:00:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 63402 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2491109lbc; Wed, 2 Mar 2016 09:01:40 -0800 (PST) X-Received: by 10.66.131.69 with SMTP id ok5mr24912142pab.96.1456938100095; Wed, 02 Mar 2016 09:01:40 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id hq1si14582904pac.56.2016.03.02.09.01.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Mar 2016 09:01:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1abA8y-0003RZ-Aw; Wed, 02 Mar 2016 17:01:00 +0000 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1abA8s-0003IN-9l for linux-mtd@lists.infradead.org; Wed, 02 Mar 2016 17:00:55 +0000 Received: by mail-io0-x236.google.com with SMTP id m184so24755395iof.1 for ; Wed, 02 Mar 2016 09:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KC9ghu01cEThZw99RbC5M6bkTmG7gpJp+DORlUj/viA=; b=H08ITxBL/fbXoCJiStRs05zcjabi5aF3K3EZNk9kn9+or2TyH0j1YpmurfzbzU93b4 YTvxODwXygRKDj0BDTuRVDZhksQ7Sitneo1CH5ZPef+pJ0TQMIw1VcchsVx8qKvEhzFo g1gcpTRVolAiqt67gcT+PFjmKRbp6qqVHrRD0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KC9ghu01cEThZw99RbC5M6bkTmG7gpJp+DORlUj/viA=; b=DzFgWlLD6lKFB14XZXfrWvVdXUdOCydto8N7dQha3AsHACPY8NTSXaDdCc7c4zy58M LFEEG8Cpzm/rTOj+QulPck/KRBfCZIoo5dCq5pKUIX0nQK3oOgLTdze+B7NtaDemViE/ rTUz+vjW+D2TN5+6wQaDTyu/7Im7pKPB+fQvp4UaJkYouzmayqs9fb7fCQpQETf0bgi0 givWeK7JEK1kVS6WgQnICPpKuH3KFI2K58/6gzO0KAetMOJkzG9TkYU1yqhVqg8hs09P ctQI6tsZeLhRKDzVyFnDuvweqJk51FCFeHaA2v66wsmSUIlc5mizgszNrWFPlfv6Pc3/ H/LQ== X-Gm-Message-State: AD7BkJLsYAXjN6h1IcrFqkZ3W8s5MuGg2/yP6cASMVJM1SDBVDTLSEMB4H/zJS1ZLWL9QFzZ X-Received: by 10.107.135.147 with SMTP id r19mr9104456ioi.103.1456938033240; Wed, 02 Mar 2016 09:00:33 -0800 (PST) Received: from localhost.localdomain (cpe-67-253-128-196.rochester.res.rr.com. [67.253.128.196]) by smtp.gmail.com with ESMTPSA id m32sm14969255ioi.41.2016.03.02.09.00.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 09:00:32 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, dwmw2@infradead.org, computersforpeace@gmail.com, matthias.bgg@gmail.com, robh@kernel.org Subject: [PATCH 1/3] mtd: mediatek: device tree docs for MTK Smart Device Gen1 NAND Date: Wed, 2 Mar 2016 12:00:11 -0500 Message-Id: <1456938013-8819-2-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1456938013-8819-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1456938013-8819-1-git-send-email-jorge.ramirez-ortiz@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160302_090054_398913_65243CAC X-CRM114-Status: GOOD ( 11.83 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4001:c06:0:0:0:236 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: boris.brezillon@free-electrons.com, daniel.thompson@linaro.org, linux-mtd@lists.infradead.org, xiaolei.li@mediatek.com MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This patch adds documentation support for Smart Device Gen1 type of NAND controllers. Mediatek's SoC 2701 is one of the SoCs that implements this controller. Signed-off-by: Jorge Ramirez-Ortiz --- .../devicetree/bindings/mtd/mtksdg1-nand.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt -- 2.1.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt new file mode 100644 index 0000000..129d17b --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt @@ -0,0 +1,38 @@ +MTK Smart Device SoCs NAND controller DT binding + +Required properties: +- compatible: Should be "mediatek,mt2701-nfc". +- reg: The first contains base physical address and size of + NAND controller's registers. The second contains base + physical address and size of NAND ECC engine. +- interrupts: the NFC NFI interrupt, and the NFC ECC interrupt +- clocks: NAND controller clocks. +- clock-names: NAND controller clocks internal name. +- vmch-supply: NAND power supply. +- #address-cells: Partition address, should be set 1. +- #size-cells: Partition size, should be set 1. + +Optional properties: + +nand-on-flash-bbt: Use a flash based bad block table. + +Optional subnodes: +- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt + +Example: + + nand: nand@1100d000 { + compatible = "mediatek,mt2701-nfc"; + reg = <0 0x1100d000 0 0x1000>, <0 0x1100e000 0 0x1000>; + interrupts = , + ; + clocks = <&pericfg CLK_PERI_NFI>, <&pericfg CLK_PERI_NFI_ECC>, + <&pericfg CLK_PERI_NFI_PAD>; + clock-names = "nfi_ck", "nfi_ecc_ck", "nfi_pad_ck"; + vmch-supply = <&mt6323_vmch_reg>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <1>; + + ... + };