From: Bernhard Frauendienst Subject: [PATCH v2 2/3] dt-bindings: add bindings for mtd-concat devices Date: Fri, 7 Sep 2018 19:35:14 +0200 Message-ID: <20180907173515.19990-3-kernel@nospam.obeliks.de> References: <20180907173515.19990-1-kernel@nospam.obeliks.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180907173515.19990-1-kernel@nospam.obeliks.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+gldm-linux-mtd-36=gmane.org@lists.infradead.org To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-mtd@lists.infradead.org, Miquel Raynal List-Id: devicetree@vger.kernel.org Signed-off-by: Bernhard Frauendienst --- .../devicetree/bindings/mtd/mtd-concat.txt | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/mtd-concat.txt diff --git a/Documentation/devicetree/bindings/mtd/mtd-concat.txt b/Documentation/devicetree/bindings/mtd/mtd-concat.txt new file mode 100644 index 000000000000..2daf3157b163 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/mtd-concat.txt @@ -0,0 +1,36 @@ +Virtual MTD concat device + +Requires properties: +- devices: list of phandles to mtd nodes that should be concatenated + +Example: + +&spi { + flash0: flash@0 { + ... + }; + flash1: flash@1 { + ... + }; +}; + +flash { + compatible = "mtd-concat"; + + devices = <&flash0 &flash1>; + + partitions { + compatible = "fixed-partitions"; + + partition@0 { + label = "boot"; + reg = <0x0000000 0x0040000>; + read-only; + }; + + partition@40000 { + label = "firmware"; + reg = <0x0040000 0x1fc0000>; + }; + } +} -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/