[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

Subsystems: arm port, the rest

STALE5134d

12 messages, 6 authors, 2012-08-14 · open the first message on its own page

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: festevam@gmail.com (Fabio Estevam)
Date: 2012-06-17 14:04:15

From: Fabio Estevam <redacted>

There is no need for adding board related entries into dt_board_compat.

Leave only the SoC entry.

This way we do not need to patch a C file when adding dt support for a new board.

Signed-off-by: Fabio Estevam <redacted>
---
 arch/arm/mach-imx/imx51-dt.c   |    1 -
 arch/arm/mach-imx/imx53-dt.c   |    4 ----
 arch/arm/mach-imx/mach-imx6q.c |    3 ---
 3 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c
index 18e78db..5f10812 100644
--- a/arch/arm/mach-imx/imx51-dt.c
+++ b/arch/arm/mach-imx/imx51-dt.c
@@ -106,7 +106,6 @@ static struct sys_timer imx51_timer = {
 };
 
 static const char *imx51_dt_board_compat[] __initdata = {
-	"fsl,imx51-babbage",
 	"fsl,imx51",
 	NULL
 };
diff --git a/arch/arm/mach-imx/imx53-dt.c b/arch/arm/mach-imx/imx53-dt.c
index eb04b62..75535f9 100644
--- a/arch/arm/mach-imx/imx53-dt.c
+++ b/arch/arm/mach-imx/imx53-dt.c
@@ -132,10 +132,6 @@ static struct sys_timer imx53_timer = {
 };
 
 static const char *imx53_dt_board_compat[] __initdata = {
-	"fsl,imx53-ard",
-	"fsl,imx53-evk",
-	"fsl,imx53-qsb",
-	"fsl,imx53-smd",
 	"fsl,imx53",
 	NULL
 };
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index b47e98b..1796be4 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -173,9 +173,6 @@ static struct sys_timer imx6q_timer = {
 };
 
 static const char *imx6q_dt_compat[] __initdata = {
-	"fsl,imx6q-arm2",
-	"fsl,imx6q-sabrelite",
-	"fsl,imx6q-sabresd",
 	"fsl,imx6q",
 	NULL,
 };
-- 
1.7.1

[PATCH 2/2] ARM: mach-mxs: Remove board entries in dt_board_compat

From: festevam@gmail.com (Fabio Estevam)
Date: 2012-06-17 14:04:16

From: Fabio Estevam <redacted>

There is no need for adding board related entries into dt_board_compat.

Leave only the SoC entry.

This way we do not need to patch a C file when adding dt support for a new board.

Signed-off-by: Fabio Estevam <redacted>
---
 arch/arm/mach-mxs/mach-mxs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c
index 8cac94b..0f36b22 100644
--- a/arch/arm/mach-mxs/mach-mxs.c
+++ b/arch/arm/mach-mxs/mach-mxs.c
@@ -91,13 +91,11 @@ static void __init mxs_machine_init(void)
 }
 
 static const char *imx23_dt_compat[] __initdata = {
-	"fsl,imx23-evk",
 	"fsl,imx23",
 	NULL,
 };
 
 static const char *imx28_dt_compat[] __initdata = {
-	"fsl,imx28-evk",
 	"fsl,imx28",
 	NULL,
 };
-- 
1.7.1

[PATCH 2/2] ARM: mach-mxs: Remove board entries in dt_board_compat

From: marex@denx.de (Marek Vasut)
Date: 2012-06-17 14:06:19

Dear Fabio Estevam,
quoted hunk
From: Fabio Estevam <redacted>

There is no need for adding board related entries into dt_board_compat.

Leave only the SoC entry.

This way we do not need to patch a C file when adding dt support for a new
board.

Signed-off-by: Fabio Estevam <redacted>
---
 arch/arm/mach-mxs/mach-mxs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c
index 8cac94b..0f36b22 100644
--- a/arch/arm/mach-mxs/mach-mxs.c
+++ b/arch/arm/mach-mxs/mach-mxs.c
@@ -91,13 +91,11 @@ static void __init mxs_machine_init(void)
 }

 static const char *imx23_dt_compat[] __initdata = {
-	"fsl,imx23-evk",
 	"fsl,imx23",
 	NULL,
 };

 static const char *imx28_dt_compat[] __initdata = {
-	"fsl,imx28-evk",
Don't you need this one as there's some hook?
 	"fsl,imx28",
 	NULL,
 };
