From patchwork Tue Mar 29 08:37:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 818 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:08 -0000 Delivered-To: patches@linaro.org Received: by 10.42.161.68 with SMTP id s4cs167147icx; Tue, 29 Mar 2011 01:37:13 -0700 (PDT) Received: by 10.231.80.193 with SMTP id u1mr5201318ibk.87.1301387832926; Tue, 29 Mar 2011 01:37:12 -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 16si13443968ibb.73.2011.03.29.01.37.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 01:37:11 -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 12so5496846iyi.37 for ; Tue, 29 Mar 2011 01:37:11 -0700 (PDT) Received: by 10.43.69.132 with SMTP id yc4mr8789784icb.221.1301387831435; Tue, 29 Mar 2011 01:37:11 -0700 (PDT) Received: from localhost.localdomain ([116.231.118.83]) by mx.google.com with ESMTPS id wu1sm3342657icb.10.2011.03.29.01.37.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 01:37:11 -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 mx53 loco board Date: Tue, 29 Mar 2011 16:37:00 +0800 Message-Id: <1301387820-18299-1-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.0.4 --- grant, uboot patches has been send to u-boot maillist Test OK on mx53 loco board Signed-off-by: Jason Liu --- arch/arm/boot/dts/mx53-loco.dts | 30 ++++++++++++++++++++++++++++++ arch/arm/mach-mx5/Kconfig | 1 + arch/arm/mach-mx5/board-mx53_loco.c | 5 +++++ 3 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/mx53-loco.dts b/arch/arm/boot/dts/mx53-loco.dts new file mode 100644 index 0000000..7347456 --- /dev/null +++ b/arch/arm/boot/dts/mx53-loco.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.MX53 LOCO"; + compatible = "fsl,mx53-loco"; + #address-cells = <1>; + #size-cells = <1>; + + aliases { + }; + + memory { + device_type = "memory"; + reg = <0x70000000 0x40000000>; + }; + + chosen { + }; +}; diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig index aae51ee..a61e01e 100644 --- a/arch/arm/mach-mx5/Kconfig +++ b/arch/arm/mach-mx5/Kconfig @@ -167,6 +167,7 @@ config MACH_MX53_SMD config MACH_MX53_LOCO bool "Support MX53 LOCO platforms" select SOC_IMX53 + select MX5_DT_COMMON select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_UART diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c index 0a18f8d..6ffc591 100644 --- a/arch/arm/mach-mx5/board-mx53_loco.c +++ b/arch/arm/mach-mx5/board-mx53_loco.c @@ -226,10 +226,15 @@ static struct sys_timer mx53_loco_timer = { .init = mx53_loco_timer_init, }; +static const char *mx53_loco_dt_match[] __initdata = { + "fsl,mx53-loco", + NULL +}; MACHINE_START(MX53_LOCO, "Freescale MX53 LOCO Board") .map_io = mx53_map_io, .init_early = imx53_init_early, .init_irq = mx53_init_irq, .timer = &mx53_loco_timer, .init_machine = mx53_loco_board_init, + .dt_compat = mx53_loco_dt_match, MACHINE_END