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: 60435 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1889120lbb; Tue, 26 Jan 2016 03:12:26 -0800 (PST) X-Received: by 10.66.236.69 with SMTP id us5mr32735677pac.93.1453806746128; Tue, 26 Jan 2016 03:12:26 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gy5si1406722pac.83.2016.01.26.03.12.25; Tue, 26 Jan 2016 03:12:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932109AbcAZLMZ (ORCPT + 6 others); Tue, 26 Jan 2016 06:12:25 -0500 Received: from mail-lf0-f44.google.com ([209.85.215.44]:34894 "EHLO mail-lf0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbcAZLMY (ORCPT ); Tue, 26 Jan 2016 06:12:24 -0500 Received: by mail-lf0-f44.google.com with SMTP id c192so102484545lfe.2 for ; Tue, 26 Jan 2016 03:12:23 -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=hQxo2t02pP/n924Dhna9GYwaYggcNbFLEgs8wkorqUYuVMzzvnYH9HcZsMFs18RxGu wp0yqGWHB0+Qu3Q1bOQJubtsC8h8wLf8v3MbtWzxm2be+58Tuvh0HVSprBbpDQactRpG szFBaltbZMSex25LhNnLZs3QoiYBbGDlDc547mNYviYHzFth3fIZ5l3U3O8Egw/FjGFm sLxfwlKyRE/WwrRrOIsL9SxWlFrgLG9YE2M7RINpGk3sobgp+eBdJIllM4ihhYI870XL 8mEt4x6j1+R1SGyJwmoDArQ4ghKlojQvqJraBqr4AbveLEy6aEEsWH8hN3m+6+mEAufp NIaw== X-Gm-Message-State: AG10YORybkQI1+qy7euGvr6Fnz+wQZmAi/VBHI3Fxv6SEL94vNIjBVQQxQAyh+rCp0edTHeR 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 Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij , devicetree@vger.kernel.org, Grant Likely , Rob Herring , Arnd Bergmann , Mark Rutland 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 --- .../devicetree/bindings/mtd/arm-versatile.txt | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring 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>; +};