From patchwork Wed Oct 19 19:52:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 9385339 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 B32DD60487 for ; Wed, 19 Oct 2016 19:55:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FD3D2934E for ; Wed, 19 Oct 2016 19:55:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9494A296BE; Wed, 19 Oct 2016 19:55:15 +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 372832934E for ; Wed, 19 Oct 2016 19:55:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760723AbcJSTym (ORCPT ); Wed, 19 Oct 2016 15:54:42 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:33278 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760712AbcJSTyi (ORCPT ); Wed, 19 Oct 2016 15:54:38 -0400 Received: by mail-qt0-f195.google.com with SMTP id m5so1261923qtb.0 for ; Wed, 19 Oct 2016 12:54:38 -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=VGSgXalV2ZjHBzQfrkddoj08HOi4KZzKm2Dm+9nO4k0=; b=0WMckmXNYI+KtgwcOIkucNoeAMh0rvFwPWBkmuoFsa8CQKRuEEwsITK6JYBrS5RZDC 5dRisNmnNB2MoCR9y/wBIfxzU8Ojn0oe+su+qU3IJNyWS4LWicq+CkB4t3vBCl6iEE3d HfF29cv624laxNmvryMioMOrfMX1NA5yH24NMdpQkfxWGV6riM+4mOb71fcqZBnlw8gn N7nWM/BGv3qqVlcKVPdnuAVvllz7Wq/q+9bxtcW1YueNKhsM1Ru1EbEGOSQu46KHIBLu 3YXGUY+DnCUMH5n7EMGwzX89+vmGBH0bNAfQTT0q8drN6x3ByPfmnHqdE4b+uEILfovS qNFQ== 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=VGSgXalV2ZjHBzQfrkddoj08HOi4KZzKm2Dm+9nO4k0=; b=f2lVASbKBo8H2SKyT2SZB6rdfIcUKIcj85OpZFoBPNlGOx/vhrWUBJy5ZtRoaNh7SG affilrnPgjTwDl0x5kw89DbQDWvTIL7AcvdPja+1q46jViLR/89t81w1Izto2vQtfk1X pO3Ot5UX9EbrdkYEnLr/cZ8V6VvySFo6QvKIId7gdhb0p+a3QKpPfiK1EF5Wc437BdLS 4wute+E9NHDlLVkq28LchS/y/41v/B8atY0LB/uY5iHOjdrrzfEcKLEe0Pa00R+JpiLA fWSbxlMEKx75zFo2H7/SMAwYYQ2UF6ljbmHuh5/7GlH9WLwrU//QTz50Ef6y8rCqd5P4 vQOw== X-Gm-Message-State: AA6/9Rll0njklAF2CANEUcChH144NUrrD/DqblF9gHbEDlfb7MTQBiQB1ecA/3zU96zfNg== X-Received: by 10.200.50.215 with SMTP id a23mr8078343qtb.79.1476906877613; Wed, 19 Oct 2016 12:54:37 -0700 (PDT) Received: from localhost.localdomain ([177.32.208.118]) by smtp.gmail.com with ESMTPSA id l57sm19176831qta.8.2016.10.19.12.54.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 12:54:37 -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, 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 v2 2/3] dt-bindings: mtd: add DT binding for s3c2410 flash controller Date: Wed, 19 Oct 2016 17:52:04 -0200 Message-Id: <1476906725-22613-3-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476906725-22613-1-git-send-email-sergio.prado@e-labworks.com> References: <1476906725-22613-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: Krzysztof Kozlowski --- .../devicetree/bindings/mtd/samsung-s3c2410.txt | 56 ++++++++++++++++++++++ 1 file changed, 56 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..0040eb8895e0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt @@ -0,0 +1,56 @@ +* Samsung S3C2410 and compatible NAND flash controller + +Required properties: +- compatible : The possible values are: + "samsung,s3c2410-nand" + "samsung,s3c2412-nand" + "samsung,s3c2440-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>; + }; + }; + }; +};