dnsmasq: move feature detection inside a shell func
[openwrt/openwrt.git] / target / linux / generic / pending-4.19 / 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 --- /dev/null
15 +++ b/Documentation/devicetree/bindings/mtd/mtd-concat.txt
16 @@ -0,0 +1,36 @@
17 +Virtual MTD concat device
18 +
19 +Requires properties:
20 +- devices: list of phandles to mtd nodes that should be concatenated
21 +
22 +Example:
23 +
24 +&spi {
25 + flash0: flash@0 {
26 + ...
27 + };
28 + flash1: flash@1 {
29 + ...
30 + };
31 +};
32 +
33 +flash {
34 + compatible = "mtd-concat";
35 +
36 + devices = <&flash0 &flash1>;
37 +
38 + partitions {
39 + compatible = "fixed-partitions";
40 +
41 + partition@0 {
42 + label = "boot";
43 + reg = <0x0000000 0x0040000>;
44 + read-only;
45 + };
46 +
47 + partition@40000 {
48 + label = "firmware";
49 + reg = <0x0040000 0x1fc0000>;
50 + };
51 + }
52 +}