e397ddd0b2807e426ece8d419b63b6693d524649
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.14 / 032-v4.18-0007-ARM-dts-BCM5301X-Switch-D-Link-DIR-885L-to-the-new-p.patch
1 From a05f1e36a57d02374a203719abc5bf2e8c51e125 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Thu, 10 May 2018 23:20:00 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Switch D-Link DIR-885L to the new
5  partitions syntax
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 This new syntax is slightly better designed & uses "compatible" string.
11 For details see Documentation/devicetree/bindings/mtd/partition.txt .
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16  arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 12 +++++++++---
17  1 file changed, 9 insertions(+), 3 deletions(-)
18
19 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
20 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
21 @@ -26,9 +26,15 @@
22  
23         nand: nand@18028000 {
24                 nandcs@0 {
25 -                       partition@0 {
26 -                               label = "firmware";
27 -                               reg = <0x00000000 0x08000000>;
28 +                       partitions {
29 +                               compatible = "fixed-partitions";
30 +                               #address-cells = <1>;
31 +                               #size-cells = <1>;
32 +
33 +                               partition@0 {
34 +                                       label = "firmware";
35 +                                       reg = <0x00000000 0x08000000>;
36 +                               };
37                         };
38                 };
39         };