@@ -34,14 +34,15 @@
};
&gpmc {
- ranges = <0 0 0x04000000 0x10000000>;
+ ranges = <0 0 0x04000000 0x1000000>; /* CS0 space, 16MB min. */
/* gpio-irq for dma: 26 */
onenand@0,0 {
+ compatible = "ti,omap2-onenand";
#address-cells = <1>;
#size-cells = <1>;
- reg = <0 0 0x10000000>;
+ reg = <0 0 0x20000>; /* OneNAND I/O 128K */
gpmc,sync-read;
gpmc,burst-length = <16>;
@@ -501,14 +501,16 @@
};
&gpmc {
- ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
+ ranges = <0 0 0x04000000 0x1000000>; /* CS0 space, 16MB min. */
/* gpio-irq for dma: 65 */
onenand@0,0 {
+ compatible = "ti,omap2-onenand";
#address-cells = <1>;
#size-cells = <1>;
- reg = <0 0 0x10000000>;
+ reg = <0 0 0x20000>; /* OneNAND I/O 128K */
+ ti,onenand-sync-rw;
gpmc,sync-read;
gpmc,sync-write;
@@ -101,12 +101,14 @@
};
&gpmc {
- ranges = <0 0 0x04000000 0x20000000>;
+ ranges = <0 0 0x04000000 0x1000000>; /* CS0 space, 16MB min. */
onenand@0,0 {
+ compatible = "ti,omap2-onenand";
#address-cells = <1>;
#size-cells = <1>;
- reg = <0 0 0x20000000>;
+ reg = <0 0 0x20000>; /* OneNAND I/O 128K */
+ ti,onenand-sync-rw;
gpmc,sync-read;
gpmc,sync-write;
@@ -52,7 +52,7 @@
&gpmc {
ranges = <0 0 0x10000000 0x08000000>,
<1 0 0x28000000 0x08000000>,
- <2 0 0x20000000 0x10000000>,
+ <2 0 0x20000000 0x1000000>, /* CS2, 16MB min. */
<255 0 0x6e000000 0x02d4>; /* GPMC reg */
nor@0,0 {
@@ -151,10 +151,11 @@
};
onenand@2,0 {
- linux,mtd-name= "samsung,kfm2g16q2m-deb8";
+ compatible = "ti,omap2-onenand";
#address-cells = <1>;
#size-cells = <1>;
- reg = <2 0 0x10000000>;
+ reg = <2 0 0x20000>; /* OneNAND I/O 128K */
+ ti,onenand-sync-rw;
gpmc,device-width = <2>;
gpmc,mux-add-data = <2>;
@@ -173,6 +174,7 @@
gpmc,access-ns = <78>;
gpmc,wr-data-mux-bus-ns = <30>;
+ linux,mtd-name= "samsung,kfm2g16q2m-deb8";
partition@0 {
label = "xloader-onenand";
reg = <0 0x80000>;
Add compatible id, fix chip select partition size and I/O space size. OneNAND devices just need 128KB for I/O and the minimum possible chips select partition can be 16MB. Signed-off-by: Roger Quadros <rogerq@ti.com> --- arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 5 +++-- arch/arm/boot/dts/omap3-n900.dts | 6 ++++-- arch/arm/boot/dts/omap3-n950-n9.dtsi | 6 ++++-- arch/arm/boot/dts/omap3430-sdp.dts | 8 +++++--- 4 files changed, 16 insertions(+), 9 deletions(-)