SPI: Use fsl_spi instead of mpc83xx_spi
Subsystems (2)
PATCH 1/1 SPI: Use fsl_spi instead of mpc83xx_spi
According to booting-without-of.txt, compatible should be "fsl_spi" and mode "cpu" or "qe" for the fsl SPI controllers.
--- 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(-)
arch/powerpc/boot/dts/mpc8313erdb.dts +2 -2
@@ -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) */
arch/powerpc/boot/dts/mpc8349emitx.dts +2 -2
@@ -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 {
arch/powerpc/boot/dts/mpc8349emitxgp.dts +2 -2
@@ -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 {
arch/powerpc/boot/dts/mpc834x_mds.dts +2 -2
@@ -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 */
Signature · 5 lines
1.5.3.2 -- Bye, Peter Korsgaard
Quoted 16 lines · Peter Korsgaard
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 <[email protected]>--- 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(-)arch/powerpc/boot/dts/mpc8313erdb.dts +0
-0
arch/powerpc/boot/dts/mpc8313erdb.dts line 74
Quoted 5 lines
arch/powerpc/boot/dts/mpc8313erdb.dts +1
-1@@ -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.
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Grant" == Grant Likely <[email protected]> writes:
Hi,
Quoted 2 lines
Review
Quoted 2 lines
(quoted diff) +1
-1- 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.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 4 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Grant" == Grant Likely <[email protected]> writes:
Hi,
Quoted 8 lines
Quoted 2 lines
Review
Quoted 2 lines
(quoted diff) +1
-1- 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.
Signature · 4 lines
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