arm64: dts: Add BRCM IPROC NAND DT node for NS2
authorAnup Patel <anup.patel@broadcom.com>
Fri, 30 Oct 2015 06:59:21 +0000 (12:29 +0530)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 16 Nov 2015 18:52:02 +0000 (10:52 -0800)
The NAND controller on NS2 SoC is compatible with existing
BRCM IPROC NAND driver so let's enable it in NS2 DT and
NS2 SVK DT.

This patch also fixes use of node labels in ns2-svk.dts.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Reviewed-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm64/boot/dts/broadcom/ns2-svk.dts
arch/arm64/boot/dts/broadcom/ns2.dtsi

index e5950d5c34e915a750c0b10131f9a129faa11393..6bb3d4d9efa91cd534ed67c2196afdae49530699 100644 (file)
                device_type = "memory";
                reg = <0x000000000 0x80000000 0x00000000 0x40000000>;
        };
+};
 
-       soc: soc {
-               i2c0: i2c@66080000 {
-                       status = "ok";
-               };
+&i2c0 {
+       status = "ok";
+};
 
-               i2c1: i2c@660b0000 {
-                       status = "ok";
-               };
+&i2c1 {
+       status = "ok";
+};
+
+&uart3 {
+       status = "ok";
+};
 
-               uart3: serial@66130000 {
-                       status = "ok";
-               };
+&nand {
+       nandcs@0 {
+               compatible = "brcm,nandcs";
+               reg = <0>;
+               nand-ecc-mode = "hw";
+               nand-ecc-strength = <8>;
+               nand-ecc-step-size = <512>;
+               #address-cells = <1>;
+               #size-cells = <1>;
        };
 };
index f60327780d18f2c5232b6ad18b6b1df8bd853758..96108228410ce50a7feb54a44b224dfd720db08f 100644 (file)
                        compatible = "brcm,iproc-rng200";
                        reg = <0x66220000 0x28>;
                };
+
+               nand: nand@66460000 {
+                       compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
+                       reg = <0x66460000 0x600>,
+                             <0x67015408 0x600>,
+                             <0x66460f00 0x20>;
+                       reg-names = "nand", "iproc-idm", "iproc-ext";
+                       interrupts = <GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH>;
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       brcm,nand-has-wp;
+               };
        };
 };