From patchwork Sun Jan 22 12:21:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 92151 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp804134qgi; Sun, 22 Jan 2017 04:22:53 -0800 (PST) X-Received: by 10.55.8.12 with SMTP id 12mr21223695qki.74.1485087773488; Sun, 22 Jan 2017 04:22:53 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id r127si8712914qkd.142.2017.01.22.04.22.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 04:22:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 1cVHAZ-0003U7-LI; Sun, 22 Jan 2017 12:22:51 +0000 Received: from mail-lf0-f50.google.com ([209.85.215.50]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVHAU-0003Bt-JG for linux-mtd@lists.infradead.org; Sun, 22 Jan 2017 12:22:48 +0000 Received: by mail-lf0-f50.google.com with SMTP id n124so80495847lfd.2 for ; Sun, 22 Jan 2017 04:22:26 -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; bh=VsbNZvSqQRBuqlkVIMn5fkhBl3XyxOcsa8sWhT6ZZzo=; b=gNJJzWnBgQfcIVDHkEfbUAnrrvqo6xzivorrHVf23ycLHo/urb0kM2ghKKqwgTa9dC 4hzxl7GYbYS8EB2/gTdQx1wiQEzI1EtztiPmpAsyo5X8V4UOVFFGH34wr2hliyqTaMKf I9TVQp3m7qS0PcKYVVi0iyLv3zJqPwXHqHaT4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VsbNZvSqQRBuqlkVIMn5fkhBl3XyxOcsa8sWhT6ZZzo=; b=cJPcYIROVNN0mHki0DDQUJdTQoeusAbkAzpplLdIyL6c0bMp2QPBTh2LmlcmJj3orq 2Si8TpCl3dz/ElYxYsrHyhGs8+abm3rFC/qFuIn8UXV5IJ+E/01YB7Dzrhl1F6fHqEBp 8J8bles53nKoXYd0+fO9PzNTWPuq/kYHKiLDDYtAokSQFOHPYen2HdkI7fSsaUIp7FDv u1L0lgX7wfKA1Eh4xat226YAGl36RdhFNWeoBfQZHkz3wiuXO+t8hF3mvFAZbcFY/zsY Vx8q6l2lLJqVLt2Zn7G9pdVIabZb86qUi5OhYlexZkIIvXJly3rZwDqP2CCmYvAZkG4p apfw== X-Gm-Message-State: AIkVDXJfRwNGYlmf9pw+M5RJN0lsK6rs8GYS9IgV2r/DhY/TglJXtXyq9sYmAVguXHK7SAxK X-Received: by 10.46.7.10 with SMTP id 10mr10209437ljh.58.1485087684581; Sun, 22 Jan 2017 04:21:24 -0800 (PST) Received: from localhost.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id h3sm5515005lfj.0.2017.01.22.04.21.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 04:21:23 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen Subject: [PATCH 09/22] mtd: add DT bindings for the Cortina Systems Gemini Flash Date: Sun, 22 Jan 2017 13:21:19 +0100 Message-Id: <20170122122119.10510-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170122_042246_827243_C4A27C9B X-CRM114-Status: GOOD ( 14.17 ) X-Spam-Score: -2.2 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.215.50 listed in dnsbl.sorbs.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.50 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.215.50 listed in wl.mailspike.net] -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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: openwrt-devel@openwrt.org, devicetree@vger.kernel.org, Paulius Zaleckas , Arnd Bergmann , Linus Walleij , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Janos Laube MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This adds device tree bindings for the Cortina systems Gemini flash controller, a simple physmap which however need a few syscon bits to be poked to operate properly. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- MTD maintainers: please just apply this to the MTD tree when you are happy with it. It is functionally orthogonal to the rest of the series and is just in the series for context. --- .../bindings/mtd/cortina,gemini-flash.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt -- 2.9.3 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt b/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt new file mode 100644 index 000000000000..3fa1b34d69ad --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt @@ -0,0 +1,24 @@ +Flash device on Cortina Systems Gemini SoC + +This flash is regular CFI compatible (Intel or AMD extended) flash chips with +some special bits that can be controlled by the machine's system controller. + +Required properties: +- compatible : must be "cortina,gemini-flash", "cfi-flash"; +- reg : memory address for the flash chip +- syscon : must be a phandle to the system controller +- bank-width : width in bytes of flash interface, should be <2> + +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@30000000 { + compatible = "cortina,gemini-flash", "cfi-flash"; + reg = <0x30000000 0x01000000>; + syscon = <&syscon>; + bank-width = <2>; +};