From patchwork Tue May 15 12:14:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 159304 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A9DC0B6FB6 for ; Tue, 15 May 2012 21:57:35 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SUGLZ-0004H2-3g; Tue, 15 May 2012 11:55:21 +0000 Received: from tx2ehsobe001.messaging.microsoft.com ([65.55.88.11] helo=tx2outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SUGL3-0003y6-So for linux-arm-kernel@lists.infradead.org; Tue, 15 May 2012 11:54:51 +0000 Received: from mail50-tx2-R.bigfish.com (10.9.14.250) by TX2EHSOBE010.bigfish.com (10.9.40.30) with Microsoft SMTP Server id 14.1.225.23; Tue, 15 May 2012 11:54:41 +0000 Received: from mail50-tx2 (localhost [127.0.0.1]) by mail50-tx2-R.bigfish.com (Postfix) with ESMTP id D069646079C; Tue, 15 May 2012 11:54:41 +0000 (UTC) X-SpamScore: 3 X-BigFish: VS3(zcb8kzzz1202hzz8275dhz2dh87h2a8h668h839hd24he5bhe96h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail50-tx2 (localhost.localdomain [127.0.0.1]) by mail50-tx2 (MessageSwitch) id 1337082879904612_22824; Tue, 15 May 2012 11:54:39 +0000 (UTC) Received: from TX2EHSMHS019.bigfish.com (unknown [10.9.14.235]) by mail50-tx2.bigfish.com (Postfix) with ESMTP id CD82EA005A; Tue, 15 May 2012 11:54:39 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS019.bigfish.com (10.9.99.119) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 15 May 2012 11:54:39 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server (TLS) id 14.2.298.5; Tue, 15 May 2012 06:54:43 -0500 Received: from S2100-06.ap.freescale.net (S2100-06.ap.freescale.net [10.192.242.125]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id q4FBsfIC023299; Tue, 15 May 2012 04:54:42 -0700 From: Shawn Guo To: Subject: [PATCH 2/2] ARM: imx: add initial imx6dl-sabreai board support Date: Tue, 15 May 2012 20:14:01 +0800 Message-ID: <1337084041-19436-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [65.55.88.11 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 TVD_SUBJ_NUM_OBFU_MINFP TVD_SUBJ_NUM_OBFU_MINFP Cc: Sascha Hauer , Shawn Guo X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Add initial imx6dl-sabreai board support. With uart, usdhc and fec enabled, the board can boot into console with rootfs on nfs or SD/MMC cards. Signed-off-by: Shawn Guo --- Documentation/devicetree/bindings/arm/fsl.txt | 3 ++ arch/arm/boot/dts/imx6dl-sabreai.dts | 42 +++++++++++++++++++++++++ arch/arm/mach-imx/Makefile.boot | 1 + arch/arm/mach-imx/mach-imx6q.c | 2 + 4 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/imx6dl-sabreai.dts diff --git a/Documentation/devicetree/bindings/arm/fsl.txt b/Documentation/devicetree/bindings/arm/fsl.txt index ac9e751..066bb58 100644 --- a/Documentation/devicetree/bindings/arm/fsl.txt +++ b/Documentation/devicetree/bindings/arm/fsl.txt @@ -41,6 +41,9 @@ i.MX6 Quad SABRE Smart Device Board Required root node properties: - compatible = "fsl,imx6q-sabresd", "fsl,imx6q"; +i.MX6 DualLite SABRE Automotive Infotainment Board; + - compatible = "fsl,imx6dl-sabreai", "fsl,imx6dl"; + Generic i.MX boards ------------------- diff --git a/arch/arm/boot/dts/imx6dl-sabreai.dts b/arch/arm/boot/dts/imx6dl-sabreai.dts new file mode 100644 index 0000000..3e0c1e3 --- /dev/null +++ b/arch/arm/boot/dts/imx6dl-sabreai.dts @@ -0,0 +1,42 @@ +/* + * Copyright 2012 Freescale Semiconductor, Inc. + * Copyright 2012 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/; +/include/ "imx6dl.dtsi" + +/ { + model = "Freescale i.MX6 DualLite SABRE Automotive Infotainment Board"; + compatible = "fsl,imx6dl-sabreai", "fsl,imx6dl"; + + memory { + reg = <0x10000000 0x40000000>; + }; + + soc { + aips2: aips-bus@02100000 { + ethernet@02188000 { + phy-mode = "rgmii"; + status = "okay"; + }; + + usdhc3: usdhc@02198000 { + cd-gpios = <&gpio6 15 0>; + wp-gpios = <&gpio1 13 0>; + status = "okay"; + }; + + uart4: serial@021f0000 { + status = "okay"; + }; + }; + }; +}; diff --git a/arch/arm/mach-imx/Makefile.boot b/arch/arm/mach-imx/Makefile.boot index 05541cf..c136c59 100644 --- a/arch/arm/mach-imx/Makefile.boot +++ b/arch/arm/mach-imx/Makefile.boot @@ -44,3 +44,4 @@ dtb-$(CONFIG_MACH_IMX53_DT) += imx53-ard.dtb imx53-evk.dtb \ dtb-$(CONFIG_SOC_IMX6Q) += imx6q-arm2.dtb \ imx6q-sabrelite.dtb \ imx6q-sabresd.dtb \ + imx6q-sabreai.dtb \ diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index b47e98b..bb6c265 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c @@ -173,6 +173,8 @@ static struct sys_timer imx6q_timer = { }; static const char *imx6q_dt_compat[] __initdata = { + "fsl,imx6dl-sabreai", + "fsl,imx6dl", "fsl,imx6q-arm2", "fsl,imx6q-sabrelite", "fsl,imx6q-sabresd",