bcm53xx: support SPI-NOR on dual flash devices
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 360-ARM-BCM5301X-Fix-NAND-flash-parameters-for-D-Link-DI.patch
1 From 842f2d4df49fccc31424f9bc6bcc45d1e1d2fda7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Mon, 1 Feb 2016 12:37:00 +0100
4 Subject: [PATCH] ARM: BCM5301X: Fix NAND flash parameters for D-Link DIR-885L
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 It doesn't use 8-bit ECC strength.
10
11 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
12 ---
13  arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 6 +++++-
14  1 file changed, 5 insertions(+), 1 deletion(-)
15
16 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
17 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
18 @@ -10,7 +10,6 @@
19  /dts-v1/;
20  
21  #include "bcm4708.dtsi"
22 -#include "bcm5301x-nand-cs0-bch8.dtsi"
23  
24  / {
25         compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
26 @@ -27,6 +26,13 @@
27  
28         nand: nand@18028000 {
29                 nandcs@0 {
30 +                       compatible = "brcm,nandcs";
31 +                       reg = <0>;
32 +                       #address-cells = <1>;
33 +                       #size-cells = <1>;
34 +
35 +                       linux,part-probe = "ofpart", "bcm47xxpart";
36 +
37                         partition@0 {
38                                 label = "firmware";
39                                 reg = <0x00000000 0x08000000>;