Best regards,
Marek Vasut

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: s.hauer@pengutronix.de (Sascha Hauer)
Date: 2012-07-05 07:13:18

Shawn,

Is this ok with you?

Sascha

On Sun, Jun 17, 2012 at 11:04:15AM -0300, Fabio Estevam wrote:
quoted hunk
From: Fabio Estevam <redacted>

There is no need for adding board related entries into dt_board_compat.

Leave only the SoC entry.

This way we do not need to patch a C file when adding dt support for a new board.

Signed-off-by: Fabio Estevam <redacted>
---
 arch/arm/mach-imx/imx51-dt.c   |    1 -
 arch/arm/mach-imx/imx53-dt.c   |    4 ----
 arch/arm/mach-imx/mach-imx6q.c |    3 ---
 3 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c
index 18e78db..5f10812 100644
--- a/arch/arm/mach-imx/imx51-dt.c
+++ b/arch/arm/mach-imx/imx51-dt.c
@@ -106,7 +106,6 @@ static struct sys_timer imx51_timer = {
 };
 
 static const char *imx51_dt_board_compat[] __initdata = {
-	"fsl,imx51-babbage",
 	"fsl,imx51",
 	NULL
 };
diff --git a/arch/arm/mach-imx/imx53-dt.c b/arch/arm/mach-imx/imx53-dt.c
index eb04b62..75535f9 100644
--- a/arch/arm/mach-imx/imx53-dt.c
+++ b/arch/arm/mach-imx/imx53-dt.c
@@ -132,10 +132,6 @@ static struct sys_timer imx53_timer = {
 };
 
 static const char *imx53_dt_board_compat[] __initdata = {
-	"fsl,imx53-ard",
-	"fsl,imx53-evk",
-	"fsl,imx53-qsb",
-	"fsl,imx53-smd",
 	"fsl,imx53",
 	NULL
 };
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index b47e98b..1796be4 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -173,9 +173,6 @@ static struct sys_timer imx6q_timer = {
 };
 
 static const char *imx6q_dt_compat[] __initdata = {
-	"fsl,imx6q-arm2",
-	"fsl,imx6q-sabrelite",
-	"fsl,imx6q-sabresd",
 	"fsl,imx6q",
 	NULL,
 };
-- 
1.7.1
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: Shawn Guo <hidden>
Date: 2012-07-05 07:46:25

On Thu, Jul 05, 2012 at 09:13:18AM +0200, Sascha Hauer wrote:
Shawn,

Is this ok with you?
No.

http://thread.gmane.org/gmane.linux.ports.arm.kernel/172558/focus=172703

-- 
Regards,
Shawn

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: Shawn Guo <hidden>
Date: 2012-08-13 15:15:11

On Thu, Jul 05, 2012 at 03:46:23PM +0800, Shawn Guo wrote:
On Thu, Jul 05, 2012 at 09:13:18AM +0200, Sascha Hauer wrote:
quoted
Shawn,

Is this ok with you?
No.

http://thread.gmane.org/gmane.linux.ports.arm.kernel/172558/focus=172703
I change my mind.  Though it's really a pity to lose a concentrated
place maintaining a full list of compatible strings of all supported
board, I'm more concerned by the dt_board_compat matching efficiency
when the table gets longer.

So, Fabio, can you please resend the patches against v3.6-rc?

-- 
Regards,
Shawn

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: marex@denx.de (Marek Vasut)
Date: 2012-08-13 15:18:14

Dear Shawn Guo,
On Thu, Jul 05, 2012 at 03:46:23PM +0800, Shawn Guo wrote:
quoted
On Thu, Jul 05, 2012 at 09:13:18AM +0200, Sascha Hauer wrote:
quoted
Shawn,

Is this ok with you?
No.

http://thread.gmane.org/gmane.linux.ports.arm.kernel/172558/focus=172703
I change my mind.  Though it's really a pity to lose a concentrated
place maintaining a full list of compatible strings of all supported
board, I'm more concerned by the dt_board_compat matching efficiency
when the table gets longer.

So, Fabio, can you please resend the patches against v3.6-rc?
What about the board quirks that are present there?

Best regards,
Marek Vasut

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: festevam@gmail.com (Fabio Estevam)
Date: 2012-08-13 16:56:40

