linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] SPI: Use fsl_spi instead of mpc83xx_spi
@ 2007-10-03 15:44 Peter Korsgaard
  2007-10-03 15:52 ` Grant Likely
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2007-10-03 15:44 UTC (permalink / raw)
  To: galak, linuxppc-dev

According to booting-without-of.txt, compatible should be "fsl_spi" and
mode "cpu" or "qe" for the fsl SPI controllers.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 arch/powerpc/boot/dts/mpc8313erdb.dts    |    4 ++--
 arch/powerpc/boot/dts/mpc8349emitx.dts   |    4 ++--
 arch/powerpc/boot/dts/mpc8349emitxgp.dts |    4 ++--
 arch/powerpc/boot/dts/mpc834x_mds.dts    |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b/arch/powerpc/boot/dts/mpc8313erdb.dts
index a8eadc8..9e7eba9 100644
--- a/arch/powerpc/boot/dts/mpc8313erdb.dts
+++ b/arch/powerpc/boot/dts/mpc8313erdb.dts
@@ -71,11 +71,11 @@
 
 		spi@7000 {
 			device_type = "spi";
-			compatible = "mpc83xx_spi";
+			compatible = "fsl_spi";
 			reg = <7000 1000>;
 			interrupts = <10 8>;
 			interrupt-parent = < &ipic >;
-			mode = <0>;
+			mode = "cpu";
 		};
 
 		/* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts
index e0cb2a7..b2b3995 100644
--- a/arch/powerpc/boot/dts/mpc8349emitx.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitx.dts
@@ -70,11 +70,11 @@
 
 		spi@7000 {
 			device_type = "spi";
-			compatible = "mpc83xx_spi";
+			compatible = "fsl_spi";
 			reg = <7000 1000>;
 			interrupts = <10 8>;
 			interrupt-parent = < &ipic >;
-			mode = <0>;
+			mode = "cpu";
 		};
 
 		usb@22000 {
diff --git a/arch/powerpc/boot/dts/mpc8349emitxgp.dts b/arch/powerpc/boot/dts/mpc8349emitxgp.dts
index fa852ba..cf8c72a 100644
--- a/arch/powerpc/boot/dts/mpc8349emitxgp.dts
+++ b/arch/powerpc/boot/dts/mpc8349emitxgp.dts
@@ -70,11 +70,11 @@
 
 		spi@7000 {
 			device_type = "spi";
-			compatible = "mpc83xx_spi";
+			compatible = "fsl_spi";
 			reg = <7000 1000>;
 			interrupts = <10 8>;
 			interrupt-parent = < &ipic >;
-			mode = <0>;
+			mode = "cpu";
 		};
 
 		usb@23000 {
diff --git a/arch/powerpc/boot/dts/mpc834x_mds.dts b/arch/powerpc/boot/dts/mpc834x_mds.dts
index 1b8882e..cf7b84f 100644
--- a/arch/powerpc/boot/dts/mpc834x_mds.dts
+++ b/arch/powerpc/boot/dts/mpc834x_mds.dts
@@ -76,11 +76,11 @@
 
 		spi@7000 {
 			device_type = "spi";
-			compatible = "mpc83xx_spi";
+			compatible = "fsl_spi";
 			reg = <7000 1000>;
 			interrupts = <10 8>;
 			interrupt-parent = < &ipic >;
-			mode = <0>;
+			mode = "cpu";
 		};
 
 		/* phy type (ULPI or SERIAL) are only types supportted for MPH */
-- 
1.5.3.2


-- 
Bye, Peter Korsgaard

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] SPI: Use fsl_spi instead of mpc83xx_spi
  2007-10-03 15:44 [PATCH] SPI: Use fsl_spi instead of mpc83xx_spi Peter Korsgaard
@ 2007-10-03 15:52 ` Grant Likely
  2007-10-03 16:00   ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2007-10-03 15:52 UTC (permalink / raw)
  To: Peter Korsgaard; +Cc: linuxppc-dev

On 10/3/07, Peter Korsgaard <jacmet@sunsite.dk> wrote:
> According to booting-without-of.txt, compatible should be "fsl_spi" and
> mode "cpu" or "qe" for the fsl SPI controllers.
>
> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
> ---
>  arch/powerpc/boot/dts/mpc8313erdb.dts    |    4 ++--
>  arch/powerpc/boot/dts/mpc8349emitx.dts   |    4 ++--
>  arch/powerpc/boot/dts/mpc8349emitxgp.dts |    4 ++--
>  arch/powerpc/boot/dts/mpc834x_mds.dts    |    4 ++--
>  4 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b/arch/powerpc/boot/dts/mpc8313erdb.dts
> index a8eadc8..9e7eba9 100644
> --- a/arch/powerpc/boot/dts/mpc8313erdb.dts
> +++ b/arch/powerpc/boot/dts/mpc8313erdb.dts
> @@ -71,11 +71,11 @@
>
>                 spi@7000 {
>                         device_type = "spi";
> -                       compatible = "mpc83xx_spi";
> +                       compatible = "fsl_spi";

Compatible is a list property; this might be more appropriate:

compatible = "fsl,mpc8313_spi", "fsl_spi";

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] SPI: Use fsl_spi instead of mpc83xx_spi
  2007-10-03 15:52 ` Grant Likely
@ 2007-10-03 16:00   ` Peter Korsgaard
  2007-10-04  1:54     ` David Gibson
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2007-10-03 16:00 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-dev

>>>>> "Grant" == Grant Likely <grant.likely@secretlab.ca> writes:

Hi,

 >> -                       compatible = "mpc83xx_spi";
 >> +                       compatible = "fsl_spi";

 Grant> Compatible is a list property; this might be more appropriate:

 Grant> compatible = "fsl,mpc8313_spi", "fsl_spi";

Fine by me, I'm just following booting-without-of.txt.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] SPI: Use fsl_spi instead of mpc83xx_spi
  2007-10-03 16:00   ` Peter Korsgaard
@ 2007-10-04  1:54     ` David Gibson
  0 siblings, 0 replies; 4+ messages in thread
From: David Gibson @ 2007-10-04  1:54 UTC (permalink / raw)
  To: Peter Korsgaard; +Cc: linuxppc-dev

On Wed, Oct 03, 2007 at 06:00:37PM +0200, Peter Korsgaard wrote:
> >>>>> "Grant" == Grant Likely <grant.likely@secretlab.ca> writes:
> 
> Hi,
> 
>  >> -                       compatible = "mpc83xx_spi";
>  >> +                       compatible = "fsl_spi";
> 
>  Grant> Compatible is a list property; this might be more appropriate:
> 
>  Grant> compatible = "fsl,mpc8313_spi", "fsl_spi";
> 
> Fine by me, I'm just following booting-without-of.txt.

Yeah, some of the older bits of booting-without-of.txt are a bit
crufty.  There should certainly be a specific compatible value in the
list as well as the general "fsl_spi" one.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-04  1:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 15:44 [PATCH] SPI: Use fsl_spi instead of mpc83xx_spi Peter Korsgaard
2007-10-03 15:52 ` Grant Likely
2007-10-03 16:00   ` Peter Korsgaard
2007-10-04  1:54     ` David Gibson

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).