Skip to content

Commit

Permalink
MIPS: BMIPS: Add support NAND device nodes
Browse files Browse the repository at this point in the history
Adds NAND device nodes to BCM7xxx MIPS based SoCs.

Signed-off-by: Jaedon Shin <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Jonas Gorski <[email protected]>
Cc: Kevin Cernekee <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: MIPS Mailing List <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/14003/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
jaedon authored and ralfbaechle committed Oct 6, 2016
1 parent b2420e2 commit cfc8be0
Show file tree
Hide file tree
Showing 13 changed files with 195 additions and 0 deletions.
20 changes: 20 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7346.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,26 @@
status = "disabled";
};

hif_l2_intc: interrupt-controller@411000 {
compatible = "brcm,l2-intc";
reg = <0x411000 0x30>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&periph_intc>;
interrupts = <30>;
};

nand: nand@412800 {
compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand";
#address-cells = <1>;
#size-cells = <0>;
reg-names = "nand";
reg = <0x412800 0x400>;
interrupt-parent = <&hif_l2_intc>;
interrupts = <24>;
status = "disabled";
};

sata: sata@181000 {
compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci";
reg-names = "ahci", "top-ctrl";
Expand Down
20 changes: 20 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7358.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -298,5 +298,25 @@
interrupts = <66>;
status = "disabled";
};

hif_l2_intc: interrupt-controller@411000 {
compatible = "brcm,l2-intc";
reg = <0x411000 0x30>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&periph_intc>;
interrupts = <30>;
};

nand: nand@412800 {
compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand";
#address-cells = <1>;
#size-cells = <0>;
reg-names = "nand";
reg = <0x412800 0x400>;
interrupt-parent = <&hif_l2_intc>;
interrupts = <24>;
status = "disabled";
};
};
};
20 changes: 20 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7360.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,26 @@
status = "disabled";
};

hif_l2_intc: interrupt-controller@411000 {
compatible = "brcm,l2-intc";
reg = <0x411000 0x30>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&periph_intc>;
interrupts = <30>;
};

nand: nand@412800 {
compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand";
#address-cells = <1>;
#size-cells = <0>;
reg-names = "nand";
reg = <0x412800 0x400>;
interrupt-parent = <&hif_l2_intc>;
interrupts = <24>;
status = "disabled";
};

sata: sata@181000 {
compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci";
reg-names = "ahci", "top-ctrl";
Expand Down
20 changes: 20 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7362.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,26 @@
status = "disabled";
};

hif_l2_intc: interrupt-controller@411000 {
compatible = "brcm,l2-intc";
reg = <0x411000 0x30>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&periph_intc>;
interrupts = <30>;
};

nand: nand@412800 {
compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand";
#address-cells = <1>;
#size-cells = <0>;
reg-names = "nand";
reg = <0x412800 0x400>;
interrupt-parent = <&hif_l2_intc>;
interrupts = <24>;
status = "disabled";
};

sata: sata@181000 {
compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci";
reg-names = "ahci", "top-ctrl";
Expand Down
20 changes: 20 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7425.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,26 @@
status = "disabled";
};

hif_l2_intc: interrupt-controller@41a000 {
compatible = "brcm,l2-intc";
reg = <0x41a000 0x30>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&periph_intc>;
interrupts = <24>;
};

nand: nand@41b800 {
compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand";
#address-cells = <1>;
#size-cells = <0>;
reg-names = "nand";
reg = <0x41b800 0x400>;
interrupt-parent = <&hif_l2_intc>;
interrupts = <24>;
status = "disabled";
};

sata: sata@181000 {
compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci";
reg-names = "ahci", "top-ctrl";
Expand Down
20 changes: 20 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7435.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,26 @@
status = "disabled";
};

hif_l2_intc: interrupt-controller@41b000 {
compatible = "brcm,l2-intc";
reg = <0x41b000 0x30>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&periph_intc>;
interrupts = <24>;
};

nand: nand@41c800 {
compatible = "brcm,brcmnand-v6.2", "brcm,brcmnand";
#address-cells = <1>;
#size-cells = <0>;
reg-names = "nand", "flash-dma";
reg = <0x41c800 0x600>, <0x41d000 0x100>;
interrupt-parent = <&hif_l2_intc>;
interrupts = <24>, <4>;
status = "disabled";
};

sata: sata@181000 {
compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci";
reg-names = "ahci", "top-ctrl";
Expand Down
5 changes: 5 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97346dbsmb.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

/include/ "bcm7346.dtsi"
/include/ "bcm97xxx-nand-cs1-bch24.dtsi"

/ {
compatible = "brcm,bcm97346dbsmb", "brcm,bcm7346";
Expand Down Expand Up @@ -93,6 +94,10 @@
status = "okay";
};

&nand {
status = "okay";
};

&sata {
status = "okay";
};
Expand Down
5 changes: 5 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97358svmb.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

/include/ "bcm7358.dtsi"
/include/ "bcm97xxx-nand-cs1-bch4.dtsi"

/ {
compatible = "brcm,bcm97358svmb", "brcm,bcm7358";
Expand Down Expand Up @@ -64,3 +65,7 @@
&ohci0 {
status = "okay";
};

&nand {
status = "okay";
};
5 changes: 5 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97362svmb.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

/include/ "bcm7362.dtsi"
/include/ "bcm97xxx-nand-cs1-bch4.dtsi"

/ {
compatible = "brcm,bcm97362svmb", "brcm,bcm7362";
Expand Down Expand Up @@ -57,6 +58,10 @@
status = "okay";
};

&nand {
status = "okay";
};

&sata {
status = "okay";
};
Expand Down
5 changes: 5 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97425svmb.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

/include/ "bcm7425.dtsi"
/include/ "bcm97xxx-nand-cs1-bch24.dtsi"

/ {
compatible = "brcm,bcm97425svmb", "brcm,bcm7425";
Expand Down Expand Up @@ -95,6 +96,10 @@
status = "okay";
};

&nand {
status = "okay";
};

&sdhci0 {
status = "okay";
};
Expand Down
5 changes: 5 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97435svmb.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

/include/ "bcm7435.dtsi"
/include/ "bcm97xxx-nand-cs1-bch24.dtsi"

/ {
compatible = "brcm,bcm97435svmb", "brcm,bcm7435";
Expand Down Expand Up @@ -95,6 +96,10 @@
status = "okay";
};

&nand {
status = "okay";
};

&sata {
status = "okay";
};
Expand Down
25 changes: 25 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch24.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
&nand {
nandcs@1 {
compatible = "brcm,nandcs";
reg = <1>;
nand-on-flash-bbt;

nand-ecc-strength = <24>;
nand-ecc-step-size = <1024>;
brcm,nand-oob-sector-size = <27>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

flash1.rootfs@0 {
reg = <0x0 0x10000000>;
};

flash1.kernel@10000000 {
reg = <0x10000000 0x400000>;
};
};
};
};
25 changes: 25 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch4.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
&nand {
nandcs@1 {
compatible = "brcm,nandcs";
reg = <1>;
nand-on-flash-bbt;

nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
brcm,nand-oob-sector-size = <16>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

flash1.rootfs@0 {
reg = <0x0 0x10000000>;
};

flash1.kernel@10000000 {
reg = <0x10000000 0x400000>;
};
};
};
};

0 comments on commit cfc8be0

Please sign in to comment.