From patchwork Sun Jun 17 06:28:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 165325 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 6DAB7B7119 for ; Sun, 17 Jun 2012 16:33:33 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sg8zN-00043e-O0; Sun, 17 Jun 2012 06:29:33 +0000 Received: from mail-yw0-f49.google.com ([209.85.213.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sg8zK-00043Q-Nd for linux-arm-kernel@lists.infradead.org; Sun, 17 Jun 2012 06:29:32 +0000 Received: by yhjj52 with SMTP id j52so3566296yhj.36 for ; Sat, 16 Jun 2012 23:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=z2YDA6A81W77ampfF7rX+AE0r2sSveXVR0JxGjBSBqU=; b=WKQ+CJsQcIbYEphjWWa23YzCIDS3TmZYWDfdFy46b+eOPMQa6K7lojUKOotxtUKvz9 QCHLMmAG1d5AfmoNsQgxy5vWyDOQyQpF/73QwU/1dNB0+zkEF0xN72vGphsMzV7tYmUO 0R/1c4S4+lsGNHVGeKBm/m5slmxRgYiV5skTTD2wqkzhVz4Os66Wq8a+lrisAXifopTL ml7fGV4oC5sWuM0W9U84mcZ2xUsLQgrpuWR99M7bOfE2ui8Bdb2cw0tCbI+0X5ztct2p HZdQEy0/uh/Yx7ZrfDQDUXOM2GHntoyDUv9JBZb9XHwnOs+Ce3zLF3k35VP9/ZRfwp4z C8hA== Received: by 10.236.121.194 with SMTP id r42mr13742042yhh.64.1339914567319; Sat, 16 Jun 2012 23:29:27 -0700 (PDT) Received: from localhost.localdomain ([189.5.6.233]) by mx.google.com with ESMTPS id z9sm50317856yhl.6.2012.06.16.23.29.24 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Jun 2012 23:29:26 -0700 (PDT) From: Fabio Estevam To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: mx23: Add initial support for olinuxino board Date: Sun, 17 Jun 2012 03:28:59 -0300 Message-Id: <1339914539-4154-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: marex@denx.de, Fabio Estevam , otavio@ossystems.com.br, rob.herring@calxeda.com, kernel@pengutronix.de, shawn.guo@linaro.org 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: , MIME-Version: 1.0 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 From: Fabio Estevam mx23-olinuxino is a low cost board designed by Olimex. It has the following features: - Freescale iMX233 ARM926J processor at 454MHz -64 MB RAM -SD-card connector -TV PAL/NTSC video output -2 USB High Speed Hosts -Ethernet 100 Mbit -Stereo Audio Input -Stereo Headphones Audio Output More information at: http://www.olimex.com/dev/imx233-olinuxino-maxi.html Signed-off-by: Fabio Estevam --- Documentation/devicetree/bindings/arm/fsl.txt | 4 ++ arch/arm/boot/dts/imx23-olinuxino.dts | 45 +++++++++++++++++++++++++ arch/arm/boot/dts/imx23.dtsi | 14 ++++++++ arch/arm/mach-mxs/mach-mxs.c | 1 + 4 files changed, 64 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/imx23-olinuxino.dts diff --git a/Documentation/devicetree/bindings/arm/fsl.txt b/Documentation/devicetree/bindings/arm/fsl.txt index ac9e751..ca2bc1c 100644 --- a/Documentation/devicetree/bindings/arm/fsl.txt +++ b/Documentation/devicetree/bindings/arm/fsl.txt @@ -5,6 +5,10 @@ i.MX23 Evaluation Kit Required root node properties: - compatible = "fsl,imx23-evk", "fsl,imx23"; +i.MX23 Olinuxino Low Cost Board +Required root node properties: + - compatible = "fsl,imx23-olinuxino", "fsl,imx23"; + i.MX28 Evaluation Kit Required root node properties: - compatible = "fsl,imx28-evk", "fsl,imx28"; diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts new file mode 100644 index 0000000..3c56010 --- /dev/null +++ b/arch/arm/boot/dts/imx23-olinuxino.dts @@ -0,0 +1,44 @@ +/* + * Copyright 2012 Freescale Semiconductor, Inc. + * + * Author: Fabio Estevam + * + * 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/ "imx23.dtsi" + +/ { + model = "i.MX23 Olinuxino Low Cost Board"; + compatible = "fsl,imx23-olinuxino", "fsl,imx23"; + + memory { + reg = <0x40000000 0x08000000>; + }; + + apb@80000000 { + apbh@80000000 { + ssp0: ssp@80010000 { + compatible = "fsl,imx23-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>; + bus-width = <4>; + status = "okay"; + }; + }; + + apbx@80040000 { + duart: serial@80070000 { + pinctrl-names = "default"; + pinctrl-0 = <&duart_pins_a>; + status = "okay"; + }; + }; + }; +}; diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi index 8c5f999..89044f0 100644 --- a/arch/arm/boot/dts/imx23.dtsi +++ b/arch/arm/boot/dts/imx23.dtsi @@ -134,6 +134,20 @@ fsl,pinmux-ids = <0x2010 0x2060>; fsl,pull-up = <0>; }; + + mmc0_4bit_pins_a: mmc0-4bit@0 { + reg = <0>; + fsl,pinmux-ids = <0x2000 0x2020 0x2030 + 0x2040 0x2050>; + fsl,drive-strength = <1>; + fsl,voltage = <1>; + fsl,pull-up = <1>; + }; + + mmc0_sck_cfg: mmc0_sck_cfg { + fsl,pinmux-ids = <0x2010>; + fsl,pull-up = <0>; + }; }; digctl@8001c000 { diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index 8cac94b..a321753 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c @@ -92,6 +92,7 @@ static void __init mxs_machine_init(void) static const char *imx23_dt_compat[] __initdata = { "fsl,imx23-evk", + "fsl,imx23-olinuxino", "fsl,imx23", NULL, };