* [PATCH] powerpc/4xx: Add GPIO, SPI and MMC suport to the Arches
@ 2008-10-31 11:11 Stefan Roese
2008-10-31 12:21 ` Anton Vorontsov
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Roese @ 2008-10-31 11:11 UTC (permalink / raw)
To: linuxppc-dev
This patch adds GPIO, SPI & MMC (for onboard uSD) support to the
Arches dts
Signed-off-by: Stefan Roese <sr@denx.de>
---
arch/powerpc/boot/dts/arches.dts | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/boot/dts/arches.dts b/arch/powerpc/boot/dts/arches.dts
index d9113b1..c568095 100644
--- a/arch/powerpc/boot/dts/arches.dts
+++ b/arch/powerpc/boot/dts/arches.dts
@@ -195,6 +195,38 @@
interrupts = <0x3 0x4>;
};
+ SPI0: spi@ef600900 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ device_type = "spi";
+ compatible = "ibm,spi-460gt", "ibm,ppc4xx-spi";
+ reg = <0xef600900 7>;
+ interrupt-parent = <&UIC1>;
+ interrupts = <2 4>;
+
+ /* gpio(s) representing chip select(s) */
+ gpios = <&GPIO1 11 0>;
+
+ mmc-slot@0 {
+ compatible = "linux,mmc-spi", "mmc-spi";
+ reg = <0>;
+ spi-max-frequency = <10000000>;
+ voltage-range = <3300 3300>;
+ };
+ };
+
+ GPIO0: gpio@ef600b00 {
+ #gpio-cells = <2>;
+ compatible = "ibm,460gt-gpio","ibm,ppc4xx-gpio";
+ reg = <0xef600b00 38>;
+ };
+
+ GPIO1: gpio@ef600c00 {
+ #gpio-cells = <2>;
+ compatible = "ibm,460gt-gpio","ibm,ppc4xx-gpio";
+ reg = <0xef600c00 38>;
+ };
+
TAH0: emac-tah@ef601350 {
compatible = "ibm,tah-460gt", "ibm,tah";
reg = <0xef601350 0x00000030>;
--
1.6.0.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc/4xx: Add GPIO, SPI and MMC suport to the Arches
2008-10-31 11:11 [PATCH] powerpc/4xx: Add GPIO, SPI and MMC suport to the Arches Stefan Roese
@ 2008-10-31 12:21 ` Anton Vorontsov
2008-10-31 14:31 ` Stefan Roese
0 siblings, 1 reply; 3+ messages in thread
From: Anton Vorontsov @ 2008-10-31 12:21 UTC (permalink / raw)
To: Stefan Roese; +Cc: linuxppc-dev
Hi Stefan,
On Fri, Oct 31, 2008 at 12:11:46PM +0100, Stefan Roese wrote:
> This patch adds GPIO, SPI & MMC (for onboard uSD) support to the
> Arches dts
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> ---
> arch/powerpc/boot/dts/arches.dts | 32 ++++++++++++++++++++++++++++++++
> 1 files changed, 32 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/arches.dts b/arch/powerpc/boot/dts/arches.dts
> index d9113b1..c568095 100644
> --- a/arch/powerpc/boot/dts/arches.dts
> +++ b/arch/powerpc/boot/dts/arches.dts
> @@ -195,6 +195,38 @@
> interrupts = <0x3 0x4>;
> };
>
> + SPI0: spi@ef600900 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + device_type = "spi";
device_type isn't needed.
> + compatible = "ibm,spi-460gt", "ibm,ppc4xx-spi";
> + reg = <0xef600900 7>;
> + interrupt-parent = <&UIC1>;
> + interrupts = <2 4>;
> +
> + /* gpio(s) representing chip select(s) */
> + gpios = <&GPIO1 11 0>;
> +
> + mmc-slot@0 {
> + compatible = "linux,mmc-spi", "mmc-spi";
According to new (though still not approved) bindings, this should
be "<board-specific>-mmc-slot", "mmc-spi-slot".
> + reg = <0>;
> + spi-max-frequency = <10000000>;
> + voltage-range = <3300 3300>;
For new bindings I changed this to "voltage-ranges", so that we
could specify discontinuous range.
> + };
> + };
> +
> + GPIO0: gpio@ef600b00 {
> + #gpio-cells = <2>;
> + compatible = "ibm,460gt-gpio","ibm,ppc4xx-gpio";
> + reg = <0xef600b00 38>;
> + };
> +
> + GPIO1: gpio@ef600c00 {
> + #gpio-cells = <2>;
> + compatible = "ibm,460gt-gpio","ibm,ppc4xx-gpio";
> + reg = <0xef600c00 38>;
> + };
> +
> TAH0: emac-tah@ef601350 {
> compatible = "ibm,tah-460gt", "ibm,tah";
> reg = <0xef601350 0x00000030>;
> --
> 1.6.0.3
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc/4xx: Add GPIO, SPI and MMC suport to the Arches
2008-10-31 12:21 ` Anton Vorontsov
@ 2008-10-31 14:31 ` Stefan Roese
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2008-10-31 14:31 UTC (permalink / raw)
To: linuxppc-dev, avorontsov
Hi Anton,
thanks for your comments.
On Friday 31 October 2008, Anton Vorontsov wrote:
> > diff --git a/arch/powerpc/boot/dts/arches.dts
> > b/arch/powerpc/boot/dts/arches.dts index d9113b1..c568095 100644
> > --- a/arch/powerpc/boot/dts/arches.dts
> > +++ b/arch/powerpc/boot/dts/arches.dts
> > @@ -195,6 +195,38 @@
> > interrupts = <0x3 0x4>;
> > };
> >
> > + SPI0: spi@ef600900 {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + device_type = "spi";
>
> device_type isn't needed.
OK, will remove.
> > + compatible = "ibm,spi-460gt", "ibm,ppc4xx-spi";
> > + reg = <0xef600900 7>;
> > + interrupt-parent = <&UIC1>;
> > + interrupts = <2 4>;
> > +
> > + /* gpio(s) representing chip select(s) */
> > + gpios = <&GPIO1 11 0>;
> > +
> > + mmc-slot@0 {
> > + compatible = "linux,mmc-spi", "mmc-spi";
>
> According to new (though still not approved) bindings, this should
> be "<board-specific>-mmc-slot", "mmc-spi-slot".
So I will wait a while with re-sending until this is "approved".
> > + reg = <0>;
> > + spi-max-frequency = <10000000>;
> > + voltage-range = <3300 3300>;
>
> For new bindings I changed this to "voltage-ranges", so that we
> could specify discontinuous range.
OK, will change in next version.
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-31 14:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-31 11:11 [PATCH] powerpc/4xx: Add GPIO, SPI and MMC suport to the Arches Stefan Roese
2008-10-31 12:21 ` Anton Vorontsov
2008-10-31 14:31 ` Stefan Roese
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).