From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, Haiying Wang <Haiying.Wang@freescale.com>
Subject: [PATCH 6/6] powerpc/85xx: Add STMicro M25P40 serial flash support for MPC8569E-MDS
Date: Sat, 2 May 2009 06:16:59 +0400 [thread overview]
Message-ID: <20090502021659.GF18281@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20090502021611.GA17570@oksana.dev.rtsoft.ru>
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>
---
arch/powerpc/boot/dts/mpc8569mds.dts | 26 +++++++++++++++++++++++---
drivers/of/base.c | 1 +
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/boot/dts/mpc8569mds.dts b/arch/powerpc/boot/dts/mpc8569mds.dts
index 975f2c5..e06ee92 100644
--- a/arch/powerpc/boot/dts/mpc8569mds.dts
+++ b/arch/powerpc/boot/dts/mpc8569mds.dts
@@ -260,10 +260,21 @@
};
par_io@e0100 {
+ #address-cells = <1>;
+ #size-cells = <1>;
reg = <0xe0100 0x100>;
+ ranges = <0x0 0xe0100 0x100>;
device_type = "par_io";
num-ports = <7>;
+ qe_pio_e: gpio-controller@80 {
+ #gpio-cells = <2>;
+ compatible = "fsl,mpc8569-qe-pario-bank",
+ "fsl,mpc8323-qe-pario-bank";
+ reg = <0x80 0x18>;
+ gpio-controller;
+ };
+
pio1: ucc_pin@01 {
pio-map = <
/* port pin dir open_drain assignment has_irq */
@@ -369,12 +380,21 @@
};
spi@4c0 {
- cell-index = <0>;
- compatible = "fsl,spi";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "fsl,mpc8569-qe-spi", "fsl,spi";
reg = <0x4c0 0x40>;
+ cell-index = <0>;
interrupts = <2>;
interrupt-parent = <&qeic>;
- mode = "cpu";
+ gpios = <&qe_pio_e 30 0>;
+ mode = "cpu-qe";
+
+ serial-flash@0 {
+ compatible = "stm,m25p40";
+ reg = <0>;
+ spi-max-frequency = <25000000>;
+ };
};
spi@500 {
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 41c5dfd..391f91c 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -447,6 +447,7 @@ struct of_modalias_table {
static struct of_modalias_table of_modalias_table[] = {
{ "fsl,mcu-mpc8349emitx", "mcu-mpc8349emitx" },
{ "mmc-spi-slot", "mmc_spi" },
+ { "stm,m25p40", "m25p80" },
};
/**
--
1.6.2.2
next prev parent reply other threads:[~2009-05-02 2:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-02 2:16 [PATCH 0/6] Some fixes and enhancements for MPC8569E-MDS boards Anton Vorontsov
2009-05-02 2:16 ` [PATCH 1/6] powerpc/85xx: Add PCI IDs for MPC8569 family processors Anton Vorontsov
2009-05-08 14:10 ` Kumar Gala
2009-05-02 2:16 ` [PATCH 2/6] powerpc/85xx: Fix mpc8569emds' crypto node to include SNOW unit Anton Vorontsov
2009-05-08 14:11 ` Kumar Gala
2009-05-02 2:16 ` [PATCH 3/6] powerpc/85xx: Fix reg and interrupts for mpc8569emds' localbus, add NAND Anton Vorontsov
2009-05-08 14:11 ` Kumar Gala
2009-05-02 2:16 ` [PATCH 4/6] powerpc/85xx: Add eSDHC support for MPC8569E-MDS boards Anton Vorontsov
2009-05-08 14:14 ` Kumar Gala
2009-05-02 2:16 ` [PATCH 5/6] powerpc/85xx: Enable Serial RapidIO for MPC85xx MDS boards Anton Vorontsov
2009-05-08 14:14 ` Kumar Gala
2009-05-02 2:16 ` Anton Vorontsov [this message]
2009-05-08 14:13 ` [PATCH 6/6] powerpc/85xx: Add STMicro M25P40 serial flash support for MPC8569E-MDS Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090502021659.GF18281@oksana.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=Haiying.Wang@freescale.com \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).