From patchwork Wed Oct 5 23:46:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 9363555 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 520BE607D6 for ; Wed, 5 Oct 2016 23:47:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A4EE28D25 for ; Wed, 5 Oct 2016 23:47:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A7EB28D39; Wed, 5 Oct 2016 23:47:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A55CC28D25 for ; Wed, 5 Oct 2016 23:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941787AbcJEXr2 (ORCPT ); Wed, 5 Oct 2016 19:47:28 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34614 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941785AbcJEXrY (ORCPT ); Wed, 5 Oct 2016 19:47:24 -0400 Received: by mail-pa0-f65.google.com with SMTP id r9so148267paz.1 for ; Wed, 05 Oct 2016 16:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xKXJG6TntgK6BvKGM1Z96Qm+7/CaIV1C3XYDZOQebSk=; b=MLcXCJFN9mu8Jb1lCE9540r/x2s+3C+v6VFz5VxbVkFTXIsvQI+AHIIP45CJ0Yr/S1 pi7NRxy14JuHP34OjawGeXsDFrz4A/x+i//AUAcUVJYJHQWtA2nZ9YxC66241vKRph+e lJPs3ornmYSahKZD4KHWfzL/h2W6Nhzp1ssAaqayR4n/cEFp8VOoXeTZtDA37aSO535R oLKkPDrKMSYLoLkON2qhzq3avcTCuhTUpJZzMK92ZQ/JsTHwr0pqSjgSKEnLcb5ZK5tH +i9+xkot10Iv+kGV5wwqDqEUQXJzUNqzW4DnQqp3vBtTcpX+l9Z7CRwte5Dp21wDbWc5 xe3w== 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=xKXJG6TntgK6BvKGM1Z96Qm+7/CaIV1C3XYDZOQebSk=; b=Fc1epuH7Py6xl6uZRJNJRv4Hn7AeDPRisPcfcajjDvPdciSWFCg9yyP9+Gdhd+QiXd ml7v7XkpndY11JzfZ/e9pW97eeeqaN7xn9ikdGOMFo3VAVvYb6167N0v+CeQnt82KqoC OgvbykVGHtvfms/rxJTL2YRKvfkkjEhJzbVHwYiKeh5PuyhMoMqprci5YsrmlaVx+N9X VDSwuAIRFZJTP19CJhXBbLWBorZ8l912FiOugevSTYS3yj4RK6r+b60LnsDfF5ydULCu pP9V0i47FmxUHCWKgkL+TmaL5YSYi/nx+vwzxv+/Iu24+nUR5STiM4QtopL1Rk9qS7nV dTUw== X-Gm-Message-State: AA6/9RnixlLsv5SaWcVDfP83kh0EllEWlD612ALZj/nrqN2RqYBBB9GNmUBX78Mtmxv/kQ== X-Received: by 10.66.95.7 with SMTP id dg7mr2449045pab.107.1475711243039; Wed, 05 Oct 2016 16:47:23 -0700 (PDT) Received: from localhost.localdomain ([177.32.208.118]) by smtp.gmail.com with ESMTPSA id i7sm17008063paf.9.2016.10.05.16.47.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 16:47:22 -0700 (PDT) From: Sergio Prado To: linux@armlinux.org.uk, linux@simtec.co.uk, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, kgene@kernel.org, krzk@kernel.org, javier@osg.samsung.com, boris.brezillon@free-electrons.com, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Sergio Prado Subject: [PATCH 2/3] dt-bindings: mtd: add DT binding for s3c2410 flash controller Date: Wed, 5 Oct 2016 20:46:56 -0300 Message-Id: <1475711217-974-3-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475711217-974-1-git-send-email-sergio.prado@e-labworks.com> References: <1475711217-974-1-git-send-email-sergio.prado@e-labworks.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds the device tree bindings description for Samsung S3C2410 and compatible NAND flash controller. Signed-off-by: Sergio Prado Acked-by: Rob Herring --- .../devicetree/bindings/mtd/samsung-s3c2410.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt diff --git a/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt b/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt new file mode 100644 index 000000000000..1cc8e84479ed --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt @@ -0,0 +1,57 @@ +* Samsung S3C2410 and compatible NAND flash controller + +Required properties: +- compatible : The possible values are: + "samsung,s3c2410-nand" + "samsung,s3c2412-nand" + "samsung,s3c2440-nand" + "samsung,s3c6400-nand" +- reg : register's location and length. +- #address-cells, #size-cells : see nand.txt +- clocks : phandle to the nand controller clock +- clock-names : must contain "nand" + +Optional child nodes: +Child nodes representing the available nand chips. + +Optional child properties: +- nand-ecc-mode : see nand.txt +- nand-on-flash-bbt : see nand.txt + +Each child device node may optionally contain a 'partitions' sub-node, +which further contains sub-nodes describing the flash partition mapping. +See partition.txt for more detail. + +Example: + +nand-controller@4e000000 { + compatible = "samsung,s3c2440-nand"; + reg = <0x4e000000 0x40>; + + #address-cells = <1>; + #size-cells = <0>; + + clocks = <&clocks HCLK_NAND>; + clock-names = "nand"; + + nand { + nand-ecc-mode = "soft"; + nand-on-flash-bbt; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0 0x040000>; + }; + + partition@40000 { + label = "kernel"; + reg = <0x040000 0x500000>; + }; + }; + }; +};