MIPS: BMIPS: Add support NAND device nodes
Adds NAND device nodes to BCM7xxx MIPS based SoCs. Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Jonas Gorski <jonas.gorski@gmail.com> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: MIPS Mailing List <linux-mips@linux-mips.org> Cc: devicetree@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14003/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
b2420e2762
commit
cfc8be04c3
@ -372,6 +372,26 @@ ohci3: usb@490600 {
|
||||
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";
|
||||
|
@ -298,5 +298,25 @@ ohci0: usb@480400 {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -291,6 +291,26 @@ ohci0: usb@480400 {
|
||||
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";
|
||||
|
@ -287,6 +287,26 @@ ohci0: usb@480400 {
|
||||
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";
|
||||
|
@ -371,6 +371,26 @@ ohci3: usb@490600 {
|
||||
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";
|
||||
|
@ -386,6 +386,26 @@ ohci3: usb@490600 {
|
||||
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";
|
||||
|
@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "bcm7346.dtsi"
|
||||
/include/ "bcm97xxx-nand-cs1-bch24.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm97346dbsmb", "brcm,bcm7346";
|
||||
@ -93,6 +94,10 @@ &ohci3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sata {
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "bcm7358.dtsi"
|
||||
/include/ "bcm97xxx-nand-cs1-bch4.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm97358svmb", "brcm,bcm7358";
|
||||
@ -64,3 +65,7 @@ &ehci0 {
|
||||
&ohci0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "bcm7362.dtsi"
|
||||
/include/ "bcm97xxx-nand-cs1-bch4.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm97362svmb", "brcm,bcm7362";
|
||||
@ -57,6 +58,10 @@ &ohci0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sata {
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "bcm7425.dtsi"
|
||||
/include/ "bcm97xxx-nand-cs1-bch24.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm97425svmb", "brcm,bcm7425";
|
||||
@ -95,6 +96,10 @@ &ohci3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdhci0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
/include/ "bcm7435.dtsi"
|
||||
/include/ "bcm97xxx-nand-cs1-bch24.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm97435svmb", "brcm,bcm7435";
|
||||
@ -95,6 +96,10 @@ &ohci3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&nand {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sata {
|
||||
status = "okay";
|
||||
};
|
||||
|
25
arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch24.dtsi
Normal file
25
arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch24.dtsi
Normal file
@ -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
arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch4.dtsi
Normal file
25
arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch4.dtsi
Normal file
@ -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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user