Commit 7045ff5a authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Jason Cooper

ARM: kirkwood: Move the nand node under the mbus node

There should be no nodes that are not children of the mbus. Move
the nand node under the mbus, and rework the board .dts files
to use an & reference to the nand node.
Signed-off-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Acked-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 34a30090
...@@ -39,28 +39,6 @@ serial@12000 { ...@@ -39,28 +39,6 @@ serial@12000 {
status = "ok"; status = "ok";
}; };
nand@3000000 {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
chip-delay = <25>;
status = "okay";
partition@0 {
label = "uboot";
reg = <0x0 0x100000>;
};
partition@100000 {
label = "uImage";
reg = <0x100000 0x400000>;
};
partition@500000 {
label = "root";
reg = <0x500000 0x1fb00000>;
};
};
sata@80000 { sata@80000 {
nr-ports = <2>; nr-ports = <2>;
status = "okay"; status = "okay";
...@@ -80,6 +58,28 @@ mvsdio@90000 { ...@@ -80,6 +58,28 @@ mvsdio@90000 {
}; };
}; };
&nand {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
chip-delay = <25>;
status = "okay";
partition@0 {
label = "uboot";
reg = <0x0 0x100000>;
};
partition@100000 {
label = "uImage";
reg = <0x100000 0x400000>;
};
partition@500000 {
label = "root";
reg = <0x500000 0x1fb00000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -148,44 +148,6 @@ sata@80000 { ...@@ -148,44 +148,6 @@ sata@80000 {
status = "okay"; status = "okay";
nr-ports = <2>; nr-ports = <2>;
}; };
nand@3000000 {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "okay";
chip-delay = <35>;
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x500000>;
};
partition@600000 {
label = "ramdisk";
reg = <0x0600000 0x500000>;
};
partition@b00000 {
label = "image";
reg = <0x0b00000 0x6600000>;
};
partition@7100000 {
label = "mini firmware";
reg = <0x7100000 0xa00000>;
};
partition@7b00000 {
label = "config";
reg = <0x7b00000 0x500000>;
};
};
}; };
regulators { regulators {
...@@ -220,6 +182,44 @@ sata1_power: regulator@2 { ...@@ -220,6 +182,44 @@ sata1_power: regulator@2 {
}; };
}; };
&nand {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "okay";
chip-delay = <35>;
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x500000>;
};
partition@600000 {
label = "ramdisk";
reg = <0x0600000 0x500000>;
};
partition@b00000 {
label = "image";
reg = <0x0b00000 0x6600000>;
};
partition@7100000 {
label = "mini firmware";
reg = <0x7100000 0xa00000>;
};
partition@7b00000 {
label = "config";
reg = <0x7b00000 0x500000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -34,26 +34,6 @@ pmx_led_orange: pmx-led-orange { ...@@ -34,26 +34,6 @@ pmx_led_orange: pmx-led-orange {
serial@12000 { serial@12000 {
status = "ok"; status = "ok";
}; };
nand@3000000 {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x400000>;
};
partition@500000 {
label = "data";
reg = <0x0500000 0xfb00000>;
};
};
}; };
gpio-leds { gpio-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
...@@ -91,6 +71,26 @@ usb_power: regulator@1 { ...@@ -91,6 +71,26 @@ usb_power: regulator@1 {
}; };
}; };
&nand {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x400000>;
};
partition@500000 {
label = "data";
reg = <0x0500000 0xfb00000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -67,31 +67,6 @@ serial@12000 { ...@@ -67,31 +67,6 @@ serial@12000 {
status = "ok"; status = "ok";
}; };
nand@3000000 {
chip-delay = <40>;
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x400000>;
};
partition@500000 {
label = "pogoplug";
reg = <0x0500000 0x2000000>;
};
partition@2500000 {
label = "root";
reg = <0x02500000 0xd800000>;
};
};
sata@80000 { sata@80000 {
status = "okay"; status = "okay";
nr-ports = <2>; nr-ports = <2>;
...@@ -171,6 +146,32 @@ usb_power: regulator@1 { ...@@ -171,6 +146,32 @@ usb_power: regulator@1 {
}; };
}; };
&nand {
chip-delay = <40>;
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x400000>;
};
partition@500000 {
label = "pogoplug";
reg = <0x0500000 0x2000000>;
};
partition@2500000 {
label = "root";
reg = <0x02500000 0xd800000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -40,26 +40,6 @@ serial@12000 { ...@@ -40,26 +40,6 @@ serial@12000 {
status = "ok"; status = "ok";
}; };
nand@3000000 {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x00000000 0x00100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x00100000 0x00400000>;
};
partition@500000 {
label = "data";
reg = <0x00500000 0x1fb00000>;
};
};
sata@80000 { sata@80000 {
status = "okay"; status = "okay";
nr-ports = <1>; nr-ports = <1>;
...@@ -97,6 +77,26 @@ wmode-g { ...@@ -97,6 +77,26 @@ wmode-g {
}; };
}; };
&nand {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x00000000 0x00100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x00100000 0x00400000>;
};
partition@500000 {
label = "data";
reg = <0x00500000 0x1fb00000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -51,28 +51,6 @@ sata@80000 { ...@@ -51,28 +51,6 @@ sata@80000 {
status = "okay"; status = "okay";
nr-ports = <2>; nr-ports = <2>;
}; };
nand@3000000 {
status = "okay";
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x600000>;
};
partition@700000 {
label = "root";
reg = <0x0700000 0xf900000>;
};
};
}; };
gpio_keys { gpio_keys {
...@@ -123,6 +101,28 @@ gpio_poweroff { ...@@ -123,6 +101,28 @@ gpio_poweroff {
}; };
&nand {
status = "okay";
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x600000>;
};
partition@700000 {
label = "root";
reg = <0x0700000 0xf900000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -82,35 +82,6 @@ lm63: lm63@4c { ...@@ -82,35 +82,6 @@ lm63: lm63@4c {
serial@12000 { serial@12000 {
status = "ok"; status = "ok";
}; };
nand@3000000 {
status = "okay";
partition@0 {
label = "uboot";
reg = <0x0000000 0xc0000>;
};
partition@a0000 {
label = "env";
reg = <0xa0000 0x20000>;
};
partition@100000 {
label = "zImage";
reg = <0x100000 0x300000>;
};
partition@540000 {
label = "initrd";
reg = <0x540000 0x300000>;
};
partition@980000 {
label = "boot";
reg = <0x980000 0x1f400000>;
};
};
}; };
gpio-leds { gpio-leds {
...@@ -179,6 +150,35 @@ button@2 { ...@@ -179,6 +150,35 @@ button@2 {
}; };
}; };
&nand {
status = "okay";
partition@0 {
label = "uboot";
reg = <0x0000000 0xc0000>;
};
partition@a0000 {
label = "env";
reg = <0xa0000 0x20000>;
};
partition@100000 {
label = "zImage";
reg = <0x100000 0x300000>;
};
partition@540000 {
label = "initrd";
reg = <0x540000 0x300000>;
};
partition@980000 {
label = "boot";
reg = <0x980000 0x1f400000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -113,31 +113,6 @@ serial@12000 { ...@@ -113,31 +113,6 @@ serial@12000 {
status = "ok"; status = "ok";
}; };
nand@3000000 {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@a0000 {
label = "env";
reg = <0xa0000 0x20000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x100000 0x300000>;
};
partition@400000 {
label = "uInitrd";
reg = <0x540000 0x1000000>;
};
};
sata@80000 { sata@80000 {
status = "okay"; status = "okay";
nr-ports = <2>; nr-ports = <2>;
...@@ -195,6 +170,32 @@ OTB { ...@@ -195,6 +170,32 @@ OTB {
}; };
}; };
&nand {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@a0000 {
label = "env";
reg = <0xa0000 0x20000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x100000 0x300000>;
};
partition@400000 {
label = "uInitrd";
reg = <0x540000 0x1000000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -34,13 +34,6 @@ pmx_i2c_gpio_scl: pmx-gpio-scl { ...@@ -34,13 +34,6 @@ pmx_i2c_gpio_scl: pmx-gpio-scl {
serial@12000 { serial@12000 {
status = "ok"; status = "ok";
}; };
nand@3000000 {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "ok";
chip-delay = <25>;
};
}; };
i2c@0 { i2c@0 {
...@@ -51,6 +44,13 @@ i2c@0 { ...@@ -51,6 +44,13 @@ i2c@0 {
}; };
}; };
&nand {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "ok";
chip-delay = <25>;
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -95,37 +95,6 @@ serial@12000 { ...@@ -95,37 +95,6 @@ serial@12000 {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
nand@3000000 {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "okay";
partition@0 {
label = "uboot";
reg = <0x0000000 0x100000>;
};
partition@100000 {
label = "env";
reg = <0x100000 0x80000>;
};
partition@180000 {
label = "fdt";
reg = <0x180000 0x80000>;
};
partition@200000 {
label = "kernel";
reg = <0x200000 0x400000>;
};
partition@600000 {
label = "rootfs";
reg = <0x600000 0x1fa00000>;
};
};
rtc@10300 { rtc@10300 {
status = "disabled"; status = "disabled";
}; };
...@@ -193,6 +162,37 @@ misc { ...@@ -193,6 +162,37 @@ misc {
}; };
}; };
&nand {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "okay";
partition@0 {
label = "uboot";
reg = <0x0000000 0x100000>;
};
partition@100000 {
label = "env";
reg = <0x100000 0x80000>;
};
partition@180000 {
label = "fdt";
reg = <0x180000 0x80000>;
};
partition@200000 {
label = "kernel";
reg = <0x200000 0x400000>;
};
partition@600000 {
label = "rootfs";
reg = <0x600000 0x1fa00000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -97,36 +97,6 @@ serial@12000 { ...@@ -97,36 +97,6 @@ serial@12000 {
status = "okay"; status = "okay";
}; };
nand@3000000 {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x180000>;
read-only;
};
partition@180000 {
label = "u-boot-env";
reg = <0x180000 0x20000>;
};
partition@200000 {
label = "uImage";
reg = <0x0200000 0x600000>;
};
partition@800000 {
label = "minirootfs";
reg = <0x0800000 0x1000000>;
};
partition@1800000 {
label = "jffs2";
reg = <0x1800000 0x6800000>;
};
};
sata@80000 { sata@80000 {
status = "okay"; status = "okay";
nr-ports = <2>; nr-ports = <2>;
...@@ -207,6 +177,36 @@ usb_power: regulator@1 { ...@@ -207,6 +177,36 @@ usb_power: regulator@1 {
}; };
}; };
&nand {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x180000>;
read-only;
};
partition@180000 {
label = "u-boot-env";
reg = <0x180000 0x20000>;
};
partition@200000 {
label = "uImage";
reg = <0x0200000 0x600000>;
};
partition@800000 {
label = "minirootfs";
reg = <0x0800000 0x1000000>;
};
partition@1800000 {
label = "jffs2";
reg = <0x1800000 0x6800000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -27,49 +27,6 @@ sata@80000 { ...@@ -27,49 +27,6 @@ sata@80000 {
nr-ports = <2>; nr-ports = <2>;
}; };
nand@3000000 {
status = "okay";
chip-delay = <35>;
partition@0 {
label = "uboot";
reg = <0x0000000 0x0100000>;
read-only;
};
partition@100000 {
label = "uboot_env";
reg = <0x0100000 0x0080000>;
};
partition@180000 {
label = "key_store";
reg = <0x0180000 0x0080000>;
};
partition@200000 {
label = "info";
reg = <0x0200000 0x0080000>;
};
partition@280000 {
label = "etc";
reg = <0x0280000 0x0a00000>;
};
partition@c80000 {
label = "kernel_1";
reg = <0x0c80000 0x0a00000>;
};
partition@1680000 {
label = "rootfs1";
reg = <0x1680000 0x2fc0000>;
};
partition@4640000 {
label = "kernel_2";
reg = <0x4640000 0x0a00000>;
};
partition@5040000 {
label = "rootfs2";
reg = <0x5040000 0x2fc0000>;
};
};
pcie-controller { pcie-controller {
status = "okay"; status = "okay";
...@@ -105,3 +62,46 @@ usb0_power_off: regulator@1 { ...@@ -105,3 +62,46 @@ usb0_power_off: regulator@1 {
}; };
}; };
}; };
&nand {
status = "okay";
chip-delay = <35>;
partition@0 {
label = "uboot";
reg = <0x0000000 0x0100000>;
read-only;
};
partition@100000 {
label = "uboot_env";
reg = <0x0100000 0x0080000>;
};
partition@180000 {
label = "key_store";
reg = <0x0180000 0x0080000>;
};
partition@200000 {
label = "info";
reg = <0x0200000 0x0080000>;
};
partition@280000 {
label = "etc";
reg = <0x0280000 0x0a00000>;
};
partition@c80000 {
label = "kernel_1";
reg = <0x0c80000 0x0a00000>;
};
partition@1680000 {
label = "rootfs1";
reg = <0x1680000 0x2fc0000>;
};
partition@4640000 {
label = "kernel_2";
reg = <0x4640000 0x0a00000>;
};
partition@5040000 {
label = "rootfs2";
reg = <0x5040000 0x2fc0000>;
};
};
...@@ -29,43 +29,6 @@ serial@12100 { ...@@ -29,43 +29,6 @@ serial@12100 {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
nand@3000000 {
chip-delay = <25>;
status = "okay";
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
partition@0 {
label = "uboot";
reg = <0x0 0x90000>;
};
partition@90000 {
label = "env";
reg = <0x90000 0x44000>;
};
partition@d4000 {
label = "test";
reg = <0xd4000 0x24000>;
};
partition@f4000 {
label = "conf";
reg = <0xf4000 0x400000>;
};
partition@4f4000 {
label = "linux";
reg = <0x4f4000 0x1d20000>;
};
partition@2214000 {
label = "user";
reg = <0x2214000 0x1dec000>;
};
};
sata@80000 { sata@80000 {
nr-ports = <1>; nr-ports = <1>;
status = "okay"; status = "okay";
...@@ -167,6 +130,43 @@ button@1 { ...@@ -167,6 +130,43 @@ button@1 {
}; };
}; };
&nand {
chip-delay = <25>;
status = "okay";
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
partition@0 {
label = "uboot";
reg = <0x0 0x90000>;
};
partition@90000 {
label = "env";
reg = <0x90000 0x44000>;
};
partition@d4000 {
label = "test";
reg = <0xd4000 0x24000>;
};
partition@f4000 {
label = "conf";
reg = <0xf4000 0x400000>;
};
partition@4f4000 {
label = "linux";
reg = <0x4f4000 0x1d20000>;
};
partition@2214000 {
label = "user";
reg = <0x2214000 0x1dec000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -48,27 +48,6 @@ serial@12000 { ...@@ -48,27 +48,6 @@ serial@12000 {
pinctrl-names = "default"; pinctrl-names = "default";
status = "okay"; status = "okay";
}; };
nand@3000000 {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x400000>;
};
partition@500000 {
label = "root";
reg = <0x0500000 0x1fb00000>;
};
};
}; };
regulators { regulators {
...@@ -92,6 +71,27 @@ usb_power: regulator@1 { ...@@ -92,6 +71,27 @@ usb_power: regulator@1 {
}; };
}; };
&nand {
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x400000>;
};
partition@500000 {
label = "root";
reg = <0x0500000 0x1fb00000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -90,37 +90,6 @@ serial@12000 { ...@@ -90,37 +90,6 @@ serial@12000 {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
nand@3000000 {
status = "okay";
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x180000>;
};
partition@180000 {
label = "u-boot env";
reg = <0x0180000 0x20000>;
};
partition@200000 {
label = "uImage";
reg = <0x0200000 0x600000>;
};
partition@800000 {
label = "uInitrd";
reg = <0x0800000 0x1000000>;
};
partition@1800000 {
label = "rootfs";
reg = <0x1800000 0xe800000>;
};
};
sata@80000 { sata@80000 {
status = "okay"; status = "okay";
nr-ports = <1>; nr-ports = <1>;
...@@ -204,6 +173,37 @@ sata0_power: regulator@1 { ...@@ -204,6 +173,37 @@ sata0_power: regulator@1 {
}; };
}; };
&nand {
status = "okay";
pinctrl-0 = <&pmx_nand>;
pinctrl-names = "default";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x180000>;
};
partition@180000 {
label = "u-boot env";
reg = <0x0180000 0x20000>;
};
partition@200000 {
label = "uImage";
reg = <0x0200000 0x600000>;
};
partition@800000 {
label = "uInitrd";
reg = <0x0800000 0x1000000>;
};
partition@1800000 {
label = "rootfs";
reg = <0x1800000 0xe800000>;
};
};
&mdio { &mdio {
status = "okay"; status = "okay";
......
...@@ -45,12 +45,25 @@ crypto@0301 { ...@@ -45,12 +45,25 @@ crypto@0301 {
clocks = <&gate_clk 17>; clocks = <&gate_clk 17>;
status = "okay"; status = "okay";
}; };
nand: nand@012f {
#address-cells = <1>;
#size-cells = <1>;
cle = <0>;
ale = <1>;
bank-width = <1>;
compatible = "marvell,orion-nand";
reg = <MBUS_ID(0x01, 0x2f) 0 0x400>;
chip-delay = <25>;
/* set partition map and/or chip-delay in board dts */
clocks = <&gate_clk 7>;
status = "disabled";
};
}; };
ocp@f1000000 { ocp@f1000000 {
compatible = "simple-bus"; compatible = "simple-bus";
ranges = <0x00000000 0xf1000000 0x0100000 ranges = <0x00000000 0xf1000000 0x0100000>;
0xf4000000 0xf4000000 0x0000400>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
...@@ -206,20 +219,6 @@ ehci@50000 { ...@@ -206,20 +219,6 @@ ehci@50000 {
status = "okay"; status = "okay";
}; };
nand@3000000 {
#address-cells = <1>;
#size-cells = <1>;
cle = <0>;
ale = <1>;
bank-width = <1>;
compatible = "marvell,orion-nand";
reg = <0xf4000000 0x400>;
chip-delay = <25>;
/* set partition map and/or chip-delay in board dts */
clocks = <&gate_clk 7>;
status = "disabled";
};
i2c@11000 { i2c@11000 {
compatible = "marvell,mv64xxx-i2c"; compatible = "marvell,mv64xxx-i2c";
reg = <0x11000 0x20>; reg = <0x11000 0x20>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment