From patchwork Sat Jan 28 21:50:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 92761 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp826450qgi; Sat, 28 Jan 2017 13:50:20 -0800 (PST) X-Received: by 10.99.98.193 with SMTP id w184mr16422214pgb.223.1485640220030; Sat, 28 Jan 2017 13:50:20 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si4976215pgf.20.2017.01.28.13.50.19; Sat, 28 Jan 2017 13:50:20 -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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752169AbdA1VuT (ORCPT + 7 others); Sat, 28 Jan 2017 16:50:19 -0500 Received: from mail-lf0-f48.google.com ([209.85.215.48]:34703 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbdA1VuS (ORCPT ); Sat, 28 Jan 2017 16:50:18 -0500 Received: by mail-lf0-f48.google.com with SMTP id v186so178079419lfa.1 for ; Sat, 28 Jan 2017 13:50:17 -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=r6mucllNvNNUlXRpwAaKKQYSxEfiAOH4Rw/fpztQSAA=; b=aF1ZqgIVjXrBE6uPA7rb6LrXBPdSxAcNIqvSW75DDsZDpx8cBRNZS6Cd6iAeXsPojc YZKvHkffLfmjrCisWxkX/PkNlLqcBL/CX5fAmFrK1g7ZYMtrvmqvLnRLZt2F/tIpyTuY Nv3Ba/UpNzD9u60SVy0tRlq5lNCbpw7umizo0= 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=r6mucllNvNNUlXRpwAaKKQYSxEfiAOH4Rw/fpztQSAA=; b=UPnfutwgZnd00oSpXXlIvNrYAqnrgBAXsVYN5H+E+Ek758ZQav4J6/l7575rRRd7bZ swTCHmwLnNs71vLV1qArPL9tlZYyk3fgmP6cnH4fa3lhhXNd7By9goaTdPWE+u+Mn2UO sdD/i7+OlryUBJ0N2hsGjPVMvZeKO9kf52FAa4IT4zbsCUROXwYvbwHqsiLL42ilnle1 +h4PbJfw/L2SnJWdQ9Okj2i7zyAhESgl8kaqvkQpftbPRm/p2VMy8LhB1IxkzzFLmj7F CS+b8jkEOEjhNtxRLu81SP5/srY1sB4jZ8EXis2XF5QPvaUgMKSicObk1KmrXuGFF1j8 TSgA== X-Gm-Message-State: AIkVDXJ5SnuWXnBFqllhdclViFMOAL4DH+pLmNbaqGrhlU06aEWJwCyWrxFYqWeFWzGV/9pp X-Received: by 10.46.76.1 with SMTP id z1mr5063088lja.48.1485640216322; Sat, 28 Jan 2017 13:50:16 -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 u126sm2361981lja.25.2017.01.28.13.50.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jan 2017 13:50:14 -0800 (PST) From: Linus Walleij To: Hans Ulli Kroll , Florian Fainelli , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen Cc: Janos Laube , Paulius Zaleckas , openwrt-devel@openwrt.org, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 09/22 v2] mtd: add DT bindings for the Cortina Systems Gemini Flash Date: Sat, 28 Jan 2017 22:50:04 +0100 Message-Id: <20170128215004.11532-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Reviewed-by: Marek Vasut Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Add Marek's and Rob's ACK tags. 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 -- 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 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>; +};