From patchwork Tue Jan 26 11:12:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 573212 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 00BE51402DD for ; Tue, 26 Jan 2016 22:15:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=PL4U+Hpu; dkim-atps=neutral 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 1aO1YK-0002Se-0j; Tue, 26 Jan 2016 11:12:52 +0000 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aO1YD-0002Gu-7H for linux-mtd@lists.infradead.org; Tue, 26 Jan 2016 11:12:48 +0000 Received: by mail-lf0-x233.google.com with SMTP id c192so102484543lfe.2 for ; Tue, 26 Jan 2016 03:12:24 -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=7Np6NuO3KEgXBke9D0YrlFpC90vj4CIWngTPHBrECUM=; b=PL4U+HpuUm2D/G4bRhqkcr8s9fjtSpDPn1RmLzawdJZPN5IDqFrU0nP4W7dajcMRQD RxgiPy+3ePhTN81fQqpei/hrJLO+4+lWDy9KOlxGGG2L5Pa/xZL3T724pLwAlYBMhvIL 2L9I0f6stoc8gsV/G9slhI0NjfitxwOebGD+c= 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=7Np6NuO3KEgXBke9D0YrlFpC90vj4CIWngTPHBrECUM=; b=Gnq0K9NcPY//7sH7C86zgZ6kUHABmmjx/Bt7wSSsD08BoOMDkU7c0euX4iec3SPpSj QxkpxEy+u25Vr5cYHSiz4CyefF3zCofuFSqJOr/XOvfbxDxGif4DQCOJkcg1qmqCkP94 Jw/kArzf1g9oEbu/LLQ/zjYUAXEA7cBC/UYZd1OpRk2hIN0/9tDAwlblALYDQ1cM8NN4 9wXPopHTAa10/zbhkuNhVeZYGnHTIMpA4smDd3E7R3qOgDtMKv5y2dT9CvI+aJDMnSVE TvCLY4AOORipghER2wnwmz4OG2quQLsw0avJZOWSAUKOn2DgIiYN/EoXhIv7p+l2GAJE WpsA== X-Gm-Message-State: AG10YOSiZhnTQ5rDpf4WuGkEhIS0Gi90KukWLpkDwf3AXpJjbNarDvBA89VcwCDkJ1XyiotD X-Received: by 10.25.149.21 with SMTP id x21mr8596566lfd.124.1453806742752; Tue, 26 Jan 2016 03:12:22 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id i192sm119832lfb.14.2016.01.26.03.12.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 03:12:22 -0800 (PST) From: Linus Walleij To: David Woodhouse , Brian Norris , linux-mtd@lists.infradead.org Subject: [PATCH 1/6] mtd: augment the "arm,versatile-flash" bindings Date: Tue, 26 Jan 2016 12:12:00 +0100 Message-Id: <1453806725-4880-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1453806725-4880-1-git-send-email-linus.walleij@linaro.org> References: <1453806725-4880-1-git-send-email-linus.walleij@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160126_031245_709382_54476FBB X-CRM114-Status: GOOD ( 15.73 ) 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 [2a00:1450:4010:c07:0:0:0:233 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: Mark Rutland , devicetree@vger.kernel.org, Arnd Bergmann , Rob Herring , Linus Walleij , Grant Likely , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The bindings for the "arm,versatile-flash" device was merged in commit 3ba7222ac992d24d09ccd0b55940b54849eef752 "arm/versatile: Add device tree support" but was never used for anything. Versatile flash chips are actually just standard CFI chips, but they have one or two bits in a system controller to control VPP and write protection. Let's use this compatible string in conjunction with "cfi-flash" to indicate that we have a normal CFI flash with some extra Versatile-specific protection. Cc: devicetree@vger.kernel.org Cc: Grant Likely Cc: Rob Herring Cc: Arnd Bergmann Cc: Mark Rutland Signed-off-by: Linus Walleij Acked-by: Rob Herring --- .../devicetree/bindings/mtd/arm-versatile.txt | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/arm-versatile.txt b/Documentation/devicetree/bindings/mtd/arm-versatile.txt index beace4b89daa..4ec28796a3c0 100644 --- a/Documentation/devicetree/bindings/mtd/arm-versatile.txt +++ b/Documentation/devicetree/bindings/mtd/arm-versatile.txt @@ -1,8 +1,26 @@ Flash device on ARM Versatile board +These flash chips are found in the ARM reference designs like Integrator, +Versatile, RealView, Versatile Express etc. + +They are regular CFI compatible (Intel or AMD extended) flash chips with +some special write protect/VPP bits that can be controlled by the machine's +system controller. + Required properties: -- compatible : must be "arm,versatile-flash"; +- compatible : must be "arm,versatile-flash", "cfi-flash"; +- reg : memory address for the flash chip - bank-width : width in bytes of flash interface. +For the rest of the properties, see mtd-physmap.txt. + The device tree may optionally contain sub-nodes describing partitions of the address space. See partition.txt for more detail. + +Example: + +flash@34000000 { + compatible = "arm,versatile-flash", "cfi-flash"; + reg = <0x34000000 0x4000000>; + bank-width = <4>; +};