Skip to contentSkip to conversation

Fix mpc52xx fdt to use correct device_type for sound devices

POWERPC [email protected] 2 participants 2 messages Jan 2, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

From: Grant Likely <[email protected]>

---

While technically this is not a bug fix as it doesn't touch any C code; However, it does affect the documented interface for mpc52xx device trees. Sound devices should be using 'sound' for the device_type field; not the type of sound interface. I'd like to fix this issue before 2.6.20 to avoid any confusion between .20 and .21

Cheers,
g.

 .../powerpc/mpc52xx-device-tree-bindings.txt       |    4 ++--
 arch/powerpc/boot/dts/lite5200.dts                 |    4 ++--
 arch/powerpc/boot/dts/lite5200b.dts                |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
Documentation/powerpc/mpc52xx-device-tree-bindings.txt +2 -2
index d077d76..7fb3b8a 100644
@@ -157,8 +157,8 @@ rtc@<addr>	rtc		*-rtc		Real time clock
 mscan@<addr>	mscan		*-mscan		CAN bus controller
 pci@<addr>	pci		*-pci		PCI bridge
 serial@<addr>	serial		*-psc-uart	PSC in serial mode
-i2s@<addr>	i2s		*-psc-i2s	PSC in i2s mode
-ac97@<addr>	ac97		*-psc-ac97	PSC in ac97 mode
+i2s@<addr>	sound		*-psc-i2s	PSC in i2s mode
+ac97@<addr>	sound		*-psc-ac97	PSC in ac97 mode
 spi@<addr>	spi		*-psc-spi	PSC in spi mode
 irda@<addr>	irda		*-psc-irda	PSC in IrDA mode
 spi@<addr>	spi		*-spi		MPC52xx spi device
arch/powerpc/boot/dts/lite5200.dts +2 -2
index 8bc0d25..a8efb59 100644
@@ -238,7 +238,7 @@
 
 		// PSC3 in CODEC mode example
 		i2s@2400 {		// PSC3
-			device_type = "i2s";
+			device_type = "sound";
 			compatible = "mpc5200-psc-i2s\0mpc52xx-psc-i2s";
 			reg = <2400 100>;
 			interrupts = <2 3 0>;
@@ -265,7 +265,7 @@
 
 		// PSC6 in AC97 mode example
 		ac97@2c00 {		// PSC6
-			device_type = "ac97";
+			device_type = "sound";
 			compatible = "mpc5200-psc-ac97\0mpc52xx-psc-ac97";
 			reg = <2c00 100>;
 			interrupts = <2 4 0>;
arch/powerpc/boot/dts/lite5200b.dts +2 -2
index 81cb764..1aabee4 100644
@@ -243,7 +243,7 @@
 
 		// PSC3 in CODEC mode example
 		i2s@2400 {		// PSC3
-			device_type = "i2s";
+			device_type = "sound";
 			compatible = "mpc5200b-psc-i2s\0mpc52xx-psc-i2s";
 			reg = <2400 100>;
 			interrupts = <2 3 0>;
@@ -270,7 +270,7 @@
 
 		// PSC6 in AC97 mode example
 		ac97@2c00 {		// PSC6
-			device_type = "ac97";
+			device_type = "sound";
 			compatible = "mpc5200b-psc-ac97\0mpc52xx-psc-ac97";
 			reg = <2c00 100>;
 			interrupts = <2 4 0>;
Signature · 1 line
1.4.3.rc2.g0503
#1 lore raw
Quoted 4 lines · [email protected] wrote:

From: Grant Likely <[email protected]>

Quoted 76 lines

---

While technically this is not a bug fix as it doesn't touch any C code; However, it does affect the documented interface for mpc52xx device trees. Sound devices should be using 'sound' for the device_type field; not the type of sound interface. I'd like to fix this issue before 2.6.20 to avoid any confusion between .20 and .21

Cheers,
g.

 .../powerpc/mpc52xx-device-tree-bindings.txt       |    4 ++--
 arch/powerpc/boot/dts/lite5200.dts                 |    4 ++--
 arch/powerpc/boot/dts/lite5200b.dts                |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
Documentation/powerpc/mpc52xx-device-tree-bindings.txt +2 -2
index d077d76..7fb3b8a 100644
@@ -157,8 +157,8 @@ rtc@<addr>	rtc		*-rtc		Real time clock
 mscan@<addr>	mscan		*-mscan		CAN bus controller
 pci@<addr>	pci		*-pci		PCI bridge
 serial@<addr>	serial		*-psc-uart	PSC in serial mode
-i2s@<addr>	i2s		*-psc-i2s	PSC in i2s mode
-ac97@<addr>	ac97		*-psc-ac97	PSC in ac97 mode
+i2s@<addr>	sound		*-psc-i2s	PSC in i2s mode
+ac97@<addr>	sound		*-psc-ac97	PSC in ac97 mode
 spi@<addr>	spi		*-psc-spi	PSC in spi mode
 irda@<addr>	irda		*-psc-irda	PSC in IrDA mode
 spi@<addr>	spi		*-spi		MPC52xx spi device
arch/powerpc/boot/dts/lite5200.dts +2 -2
index 8bc0d25..a8efb59 100644
@@ -238,7 +238,7 @@
 
 		// PSC3 in CODEC mode example
 		i2s@2400 {		// PSC3
-			device_type = "i2s";
+			device_type = "sound";
 			compatible = "mpc5200-psc-i2s\0mpc52xx-psc-i2s";
 			reg = <2400 100>;
 			interrupts = <2 3 0>;
@@ -265,7 +265,7 @@
 
 		// PSC6 in AC97 mode example
 		ac97@2c00 {		// PSC6
-			device_type = "ac97";
+			device_type = "sound";
 			compatible = "mpc5200-psc-ac97\0mpc52xx-psc-ac97";
 			reg = <2c00 100>;
 			interrupts = <2 4 0>;
arch/powerpc/boot/dts/lite5200b.dts +2 -2
index 81cb764..1aabee4 100644
@@ -243,7 +243,7 @@
 
 		// PSC3 in CODEC mode example
 		i2s@2400 {		// PSC3
-			device_type = "i2s";
+			device_type = "sound";
 			compatible = "mpc5200b-psc-i2s\0mpc52xx-psc-i2s";
 			reg = <2400 100>;
 			interrupts = <2 3 0>;
@@ -270,7 +270,7 @@
 
 		// PSC6 in AC97 mode example
 		ac97@2c00 {		// PSC6
-			device_type = "ac97";
+			device_type = "sound";
 			compatible = "mpc5200b-psc-ac97\0mpc52xx-psc-ac97";
 			reg = <2c00 100>;
 			interrupts = <2 4 0>;