kernel: add driver for virtual mtd_concat devices
[openwrt/openwrt.git] / target / linux / generic / pending-4.14 / 496-dt-bindings-add-bindings-for-mtd-concat-devices.patch
1 From 5734c6669fba7ddb5ef491ccff7159d15dba0b59 Mon Sep 17 00:00:00 2001
2 From: Bernhard Frauendienst <kernel@nospam.obeliks.de>
3 Date: Wed, 5 Sep 2018 01:32:51 +0200
4 Subject: [PATCH 496/497] dt-bindings: add bindings for mtd-concat devices
5
6 Document virtual mtd-concat device bindings.
7
8 Signed-off-by: Bernhard Frauendienst <kernel@nospam.obeliks.de>
9 ---
10 .../devicetree/bindings/mtd/mtd-concat.txt | 36 +++++++++++++++++++
11 1 file changed, 36 insertions(+)
12 create mode 100644 Documentation/devicetree/bindings/mtd/mtd-concat.txt
13
14 diff --git a/Documentation/devicetree/bindings/mtd/mtd-concat.txt b/Documentation/devicetree/bindings/mtd/mtd-concat.txt
15 new file mode 100644
16 index 000000000000..2daf3157b163
17 --- /dev/null
18 +++ b/Documentation/devicetree/bindings/mtd/mtd-concat.txt
19 @@ -0,0 +1,36 @@
20 +Virtual MTD concat device
21 +
22 +Requires properties:
23 +- devices: list of phandles to mtd nodes that should be concatenated
24 +
25 +Example:
26 +
27 +&spi {
28 + flash0: flash@0 {
29 + ...
30 + };
31 + flash1: flash@1 {
32 + ...
33 + };
34 +};
35 +
36 +flash {
37 + compatible = "mtd-concat";
38 +
39 + devices = <&flash0 &flash1>;
40 +
41 + partitions {
42 + compatible = "fixed-partitions";
43 +
44 + partition@0 {
45 + label = "boot";
46 + reg = <0x0000000 0x0040000>;
47 + read-only;
48 + };
49 +
50 + partition@40000 {
51 + label = "firmware";
52 + reg = <0x0040000 0x1fc0000>;
53 + };
54 + }
55 +}
56 --
57 2.18.0
58