diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-01-25 13:11:06 -0500 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-03-15 11:29:12 -0400 |
commit | d6a016616ba834b7da7653effb98d413acde7aa2 (patch) | |
tree | 444b749ce7c53737677bfff84f036ce3f685060a /arch/arm/boot/dts | |
parent | 770d7c39af940da24dd4c2c048576d778ac0abd4 (diff) |
atmel/nand: add DT support
Use a local copy of board informatin and fill with DT data.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r-- | arch/arm/boot/dts/at91sam9g20.dtsi | 16 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9g45.dtsi | 16 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9m10g45ek.dts | 25 | ||||
-rw-r--r-- | arch/arm/boot/dts/usb_a9g20.dts | 44 |
4 files changed, 99 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/at91sam9g20.dtsi b/arch/arm/boot/dts/at91sam9g20.dtsi index a100db03ec90..4b0dc99b9319 100644 --- a/arch/arm/boot/dts/at91sam9g20.dtsi +++ b/arch/arm/boot/dts/at91sam9g20.dtsi | |||
@@ -172,5 +172,21 @@ | |||
172 | status = "disabled"; | 172 | status = "disabled"; |
173 | }; | 173 | }; |
174 | }; | 174 | }; |
175 | |||
176 | nand0: nand@40000000 { | ||
177 | compatible = "atmel,at91rm9200-nand"; | ||
178 | #address-cells = <1>; | ||
179 | #size-cells = <1>; | ||
180 | reg = <0x40000000 0x10000000 | ||
181 | 0xffffe800 0x200 | ||
182 | >; | ||
183 | atmel,nand-addr-offset = <21>; | ||
184 | atmel,nand-cmd-offset = <22>; | ||
185 | gpios = <&pioC 13 0 | ||
186 | &pioC 14 0 | ||
187 | 0 | ||
188 | >; | ||
189 | status = "disabled"; | ||
190 | }; | ||
175 | }; | 191 | }; |
176 | }; | 192 | }; |
diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi index f779667159b1..d79021b831c4 100644 --- a/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/arch/arm/boot/dts/at91sam9g45.dtsi | |||
@@ -180,5 +180,21 @@ | |||
180 | status = "disabled"; | 180 | status = "disabled"; |
181 | }; | 181 | }; |
182 | }; | 182 | }; |
183 | |||
184 | nand0: nand@40000000 { | ||
185 | compatible = "atmel,at91rm9200-nand"; | ||
186 | #address-cells = <1>; | ||
187 | #size-cells = <1>; | ||
188 | reg = <0x40000000 0x10000000 | ||
189 | 0xffffe200 0x200 | ||
190 | >; | ||
191 | atmel,nand-addr-offset = <21>; | ||
192 | atmel,nand-cmd-offset = <22>; | ||
193 | gpios = <&pioC 8 0 | ||
194 | &pioC 14 0 | ||
195 | 0 | ||
196 | >; | ||
197 | status = "disabled"; | ||
198 | }; | ||
183 | }; | 199 | }; |
184 | }; | 200 | }; |
diff --git a/arch/arm/boot/dts/at91sam9m10g45ek.dts b/arch/arm/boot/dts/at91sam9m10g45ek.dts index 15e25f903cad..fd4531135431 100644 --- a/arch/arm/boot/dts/at91sam9m10g45ek.dts +++ b/arch/arm/boot/dts/at91sam9m10g45ek.dts | |||
@@ -14,7 +14,7 @@ | |||
14 | compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9"; | 14 | compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9"; |
15 | 15 | ||
16 | chosen { | 16 | chosen { |
17 | bootargs = "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap/uboot/kernel)ro,60M(rootfs),-(data) root=/dev/mtdblock1 rw rootfstype=jffs2"; | 17 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2"; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | memory@70000000 { | 20 | memory@70000000 { |
@@ -36,6 +36,29 @@ | |||
36 | status = "okay"; | 36 | status = "okay"; |
37 | }; | 37 | }; |
38 | }; | 38 | }; |
39 | |||
40 | nand0: nand@40000000 { | ||
41 | nand-bus-width = <8>; | ||
42 | nand-ecc-mode = "soft"; | ||
43 | nand-on-flash-bbt; | ||
44 | status = "okay"; | ||
45 | |||
46 | boot@0 { | ||
47 | label = "bootstrap/uboot/kernel"; | ||
48 | reg = <0x0 0x400000>; | ||
49 | }; | ||
50 | |||
51 | rootfs@400000 { | ||
52 | label = "rootfs"; | ||
53 | reg = <0x400000 0x3C00000>; | ||
54 | }; | ||
55 | |||
56 | data@4000000 { | ||
57 | label = "data"; | ||
58 | reg = <0x4000000 0xC000000>; | ||
59 | }; | ||
60 | |||
61 | }; | ||
39 | }; | 62 | }; |
40 | 63 | ||
41 | leds { | 64 | leds { |
diff --git a/arch/arm/boot/dts/usb_a9g20.dts b/arch/arm/boot/dts/usb_a9g20.dts index d74545a2a77c..71d83ef316df 100644 --- a/arch/arm/boot/dts/usb_a9g20.dts +++ b/arch/arm/boot/dts/usb_a9g20.dts | |||
@@ -13,7 +13,7 @@ | |||
13 | compatible = "calao,usb-a9g20", "atmel,at91sam9g20", "atmel,at91sam9"; | 13 | compatible = "calao,usb-a9g20", "atmel,at91sam9g20", "atmel,at91sam9"; |
14 | 14 | ||
15 | chosen { | 15 | chosen { |
16 | bootargs = "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:128k(at91bootstrap),256k(barebox)ro,128k(bareboxenv),128k(bareboxenv2),4M(kernel),120M(rootfs),-(data) root=/dev/mtdblock5 rw rootfstype=ubifs"; | 16 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs"; |
17 | }; | 17 | }; |
18 | 18 | ||
19 | memory@20000000 { | 19 | memory@20000000 { |
@@ -31,6 +31,48 @@ | |||
31 | status = "okay"; | 31 | status = "okay"; |
32 | }; | 32 | }; |
33 | }; | 33 | }; |
34 | |||
35 | nand0: nand@40000000 { | ||
36 | nand-bus-width = <8>; | ||
37 | nand-ecc-mode = "soft"; | ||
38 | nand-on-flash-bbt; | ||
39 | status = "okay"; | ||
40 | |||
41 | at91bootstrap@0 { | ||
42 | label = "at91bootstrap"; | ||
43 | reg = <0x0 0x20000>; | ||
44 | }; | ||
45 | |||
46 | barebox@20000 { | ||
47 | label = "barebox"; | ||
48 | reg = <0x20000 0x40000>; | ||
49 | }; | ||
50 | |||
51 | bareboxenv@60000 { | ||
52 | label = "bareboxenv"; | ||
53 | reg = <0x60000 0x20000>; | ||
54 | }; | ||
55 | |||
56 | bareboxenv2@80000 { | ||
57 | label = "bareboxenv2"; | ||
58 | reg = <0x80000 0x20000>; | ||
59 | }; | ||
60 | |||
61 | kernel@a0000 { | ||
62 | label = "kernel"; | ||
63 | reg = <0xa0000 0x400000>; | ||
64 | }; | ||
65 | |||
66 | rootfs@4a0000 { | ||
67 | label = "rootfs"; | ||
68 | reg = <0x4a0000 0x7800000>; | ||
69 | }; | ||
70 | |||
71 | data@7ca0000 { | ||
72 | label = "data"; | ||
73 | reg = <0x7ca0000 0x8360000>; | ||
74 | }; | ||
75 | }; | ||
34 | }; | 76 | }; |
35 | 77 | ||
36 | leds { | 78 | leds { |