diff mbox

dt/arm: Add basic device tree support for overo

Message ID 1301448280-25045-1-git-send-email-andy.doan@linaro.org
State New
Headers show

Commit Message

Andy Doan March 30, 2011, 1:24 a.m. UTC
Enable basic device tree support for Gumstix Overo.

tested with Overo Tide COM and Tobi expansion board

Signed-off-by: Andy Doan <andy.doan@linaro.org>
---
 arch/arm/boot/dts/omap3-overo.dts |    7 +++++++
 arch/arm/mach-omap2/board-overo.c |    6 ++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-overo.dts

Comments

Grant Likely March 31, 2011, 3:53 a.m. UTC | #1
On Tue, Mar 29, 2011 at 06:24:40PM -0700, Andy Doan wrote:
> Enable basic device tree support for Gumstix Overo.
> 
> tested with Overo Tide COM and Tobi expansion board
> 
> Signed-off-by: Andy Doan <andy.doan@linaro.org>

Merged, thanks.

g.

> ---
>  arch/arm/boot/dts/omap3-overo.dts |    7 +++++++
>  arch/arm/mach-omap2/board-overo.c |    6 ++++++
>  2 files changed, 13 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/boot/dts/omap3-overo.dts
> 
> diff --git a/arch/arm/boot/dts/omap3-overo.dts b/arch/arm/boot/dts/omap3-overo.dts
> new file mode 100644
> index 0000000..c61f011
> --- /dev/null
> +++ b/arch/arm/boot/dts/omap3-overo.dts
> @@ -0,0 +1,7 @@
> +/dts-v1/;
> +/include/ "skeleton.dtsi"
> +
> +/ {
> +	model = "Gumstix Overo";
> +	compatible = "gumstix,omap3-overo";
> +};
> diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c
> index 2c2228a..da6d2f1 100644
> --- a/arch/arm/mach-omap2/board-overo.c
> +++ b/arch/arm/mach-omap2/board-overo.c
> @@ -786,6 +786,11 @@ static void __init overo_init(void)
>  					"OVERO_GPIO_USBH_CPEN\n");
>  }
>  
> +static const char *omap3_overo_dt_match[] __initdata = {
> +	"gumstix,omap3-overo",
> +	NULL
> +};
> +
>  MACHINE_START(OVERO, "Gumstix Overo")
>  	.boot_params	= 0x80000100,
>  	.reserve	= omap_reserve,
> @@ -794,4 +799,5 @@ MACHINE_START(OVERO, "Gumstix Overo")
>  	.init_irq	= omap_init_irq,
>  	.init_machine	= overo_init,
>  	.timer		= &omap_timer,
> +	.dt_compat	= omap3_overo_dt_match,
>  MACHINE_END
> -- 
> 1.7.1
>
diff mbox

Patch

diff --git a/arch/arm/boot/dts/omap3-overo.dts b/arch/arm/boot/dts/omap3-overo.dts
new file mode 100644
index 0000000..c61f011
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-overo.dts
@@ -0,0 +1,7 @@ 
+/dts-v1/;
+/include/ "skeleton.dtsi"
+
+/ {
+	model = "Gumstix Overo";
+	compatible = "gumstix,omap3-overo";
+};
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c
index 2c2228a..da6d2f1 100644
--- a/arch/arm/mach-omap2/board-overo.c
+++ b/arch/arm/mach-omap2/board-overo.c
@@ -786,6 +786,11 @@  static void __init overo_init(void)
 					"OVERO_GPIO_USBH_CPEN\n");
 }
 
+static const char *omap3_overo_dt_match[] __initdata = {
+	"gumstix,omap3-overo",
+	NULL
+};
+
 MACHINE_START(OVERO, "Gumstix Overo")
 	.boot_params	= 0x80000100,
 	.reserve	= omap_reserve,
@@ -794,4 +799,5 @@  MACHINE_START(OVERO, "Gumstix Overo")
 	.init_irq	= omap_init_irq,
 	.init_machine	= overo_init,
 	.timer		= &omap_timer,
+	.dt_compat	= omap3_overo_dt_match,
 MACHINE_END