From patchwork Tue Mar 29 07:17:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 817 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:46:07 -0000 Delivered-To: patches@linaro.org Received: by 10.42.161.68 with SMTP id s4cs161990icx; Tue, 29 Mar 2011 00:17:58 -0700 (PDT) Received: by 10.42.9.91 with SMTP id l27mr8261387icl.507.1301383077824; Tue, 29 Mar 2011 00:17:57 -0700 (PDT) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id xm13si13309217icb.54.2011.03.29.00.17.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 00:17:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: by iyi12 with SMTP id 12so5425038iyi.37 for ; Tue, 29 Mar 2011 00:17:56 -0700 (PDT) Received: by 10.43.63.66 with SMTP id xd2mr8781949icb.76.1301383076390; Tue, 29 Mar 2011 00:17:56 -0700 (PDT) Received: from localhost.localdomain ([116.231.118.83]) by mx.google.com with ESMTPS id s1sm3469495iba.7.2011.03.29.00.17.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 00:17:55 -0700 (PDT) From: Jason Liu To: devicetree-discuss@lists.ozlabs.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org, grant.likely@linaro.org Subject: [PATCH] arm/dt: Add basic device tree support for mx51 babbage board Date: Tue, 29 Mar 2011 15:17:36 +0800 Message-Id: <1301383056-17962-1-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.0.4 --- No uboot patch since uboot patch already in linaro uboot git Signed-off-by: Jason Liu --- arch/arm/boot/dts/mx51-babbage.dts | 30 ++++++++++++++++++++++++++++++ arch/arm/mach-mx5/Kconfig | 6 ++++++ arch/arm/mach-mx5/board-mx51_babbage.c | 6 ++++++ 3 files changed, 42 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/mx51-babbage.dts b/arch/arm/boot/dts/mx51-babbage.dts new file mode 100644 index 0000000..179f745 --- /dev/null +++ b/arch/arm/boot/dts/mx51-babbage.dts @@ -0,0 +1,30 @@ +/* + * Copyright 2011 Linaro Ltd. + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; + +/ { + model = "Freescale i.MX51 Babbage"; + compatible = "fsl,mx51-babbage"; + #address-cells = <1>; + #size-cells = <1>; + + aliases { + }; + + memory { + device_type = "memory"; + reg = <0x90000000 0x20000000>; + }; + + chosen { + }; +}; diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig index 83ee088..aae51ee 100644 --- a/arch/arm/mach-mx5/Kconfig +++ b/arch/arm/mach-mx5/Kconfig @@ -38,6 +38,7 @@ comment "MX5 platforms:" config MACH_MX51_BABBAGE bool "Support MX51 BABBAGE platforms" select SOC_IMX51 + select MX5_DT_COMMON select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_UART @@ -114,6 +115,11 @@ config MACH_EUKREA_MBIMXSD51_BASEBOARD endchoice +config MX5_DT_COMMON + bool + select USE_OF + select PROC_DEVICETREE + config MX51_EFIKA_COMMON bool select SOC_IMX51 diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index b2ecd19..30b92ca 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c @@ -399,6 +399,11 @@ static struct sys_timer mx51_babbage_timer = { .init = mx51_babbage_timer_init, }; +static const char *mx51_babbage_dt_match[] __initdata = { + "fsl,mx51-babbage", + NULL +}; + MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board") /* Maintainer: Amit Kucheria */ .boot_params = MX51_PHYS_OFFSET + 0x100, @@ -407,4 +412,5 @@ MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board") .init_irq = mx51_init_irq, .timer = &mx51_babbage_timer, .init_machine = mx51_babbage_init, + .dt_compat = mx51_babbage_dt_match, MACHINE_END