On Mon, Aug 13, 2012 at 12:15 PM, Shawn Guo [off-list ref] wrote:
So, Fabio, can you please resend the patches against v3.6-rc?
Which branch at git.linaro.org should I use it to rebase?

Regards,

Fabio Estevam

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: Matt Sealey <hidden>
Date: 2012-08-13 21:37:38

On Mon, Aug 13, 2012 at 10:18 AM, Marek Vasut [off-list ref] wrote:
Dear Shawn Guo,
quoted
On Thu, Jul 05, 2012 at 03:46:23PM +0800, Shawn Guo wrote:
quoted
On Thu, Jul 05, 2012 at 09:13:18AM +0200, Sascha Hauer wrote:
quoted
Shawn,

Is this ok with you?
No.

http://thread.gmane.org/gmane.linux.ports.arm.kernel/172558/focus=172703
I change my mind.  Though it's really a pity to lose a concentrated
place maintaining a full list of compatible strings of all supported
board, I'm more concerned by the dt_board_compat matching efficiency
when the table gets longer.

So, Fabio, can you please resend the patches against v3.6-rc?
What about the board quirks that are present there?
They don't need to be done since they're usually driver-specific or
unit-specific; DTs should include these at the appropriate places. For
the MX51 Babbage entry all it did was set up all the iomux which is
now done via pinctrl and DT, so it can go. The rest, well, this is
more a quirk of the chip, and what should happen is, if it can be
moved to a bootloader, do it, and set up a quirk as a property in that
device like fsl,mc13xxx-uses-rtc - although in that particular example
I dare say that should be an rtc node under the pmic entry rather than
a property, at least for now it shows you can pick up a property that
changes the behavior of a device without it being in a mach-specific
file.

There may actually be some boards that need some specific, low-level
hacks to make work that will need entering but, for now, this doesn't
need to be. They can be removed and when those specific hacks appear,
their compatibles and new code to support the hacks can be added back
in.

-- 
Matt Sealey [off-list ref]
Product Development Analyst, Genesi USA, Inc.

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: Rob Herring <hidden>
Date: 2012-08-13 21:48:11

On 08/13/2012 10:15 AM, Shawn Guo wrote:
On Thu, Jul 05, 2012 at 03:46:23PM +0800, Shawn Guo wrote:
quoted
On Thu, Jul 05, 2012 at 09:13:18AM +0200, Sascha Hauer wrote:
quoted
Shawn,

Is this ok with you?
No.

http://thread.gmane.org/gmane.linux.ports.arm.kernel/172558/focus=172703
I change my mind.  Though it's really a pity to lose a concentrated
place maintaining a full list of compatible strings of all supported
board, I'm more concerned by the dt_board_compat matching efficiency
when the table gets longer.
I think this is needless churn. You can't say board entries are never
needed. Perhaps we've been overly active in adding all compatible
strings before they are needed. When you add a new board, it is fine to
match against the soc string without changing the kernel, but the dtb
should still have a more specific string. Then if you need to add
something board specific later, you can add the match entry and
corresponding board specific code.

Rob

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: Shawn Guo <hidden>
Date: 2012-08-14 01:26:51

On Mon, Aug 13, 2012 at 04:48:11PM -0500, Rob Herring wrote:
I think this is needless churn. You can't say board entries are never
needed. Perhaps we've been overly active in adding all compatible
strings before they are needed. When you add a new board, it is fine to
match against the soc string without changing the kernel, but the dtb
should still have a more specific string. Then if you need to add
something board specific later, you can add the match entry and
corresponding board specific code.
I probably haven't made myself clear.  What I'm asking for is merely
removing the board compatible string from dt_board_compat, not from
dtb.  Every single board will still have its specific compatible string
defined in its dts.

-- 
Regards,
Shawn

[PATCH 1/2] ARM: mach-imx: Remove board entries in dt_board_compat

From: Shawn Guo <hidden>
Date: 2012-08-14 01:28:08

On Mon, Aug 13, 2012 at 01:56:40PM -0300, Fabio Estevam wrote:
On Mon, Aug 13, 2012 at 12:15 PM, Shawn Guo [off-list ref] wrote:
quoted
So, Fabio, can you please resend the patches against v3.6-rc?
Which branch at git.linaro.org should I use it to rebase?
Just against mainline v3.6-rc.

-- 
Regards,
Shawn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help