From patchwork Wed Feb 22 03:02:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Lin X-Patchwork-Id: 730886 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vSj0d11gSz9s7h for ; Wed, 22 Feb 2017 14:05:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EHV7peHA"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=YIhKVq4UI3GS7xyMnC/cJzd2aD/HC9rMP3i1ueVvCg4=; b=EHV7peHAuIwROa1iz7li3NSyD7 vYVgAwkt5+cxJhld3eiIs6PzyboSGOS2Y8FAhY5zPpYtHSzHpMymy0lDOd+aGrDU1dytO0jffS/jH i4qDAZsfLKijURj135lB0AEofuMmV1cNAhffk7w+NawiZmdX9pk2Io4uXSmtk8QF5EDDAxjHb81+6 liF2DJxxifGrKLNj7ZUEYKAt5E/bTzaEd9KsM7OSsSftkyR3JzO3Gx4IfD8x70yl/meMSgwpLP+Ct gK9/Nv8e/ZNMtdVaV1mHa9JVE1ZLRkUr7R+Zo4O49Byl4+qrk+H5VHB2/F8M5M/WZidSjN4sWLJEO upxx7CTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgNEy-00087m-Ji; Wed, 22 Feb 2017 03:05:16 +0000 Received: from lucky1.263xmail.com ([211.157.147.131]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgNEt-0006mU-S5; Wed, 22 Feb 2017 03:05:14 +0000 Received: from shawn.lin?rock-chips.com (unknown [192.168.167.224]) by lucky1.263xmail.com (Postfix) with ESMTP id ABD0C8F6AD; Wed, 22 Feb 2017 11:04:46 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 2E5543AA; Wed, 22 Feb 2017 11:04:46 +0800 (CST) X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: dwmw2@infradead.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: lintao@rock-chips.com X-DNS-TYPE: 0 Received: from unknown (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith SMTP id 10239GPYBR1; Wed, 22 Feb 2017 11:04:47 +0800 (CST) From: Shawn Lin To: David Woodhouse , Brian Norris , Cyrille Pitchen Subject: [PATCH v6 1/2] mtd: spi-nor: Bindings for Rockchip serial flash controller Date: Wed, 22 Feb 2017 11:02:02 +0800 Message-Id: <1487732523-97390-2-git-send-email-shawn.lin@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487732523-97390-1-git-send-email-shawn.lin@rock-chips.com> References: <1487732523-97390-1-git-send-email-shawn.lin@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_190512_871429_429FF5B5 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.4 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [211.157.147.131 listed in dnsbl.sorbs.net] 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Shawn Lin , linux-mtd@lists.infradead.org, linux-rockchip@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add binding document for the Rockchip serial flash controller. Signed-off-by: Shawn Lin Acked-by: Marek Vasut Acked-by: Rob Herring --- Changes in v6: None Changes in v5: None Changes in v4: - use uppercase DMA for description Changes in v3: None Changes in v2: None .../devicetree/bindings/mtd/rockchip-sfc.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/rockchip-sfc.txt diff --git a/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt b/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt new file mode 100644 index 0000000..1e449b0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt @@ -0,0 +1,31 @@ +Rockchip Serial Flash Controller + +Required properties: +- compatible : Should be + "rockchip,rv1108-sfc", "rockchip,sfc" for ROCKCHIP RV1108. +- address-cells : Should be 1. +- size-cells : Should be 0. +- clocks: Must contain two entries for each entry in clock-names. +- clock-names: Shall be "sfc" for the transfer-clock, and "hsfc" for + the peripheral clock. +- interrupts : Should contain the interrupt for the device. +- reg: Physical base address of the controller and length of memory mapped. + +Optional properties: +- rockchip,sfc-no-dma: Indicate the controller doesn't support DMA transfer. + +Example: +nor_flash: sfc@301c0000 { + compatible = "rockchip,rv1108-sfc", "rockchip,sfc"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>; + clock-names = "sfc", "hsfc"; + interrupts = ; + reg = <0x301c0000 0x1000>; + spi-nor@0 { + compatible = "jedec,spi-nor"; + spi-max-frequency = <12000000>; + reg = <0>; + }; +};