Skip to content

Commit df73b7f

Browse files
Dmitry Lifshitztmlind
authored andcommitted
ARM: dts: cm-t3x: add NAND support
CM-T3517, CM-T3530 and CM-T3730 features NAND storage chip connected to GPMC bus. Add GPMC DT entry into the root DT file omap3-cm-t3x.dtsi, common for all three modules. NAND timings are calculated to be safe for CM-T3x devices as it works now in non DT boot (in this case the timings are updated by U-Boot). Update GPMC ranges in boards DT files to include all connected devices. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Acked-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 7a03f2c commit df73b7f

File tree

5 files changed

+70
-10
lines changed

5 files changed

+70
-10
lines changed

arch/arm/boot/dts/omap3-cm-t3x.dtsi

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,61 @@
259259
pinctrl-names = "default";
260260
pinctrl-0 = <&mcbsp2_pins>;
261261
};
262+
263+
&gpmc {
264+
ranges = <0 0 0x00000000 0x01000000>;
265+
266+
nand@0,0 {
267+
reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
268+
nand-bus-width = <8>;
269+
gpmc,device-width = <1>;
270+
ti,nand-ecc-opt = "sw";
271+
272+
gpmc,cs-on-ns = <0>;
273+
gpmc,cs-rd-off-ns = <120>;
274+
gpmc,cs-wr-off-ns = <120>;
275+
276+
gpmc,adv-on-ns = <0>;
277+
gpmc,adv-rd-off-ns = <120>;
278+
gpmc,adv-wr-off-ns = <120>;
279+
280+
gpmc,we-on-ns = <6>;
281+
gpmc,we-off-ns = <90>;
282+
283+
gpmc,oe-on-ns = <6>;
284+
gpmc,oe-off-ns = <90>;
285+
286+
gpmc,page-burst-access-ns = <6>;
287+
gpmc,access-ns = <72>;
288+
gpmc,cycle2cycle-delay-ns = <60>;
289+
290+
gpmc,rd-cycle-ns = <120>;
291+
gpmc,wr-cycle-ns = <120>;
292+
gpmc,wr-access-ns = <186>;
293+
gpmc,wr-data-mux-bus-ns = <90>;
294+
295+
#address-cells = <1>;
296+
#size-cells = <1>;
297+
298+
partition@0 {
299+
label = "xloader";
300+
reg = <0 0x80000>;
301+
};
302+
partition@0x80000 {
303+
label = "uboot";
304+
reg = <0x80000 0x1e0000>;
305+
};
306+
partition@0x260000 {
307+
label = "uboot environment";
308+
reg = <0x260000 0x40000>;
309+
};
310+
partition@0x2a0000 {
311+
label = "linux";
312+
reg = <0x2a0000 0x400000>;
313+
};
314+
partition@0x6a0000 {
315+
label = "rootfs";
316+
reg = <0x6a0000 0x1f880000>;
317+
};
318+
};
319+
};

arch/arm/boot/dts/omap3-cm-t3x30.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
#include "omap-gpmc-smsc911x.dtsi"
5151

5252
&gpmc {
53-
ranges = <5 0 0x2c000000 0x01000000>;
53+
ranges = <5 0 0x2c000000 0x01000000>, /* CM-T3x30 SMSC9x Eth */
54+
<0 0 0x00000000 0x01000000>; /* CM-T3x NAND */
5455

5556
smsc1: ethernet@gpmc {
5657
compatible = "smsc,lan9221", "smsc,lan9115";

arch/arm/boot/dts/omap3-sbc-t3517.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@
6969
};
7070
};
7171

72+
&gpmc {
73+
ranges = <4 0 0x2d000000 0x01000000>, /* SB-T35 SMSC9x Eth */
74+
<0 0 0x00000000 0x01000000>; /* CM-T3x NAND */
75+
};

arch/arm/boot/dts/omap3-sbc-t3530.dts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@
2626
};
2727
};
2828

29-
/*
30-
* The following ranges correspond to SMSC9x eth chips on CM-T3530 CoM and
31-
* SB-T35 baseboard respectively.
32-
* This setting includes both chips in SBC-T3530 board device tree.
33-
*/
3429
&gpmc {
35-
ranges = <5 0 0x2c000000 0x01000000>,
36-
<4 0 0x2d000000 0x01000000>;
30+
ranges = <5 0 0x2c000000 0x01000000>, /* CM-T3x30 SMSC9x Eth */
31+
<4 0 0x2d000000 0x01000000>, /* SB-T35 SMSC9x Eth */
32+
<0 0 0x00000000 0x01000000>; /* CM-T3x NAND */
3733
};
3834

3935
&mmc1 {

arch/arm/boot/dts/omap3-sbc-t3730.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
};
2828

2929
&gpmc {
30-
ranges = <5 0 0x2c000000 0x01000000>,
31-
<4 0 0x2d000000 0x01000000>;
30+
ranges = <5 0 0x2c000000 0x01000000>, /* CM-T3x30 SMSC9x Eth */
31+
<4 0 0x2d000000 0x01000000>, /* SB-T35 SMSC9x Eth */
32+
<0 0 0x00000000 0x01000000>; /* CM-T3x NAND */
3233
};
3334

3435
&dss {

0 commit comments

Comments
 (0)