ARM: bcm63138: add NAND DT support

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
This commit is contained in:
Brian Norris 2015-05-12 17:53:42 -07:00 committed by Florian Fainelli
parent 3420ab38c4
commit b5762cacc4
2 changed files with 23 additions and 0 deletions

View File

@ -120,6 +120,17 @@
reg = <0x4800e0 0x10>; reg = <0x4800e0 0x10>;
#reset-cells = <2>; #reset-cells = <2>;
}; };
nand: nand@2000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.0", "brcm,brcmnand";
reg = <0x2000 0x600>, <0xf0 0x10>;
reg-names = "nand", "nand-int-base";
status = "disabled";
interrupts = <GIC_SPI 38 0>;
interrupt-names = "nand";
};
}; };
/* Legacy UBUS base */ /* Legacy UBUS base */

View File

@ -28,3 +28,15 @@
&serial1 { &serial1 {
status = "okay"; status = "okay";
}; };
&nand {
status = "okay";
nandcs@0 {
compatible = "brcm,nandcs";
reg = <0>;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
brcm,nand-oob-sectors-size = <16>;
};
};