* [PATCH v3 1/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules
@ 2008-06-05 17:10 Wolfgang Grandegger
2008-06-06 3:59 ` David Gibson
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Grandegger @ 2008-06-05 17:10 UTC (permalink / raw)
To: Linuxppc-dev
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.
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
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
===================================================================
--- linux-2.6-galak.orig/arch/powerpc/boot/dts/tqm8540.dts
+++ 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>;
Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8541.dts
===================================================================
--- linux-2.6-galak.orig/arch/powerpc/boot/dts/tqm8541.dts
+++ 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>;
Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8555.dts
===================================================================
--- linux-2.6-galak.orig/arch/powerpc/boot/dts/tqm8555.dts
+++ 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>;
Index: linux-2.6-galak/arch/powerpc/boot/dts/tqm8560.dts
===================================================================
--- linux-2.6-galak.orig/arch/powerpc/boot/dts/tqm8560.dts
+++ 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>;
Index: linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
===================================================================
--- linux-2.6-galak.orig/arch/powerpc/platforms/85xx/tqm85xx.c
+++ 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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3 1/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules
2008-06-05 17:10 [PATCH v3 1/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules Wolfgang Grandegger
@ 2008-06-06 3:59 ` David Gibson
2008-06-06 8:11 ` Wolfgang Grandegger
0 siblings, 1 reply; 3+ messages in thread
From: David Gibson @ 2008-06-06 3:59 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: Linuxppc-dev
On Thu, Jun 05, 2008 at 07:10:22PM +0200, Wolfgang Grandegger wrote:
> 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.
>
> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> ---
> 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
> ===================================================================
> --- linux-2.6-galak.orig/arch/powerpc/boot/dts/tqm8540.dts
> +++ 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";
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.
--
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] 3+ messages in thread
* Re: [PATCH v3 1/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules
2008-06-06 3:59 ` David Gibson
@ 2008-06-06 8:11 ` Wolfgang Grandegger
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Grandegger @ 2008-06-06 8:11 UTC (permalink / raw)
To: Wolfgang Grandegger, Linuxppc-dev
David Gibson wrote:
> On Thu, Jun 05, 2008 at 07:10:22PM +0200, Wolfgang Grandegger wrote:
>> 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.
>>
>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>> ---
>> 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
>> ===================================================================
>> --- linux-2.6-galak.orig/arch/powerpc/boot/dts/tqm8540.dts
>> +++ 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";
>
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-06 8:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 17:10 [PATCH v3 1/4] [POWERPC] 85xx: correct vendor prefix in DTS files for TQM85xx modules Wolfgang Grandegger
2008-06-06 3:59 ` David Gibson
2008-06-06 8:11 ` Wolfgang Grandegger
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).