aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-05-01 22:16:59 -0400
committerKumar Gala <galak@kernel.crashing.org>2009-05-19 01:50:35 -0400
commitbd78c33a096a73f09b1b998a481290e229382a8b (patch)
treeb722cde3e760b7cd264a70b0d3e74ce17585f44d /arch
parent5e8306fe5de2ce0c3272abd4b8ab20323a8bf0ff (diff)
powerpc/85xx: Add STMicro M25P40 serial flash support for MPC8569E-MDS
For serial flash support we need to: - Add QE Par IO Bank E device tree node, a GPIO from this bank is used for SPI chip-select line; - Add serial-flash node; - Add proper module alias into of/base.c. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/boot/dts/mpc8569mds.dts26
1 files changed, 23 insertions, 3 deletions
diff --git a/arch/powerpc/boot/dts/mpc8569mds.dts b/arch/powerpc/boot/dts/mpc8569mds.dts
index ece3b305cd06..23a102ea9143 100644
--- a/arch/powerpc/boot/dts/mpc8569mds.dts
+++ b/arch/powerpc/boot/dts/mpc8569mds.dts
@@ -259,10 +259,21 @@
259 }; 259 };
260 260
261 par_io@e0100 { 261 par_io@e0100 {
262 #address-cells = <1>;
263 #size-cells = <1>;
262 reg = <0xe0100 0x100>; 264 reg = <0xe0100 0x100>;
265 ranges = <0x0 0xe0100 0x100>;
263 device_type = "par_io"; 266 device_type = "par_io";
264 num-ports = <7>; 267 num-ports = <7>;
265 268
269 qe_pio_e: gpio-controller@80 {
270 #gpio-cells = <2>;
271 compatible = "fsl,mpc8569-qe-pario-bank",
272 "fsl,mpc8323-qe-pario-bank";
273 reg = <0x80 0x18>;
274 gpio-controller;
275 };
276
266 pio1: ucc_pin@01 { 277 pio1: ucc_pin@01 {
267 pio-map = < 278 pio-map = <
268 /* port pin dir open_drain assignment has_irq */ 279 /* port pin dir open_drain assignment has_irq */
@@ -368,12 +379,21 @@
368 }; 379 };
369 380
370 spi@4c0 { 381 spi@4c0 {
371 cell-index = <0>; 382 #address-cells = <1>;
372 compatible = "fsl,spi"; 383 #size-cells = <0>;
384 compatible = "fsl,mpc8569-qe-spi", "fsl,spi";
373 reg = <0x4c0 0x40>; 385 reg = <0x4c0 0x40>;
386 cell-index = <0>;
374 interrupts = <2>; 387 interrupts = <2>;
375 interrupt-parent = <&qeic>; 388 interrupt-parent = <&qeic>;
376 mode = "cpu"; 389 gpios = <&qe_pio_e 30 0>;
390 mode = "cpu-qe";
391
392 serial-flash@0 {
393 compatible = "stm,m25p40";
394 reg = <0>;
395 spi-max-frequency = <25000000>;
396 };
377 }; 397 };
378 398
379 spi@500 { 399 spi@500 {