From patchwork Thu Jan 19 23:09:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9527113 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8551460437 for ; Thu, 19 Jan 2017 23:10:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7922928673 for ; Thu, 19 Jan 2017 23:10:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E15A28678; Thu, 19 Jan 2017 23:10:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=2.0 tests=BAYES_00, RCVD_IN_SORBS_SPAM, RDNS_NONE autolearn=no version=3.3.1 Received: from bombadil.infradead.org (unknown [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE48328673 for ; Thu, 19 Jan 2017 23:10:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cULqr-0006au-9q; Thu, 19 Jan 2017 23:10:41 +0000 Received: from mail-wm0-f66.google.com ([74.125.82.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cULqR-0004ed-Gp for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 23:10:17 +0000 Received: by mail-wm0-f66.google.com with SMTP id d140so2565982wmd.2 for ; Thu, 19 Jan 2017 15:09:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kO/60bys+Vl3pI2rWM5I3R6OarNG/Oa23Gpa0VTIswA=; b=LUHJMtp8N4Doh9WCkls4v/9nfXY7onxgrFLSemO04X2MfX1E7/fmKzpayE9OXiaKBz ibUoU/mmDhq5DCa7iRWsGD2s471mWvpnmBbdNmdDOBxf7GmMhVWHKzyyL32aWXy1lW1M cBEDTjLMbedarYHtLguufzeyYq0YS3blKLoljRbPkT+uz8fM9c8M8aqwGRZj/+hDKM6a 1C5vgSPmLIfNqB7tQk0vyJvyA+/lqIjE+cB0ClnppC+HmSEiIrIl7I8H7Tgr6Q+SsVa6 /YAdvC9LKgEZ2fU6LjBWe76zcmVGUtYpYd6zavjGrvtVq7ornnWpZm/8eVqA/mZJ6fMe 6irA== X-Gm-Message-State: AIkVDXIZQ8sFQ2RmW6DQMF0NAmYcv6XCj0Bo0bWjctOy1umu0rRrqnx8XgZzwluijKIYgg== X-Received: by 10.28.50.135 with SMTP id y129mr945009wmy.2.1484867393405; Thu, 19 Jan 2017 15:09:53 -0800 (PST) Received: from jagan-XPS-13-9350.lavanda.local ([212.24.144.58]) by smtp.gmail.com with ESMTPSA id 191sm1497955wmo.21.2017.01.19.15.09.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 15:09:52 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 2/3] ARM: dts: imx6ul: Add Engicam Is.IoT MX6UL eMMC initial support Date: Fri, 20 Jan 2017 00:09:34 +0100 Message-Id: <1484867375-22411-2-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484867375-22411-1-git-send-email-jagan@openedev.com> References: <1484867375-22411-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_151015_789522_507C5870 X-CRM114-Status: GOOD ( 18.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matteo Lisi , linux-kernel@vger.kernel.org, Jagan Teki , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jagan Teki Engicam Is.IoT MX6UL has separate module for eMMC, so add emmc dts file for imx6ul-isiot.dtsi, usdhc2 node represent eMMC. dmesg: ----- mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA mmc1: new DDR MMC card at address 0001 mmcblk1: mmc1:0001 M62704 3.53 GiB Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Signed-off-by: Shawn Guo Signed-off-by: Jagan Teki --- Changes for v2: - Newly added with the reference of '[PATCH 1/2] ARM: dts: imx6ul-isiot: Add eMMC node' arch/arm/boot/dts/Makefile | 2 +- arch/arm/boot/dts/imx6ul-isiot-emmc.dts | 77 ++++++++++++++++++++++ .../dts/{imx6ul-isiot.dts => imx6ul-isiot.dtsi} | 3 - 3 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 arch/arm/boot/dts/imx6ul-isiot-emmc.dts rename arch/arm/boot/dts/{imx6ul-isiot.dts => imx6ul-isiot.dtsi} (97%) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index fa68843..f2c9545 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -435,7 +435,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \ dtb-$(CONFIG_SOC_IMX6UL) += \ imx6ul-14x14-evk.dtb \ imx6ul-geam-kit.dtb \ - imx6ul-isiot.dtb \ + imx6ul-isiot-emmc.dtb \ imx6ul-liteboard.dtb \ imx6ul-pico-hobbit.dtb \ imx6ul-tx6ul-0010.dtb \ diff --git a/arch/arm/boot/dts/imx6ul-isiot-emmc.dts b/arch/arm/boot/dts/imx6ul-isiot-emmc.dts new file mode 100644 index 0000000..f5b4228 --- /dev/null +++ b/arch/arm/boot/dts/imx6ul-isiot-emmc.dts @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2016 Amarula Solutions B.V. + * Copyright (C) 2016 Engicam S.r.l. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "imx6ul-isiot.dtsi" + +/ { + model = "Engicam Is.IoT MX6UL eMMC Starter kit"; + compatible = "engicam,imx6ul-isiot", "fsl,imx6ul"; +}; + +&usdhc2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2>; + cd-gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; + bus-width = <8>; + no-1-8-v; + status = "okay"; +}; + +&iomuxc { + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x17070 + MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x10070 + MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17070 + MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17070 + MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17070 + MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17070 + MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17070 + MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17070 + MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17070 + MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17070 + MX6UL_PAD_NAND_ALE__USDHC2_RESET_B 0x17070 + >; + }; +}; diff --git a/arch/arm/boot/dts/imx6ul-isiot.dts b/arch/arm/boot/dts/imx6ul-isiot.dtsi similarity index 97% rename from arch/arm/boot/dts/imx6ul-isiot.dts rename to arch/arm/boot/dts/imx6ul-isiot.dtsi index 077bc26..edfa0ab 100644 --- a/arch/arm/boot/dts/imx6ul-isiot.dts +++ b/arch/arm/boot/dts/imx6ul-isiot.dtsi @@ -47,9 +47,6 @@ #include "imx6ul.dtsi" / { - model = "Engicam Is.IoT MX6UL Starter kit"; - compatible = "engicam,imx6ul-isiot", "fsl,imx6ul"; - memory { reg = <0x80000000 0x20000000>; };