提交 925d5e42 编写于 作者: M Miquel Raynal 提交者: Gregory CLEMENT

ARM: dts: armada-38x: update NAND node with new bindings

Use the new bindings of the Marvell NAND controller driver. Also adapt
the NAND controller node organization to distinguish which property is
relevant for the controller, and which one is NAND chip specific. Expose
the partitions as a subnode of the NAND chip.

Remove the 'marvell,nand-enable-arbiter' property, not needed anymore
as the new driver activates the arbiter by default for all boards which
is either needed or harmless.
Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: NGregory CLEMENT <gregory.clement@bootlin.com>
上级 c29a7cce
...@@ -135,39 +135,6 @@ ...@@ -135,39 +135,6 @@
status = "okay"; status = "okay";
}; };
nfc: flash@d0000 {
status = "okay";
num-cs = <1>;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
marvell,nand-keep-config;
marvell,nand-enable-arbiter;
nand-on-flash-bbt;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "U-Boot";
reg = <0x00000000 0x00800000>;
read-only;
};
partition@800000 {
label = "uImage";
reg = <0x00800000 0x00400000>;
read-only;
};
partition@c00000 {
label = "Root";
reg = <0x00c00000 0x3f400000>;
};
};
};
usb3@f0000 { usb3@f0000 {
status = "okay"; status = "okay";
usb-phy = <&usb3_phy>; usb-phy = <&usb3_phy>;
...@@ -233,3 +200,39 @@ ...@@ -233,3 +200,39 @@
spi-max-frequency = <54000000>; spi-max-frequency = <54000000>;
}; };
}; };
&nand_controller {
status = "okay";
nand@0 {
reg = <0>;
label = "pxa3xx_nand-0";
nand-rb = <0>;
nand-on-flash-bbt;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "U-Boot";
reg = <0x00000000 0x00800000>;
read-only;
};
partition@800000 {
label = "uImage";
reg = <0x00800000 0x00400000>;
read-only;
};
partition@c00000 {
label = "Root";
reg = <0x00c00000 0x3f400000>;
};
};
};
};
...@@ -73,6 +73,10 @@ ...@@ -73,6 +73,10 @@
&nand { &nand {
/* 128MiB */ /* 128MiB */
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
label = "u-boot"; label = "u-boot";
...@@ -136,4 +140,5 @@ ...@@ -136,4 +140,5 @@
label = "unused_area"; label = "unused_area";
reg = <0x280000 0x680000>; /* 6.5MiB */ reg = <0x280000 0x680000>; /* 6.5MiB */
}; };
};
}; };
...@@ -73,6 +73,10 @@ ...@@ -73,6 +73,10 @@
&nand { &nand {
/* 128MiB */ /* 128MiB */
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
label = "u-boot"; label = "u-boot";
...@@ -136,4 +140,5 @@ ...@@ -136,4 +140,5 @@
label = "unused_area"; label = "unused_area";
reg = <0x280000 0x680000>; /* 6.5MiB */ reg = <0x280000 0x680000>; /* 6.5MiB */
}; };
};
}; };
...@@ -81,6 +81,10 @@ ...@@ -81,6 +81,10 @@
&nand { &nand {
/* AMD/Spansion S34ML02G2 256MiB, OEM Layout */ /* AMD/Spansion S34ML02G2 256MiB, OEM Layout */
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
label = "u-boot"; label = "u-boot";
...@@ -150,6 +154,7 @@ ...@@ -150,6 +154,7 @@
label = "unused_area"; label = "unused_area";
reg = <0x260000 0x5c0000>; /* 5.75MiB */ reg = <0x260000 0x5c0000>; /* 5.75MiB */
}; };
};
}; };
&sdhci { &sdhci {
......
...@@ -73,6 +73,10 @@ ...@@ -73,6 +73,10 @@
&nand { &nand {
/* 128MiB */ /* 128MiB */
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
label = "u-boot"; label = "u-boot";
...@@ -136,4 +140,5 @@ ...@@ -136,4 +140,5 @@
label = "unused_area"; label = "unused_area";
reg = <0x280000 0x680000>; /* 6.5MiB */ reg = <0x280000 0x680000>; /* 6.5MiB */
}; };
};
}; };
...@@ -138,13 +138,19 @@ ...@@ -138,13 +138,19 @@
}; };
}; };
&nand { &nand_controller {
/* 128MiB or 256MiB */ /* 128MiB or 256MiB */
status = "okay"; status = "okay";
num-cs = <1>; #address-cells = <1>;
#size-cells = <0>;
nand: nand@0 {
reg = <0>;
label = "pxa3xx_nand-0";
nand-rb = <0>;
marvell,nand-keep-config; marvell,nand-keep-config;
marvell,nand-enable-arbiter;
nand-on-flash-bbt; nand-on-flash-bbt;
};
}; };
&mdio { &mdio {
......
...@@ -91,29 +91,6 @@ ...@@ -91,29 +91,6 @@
status = "okay"; status = "okay";
}; };
flash@d0000 {
status = "okay";
num-cs = <1>;
marvell,nand-keep-config;
marvell,nand-enable-arbiter;
nand-on-flash-bbt;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
partition@0 {
label = "U-Boot";
reg = <0 0x800000>;
};
partition@800000 {
label = "Linux";
reg = <0x800000 0x800000>;
};
partition@1000000 {
label = "Filesystem";
reg = <0x1000000 0x3f000000>;
};
};
sdhci@d8000 { sdhci@d8000 {
broken-cd; broken-cd;
wp-inverted; wp-inverted;
...@@ -165,3 +142,35 @@ ...@@ -165,3 +142,35 @@
}; };
}; };
&nand_controller {
status = "okay";
nand@0 {
reg = <0>;
label = "pxa3xx_nand-0";
nand-rb = <0>;
marvell,nand-keep-config;
nand-on-flash-bbt;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "U-Boot";
reg = <0 0x800000>;
};
partition@800000 {
label = "Linux";
reg = <0x800000 0x800000>;
};
partition@1000000 {
label = "Filesystem";
reg = <0x1000000 0x3f000000>;
};
};
};
};
...@@ -551,11 +551,11 @@ ...@@ -551,11 +551,11 @@
status = "okay"; status = "okay";
}; };
nand: flash@d0000 { nand_controller: nand-controller@d0000 {
compatible = "marvell,armada370-nand"; compatible = "marvell,armada370-nand-controller";
reg = <0xd0000 0x54>; reg = <0xd0000 0x54>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <0>;
interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&coredivclk 0>; clocks = <&coredivclk 0>;
status = "disabled"; status = "disabled";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册