ARM: BCM5301X: add NAND flash chip description
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 29 May 2015 21:39:47 +0000 (23:39 +0200)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sat, 6 Jun 2015 23:05:50 +0000 (16:05 -0700)
This adds the NAND flash chip description for a standard chip found
connected to this SoC. This makes use of generic Broadcom NAND driver
with the iProc interface.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
14 files changed:
arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
arch/arm/boot/dts/bcm4708-netgear-r6250.dts
arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
arch/arm/boot/dts/bcm4709-netgear-r8000.dts
arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi [new file with mode: 0644]
arch/arm/boot/dts/bcm5301x.dtsi

index 71cff8dbbac86a10160a8a507f9c315887631323..112a5a834ddc995171d84f964304d9d3d730d7c5 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "asus,rt-ac56u", "brcm,bcm4708";
index 8b62836b5880b0c478f6d3cd93cee5f5b35487af..3600f56f46f463a5d20d6d1d8c47a0099d98612c 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "asus,rt-ac68u", "brcm,bcm4708";
index 78e95c0e6b43de6b24e1cb4aa197c24fa3b387e0..24f0ab59bf1b365b54ce6c1965b1b5a471d78150 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
index 946c728c4eb7611593fe4e44b815c1f79350e3b4..f039393117178556e4849f2b960a8111ea41b88f 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "luxul,xwc-1000", "brcm,bcm4708";
                reg = <0x00000000 0x08000000>;
        };
 
-       axi@18000000 {
-               nand@28000 {
-                       reg = <0x00028000 0x1000>;
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-
+       nand: nand@18028000 {
+               nandcs@0 {
                        partition@0 {
                                label = "ubi";
                                reg = <0x00000000 0x08000000>;
index 2ed9e5794785fb9a8f3e08228fb999e245c4d8de..326ce8f4e49cc13e1495b9d66ac84946740482db 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "netgear,r6250v1", "brcm,bcm4708";
index 39910428246a3e3bfdeddc94c7f4a5671bc0651b..3a94606d042b97fdab529833500860d3e70f2076 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "netgear,r6300v2", "brcm,bcm4708";
index 66dfb53be08a04e7179238ec22817edc024bd954..d6a033b97c702f05c251bcedc31fadb2131613dc 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "smartrg,sr400ac", "brcm,bcm4708";
index 0ee85ea10bb2b1b5b218833d86b1611f272b2f60..71b98cfaf94427c62fd8ce967c22f2cb508079bf 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm47081.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708";
index db9131e0326861cd66575c6dffccd30bbfcba833..bb0cb0bfafaf22d07f516d6e36c11aa21547c42a 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm47081.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "buffalo,wzr-600dhp2", "brcm,bcm47081", "brcm,bcm4708";
index 7d6868acb1c63f410ffeb96d1089517c5ce42c38..184fd9214110c6d39a58f32467e4a8b82aaaae24 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm47081.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "buffalo,wzr-900dhp", "brcm,bcm47081", "brcm,bcm4708";
index 548e93bc059bfd58728afca50994523ce23f72b5..2a92e8d5ab34d0262e486840513f765921b6bb76 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
index ea26dd3ec03a099a7a62d7b1659550da2df88e3a..446c586cd473e8bc8f18c4a07adec3b01fb75be7 100644 (file)
@@ -10,6 +10,7 @@
 /dts-v1/;
 
 #include "bcm4708.dtsi"
+#include "bcm5301x-nand-cs0-bch8.dtsi"
 
 / {
        compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708";
diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi
new file mode 100644 (file)
index 0000000..d10781e
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Broadcom BCM470X / BCM5301X Nand chip defaults.
+ *
+ * This should be included if the NAND controller is on chip select 0
+ * and uses 8 bit ECC.
+ *
+ * Copyright (C) 2015 Hauke Mehrtens <hauke@hauke-m.de>
+ *
+ * Licensed under the GNU/GPL. See COPYING for details.
+ */
+
+/ {
+       nand@18028000 {
+               nandcs@0 {
+                       compatible = "brcm,nandcs";
+                       reg = <0>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       nand-ecc-strength = <8>;
+                       nand-ecc-step-size = <512>;
+               };
+       };
+};
index 78aec6270c2f5f93687f59bf47e9f6c493ea0c31..a97f631a9a3da2e4f9619df2fbc6247a6583a8b0 100644 (file)
                        #gpio-cells = <2>;
                };
        };
+
+       nand: nand@18028000 {
+               compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
+               reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
+               reg-names = "nand", "iproc-idm", "iproc-ext";
+               interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               brcm,nand-has-wp;
+       };
 };