Skip to contentSkip to conversation

85xx: correct vendor prefix in DTS files for TQM85xx modules

PATCH Superseded Wolfgang Grandegger 2 participants 3 messages Jun 5, 2008 – Jun 6, 2008

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/4 85xx: correct vendor prefix in DTS files for TQM85xx modules

Like for the TQM5200, the vendor prefix "tqc," is now used for all TQM85xx modules from TQ-Components GmbH (http://www.tqc.de) in the corresponding DTS files.

---
 arch/powerpc/boot/dts/tqm8540.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8541.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8555.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8560.dts     |    4 ++--
 arch/powerpc/platforms/85xx/tqm85xx.c |    8 ++++----
 5 files changed, 12 insertions(+), 12 deletions(-)
arch/powerpc/boot/dts/tqm8540.dts +2 -2
Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8540.dts
===================================================================
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8540";
-	compatible = "tqm,8540", "tqm,85xx";
+	model = "tqc,8540";
+	compatible = "tqc,8540", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
arch/powerpc/boot/dts/tqm8541.dts +2 -2
Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8541.dts
===================================================================
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8541";
-	compatible = "tqm,8541", "tqm,85xx";
+	model = "tqc,8541";
+	compatible = "tqc,8541", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
arch/powerpc/boot/dts/tqm8555.dts +2 -2
Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8555.dts
===================================================================
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8555";
-	compatible = "tqm,8555", "tqm,85xx";
+	model = "tqc,8555";
+	compatible = "tqc,8555", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
arch/powerpc/boot/dts/tqm8560.dts +2 -2
Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8560.dts
===================================================================
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8560";
-	compatible = "tqm,8560", "tqm,85xx";
+	model = "tqc,8560";
+	compatible = "tqc,8560", "tqc,85xx";
 	#address-cells = <1>;
 	#size-cells = <1>;
 
arch/powerpc/platforms/85xx/tqm85xx.c +4 -4
Index: linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
===================================================================
@@ -165,10 +165,10 @@ static int __init tqm85xx_probe(void)
 {
 	unsigned long root = of_get_flat_dt_root();
 
-	if ((of_flat_dt_is_compatible(root, "tqm,8540")) ||
-	    (of_flat_dt_is_compatible(root, "tqm,8541")) ||
-	    (of_flat_dt_is_compatible(root, "tqm,8555")) ||
-	    (of_flat_dt_is_compatible(root, "tqm,8560")))
+	if ((of_flat_dt_is_compatible(root, "tqc,8540")) ||
+	    (of_flat_dt_is_compatible(root, "tqc,8541")) ||
+	    (of_flat_dt_is_compatible(root, "tqc,8555")) ||
+	    (of_flat_dt_is_compatible(root, "tqc,8560")))
 		return 1;
 
 	return 0;
#1 lore raw
Quoted 18 lines · Wolfgang Grandegger

Like for the TQM5200, the vendor prefix "tqc," is now used for all TQM85xx modules from TQ-Components GmbH (http://www.tqc.de) in the corresponding DTS files.

---
 arch/powerpc/boot/dts/tqm8540.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8541.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8555.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8560.dts     |    4 ++--
 arch/powerpc/platforms/85xx/tqm85xx.c |    8 ++++----
 5 files changed, 12 insertions(+), 12 deletions(-)

Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8540.dts
===================================================================

arch/powerpc/boot/dts/tqm8540.dts line 16

Quoted 7 lines
arch/powerpc/boot/dts/tqm8540.dts +2 -2
@@ -12,8 +12,8 @@
 /dts-v1/;
 
 / {
-	model = "tqm,8540";
-	compatible = "tqm,8540", "tqm,85xx";
+	model = "tqc,8540";
+	compatible = "tqc,8540", "tqc,85xx";

Hrm. compatible strings with "xx" type wildcards in them should be avoided. Keeping them for compatibility with existing code or trees is fine, but given that you're changing the name anyway, you should get rid of the 85xx reference. Either just dropping it, if it's not actually used, or replacing with a defined name or the specific model of the earliest board this series is compatible with.

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
#2 lore raw
Quoted 21 lines · David Gibson
Quoted 20 lines · Wolfgang Grandegger

Like for the TQM5200, the vendor prefix "tqc," is now used for all TQM85xx modules from TQ-Components GmbH (http://www.tqc.de) in the corresponding DTS files.

---
 arch/powerpc/boot/dts/tqm8540.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8541.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8555.dts     |    4 ++--
 arch/powerpc/boot/dts/tqm8560.dts     |    4 ++--
 arch/powerpc/platforms/85xx/tqm85xx.c |    8 ++++----
 5 files changed, 12 insertions(+), 12 deletions(-)

Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8540.dts
===================================================================

arch/powerpc/boot/dts/tqm8540.dts +0 -0
@@ -12,8 +12,8 @@
 /dts-v1/;
 
Quoted 12 lines

arch/powerpc/boot/dts/tqm8540.dts line 16

Quoted 5 lines
arch/powerpc/boot/dts/tqm8540.dts +2 -2
 / {
-	model = "tqm,8540";
-	compatible = "tqm,8540", "tqm,85xx";
+	model = "tqc,8540";
+	compatible = "tqc,8540", "tqc,85xx";

Hrm. compatible strings with "xx" type wildcards in them should be avoided. Keeping them for compatibility with existing code or trees is fine, but given that you're changing the name anyway, you should get rid of the 85xx reference. Either just dropping it, if it's not actually used, or replacing with a defined name or the specific model of the earliest board this series is compatible with.

$ grep 85xx *.dts
mpc8540ads.dts: compatible = "MPC8540ADS", "MPC85xxADS";
mpc8541cds.dts: compatible = "MPC8541CDS", "MPC85xxCDS";
mpc8544ds.dts:  compatible = "MPC8544DS", "MPC85xxDS";
mpc8548cds.dts: compatible = "MPC8548CDS", "MPC85xxCDS";
mpc8555cds.dts: compatible = "MPC8555CDS", "MPC85xxCDS";
mpc8560ads.dts: compatible = "MPC8560ADS", "MPC85xxADS";
mpc8568mds.dts: compatible = "MPC8568EMDS", "MPC85xxMDS";
tqm8540.dts:    compatible = "tqc,8540", "tqc,85xx";
tqm8541.dts:    compatible = "tqc,8541", "tqc,85xx";
tqm8548-bigflash.dts:   compatible = "tqc,8548", "tqc,85xx";
tqm8555.dts:    compatible = "tqc,8555", "tqc,85xx";
tqm8560.dts:    compatible = "tqc,8560", "tqc,85xx";

The 85xx wildcard seems to be used for other devices as well. It's fine for me removing "tqc,85xx". Furthermore I just realize, that the "tqm" prefix is missing in the board names. The correct properties should then look like:

	model = "tqc,tqm8540";
	compatible = "tqc,tqm8540";

Going to prepare new patches now.

Wolfgang.