ARM: BCM5301X: add NAND flash chip description

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>
This commit is contained in:
Hauke Mehrtens 2015-05-29 23:39:47 +02:00 коммит произвёл Florian Fainelli
Родитель 9d7ef1b76c
Коммит 9faa5960ee
14 изменённых файлов: 50 добавлений и 6 удалений

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "asus,rt-ac56u", "brcm,bcm4708"; compatible = "asus,rt-ac56u", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "asus,rt-ac68u", "brcm,bcm4708"; compatible = "asus,rt-ac68u", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708"; compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "luxul,xwc-1000", "brcm,bcm4708"; compatible = "luxul,xwc-1000", "brcm,bcm4708";
@ -23,12 +24,8 @@
reg = <0x00000000 0x08000000>; reg = <0x00000000 0x08000000>;
}; };
axi@18000000 { nand: nand@18028000 {
nand@28000 { nandcs@0 {
reg = <0x00028000 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
label = "ubi"; label = "ubi";
reg = <0x00000000 0x08000000>; reg = <0x00000000 0x08000000>;

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "netgear,r6250v1", "brcm,bcm4708"; compatible = "netgear,r6250v1", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "netgear,r6300v2", "brcm,bcm4708"; compatible = "netgear,r6300v2", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "smartrg,sr400ac", "brcm,bcm4708"; compatible = "smartrg,sr400ac", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm47081.dtsi" #include "bcm47081.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708"; compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm47081.dtsi" #include "bcm47081.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "buffalo,wzr-600dhp2", "brcm,bcm47081", "brcm,bcm4708"; compatible = "buffalo,wzr-600dhp2", "brcm,bcm47081", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm47081.dtsi" #include "bcm47081.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "buffalo,wzr-900dhp", "brcm,bcm47081", "brcm,bcm4708"; compatible = "buffalo,wzr-900dhp", "brcm,bcm47081", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708"; compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";

Просмотреть файл

@ -10,6 +10,7 @@
/dts-v1/; /dts-v1/;
#include "bcm4708.dtsi" #include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ { / {
compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708"; compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708";

Просмотреть файл

@ -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>;
};
};
};

Просмотреть файл

@ -143,4 +143,16 @@
#gpio-cells = <2>; #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;
};
}; };