From patchwork Wed May 7 20:14:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4131741 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9FC53BFF02 for ; Wed, 7 May 2014 20:14:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2D5C201C0 for ; Wed, 7 May 2014 20:14:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C04A201BA for ; Wed, 7 May 2014 20:14:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbaEGUOx (ORCPT ); Wed, 7 May 2014 16:14:53 -0400 Received: from mail-oa0-f52.google.com ([209.85.219.52]:54244 "EHLO mail-oa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbaEGUOw (ORCPT ); Wed, 7 May 2014 16:14:52 -0400 Received: by mail-oa0-f52.google.com with SMTP id eb12so1884040oac.39 for ; Wed, 07 May 2014 13:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=F0kDKF4HKlFYPBBEIGUcYO7w048eF/vahlLdM3IWJUg=; b=n21ic75qKbzUmB4RfiPcaIARf7Lt53nuR6iWahFVRTmOdDZn9ugp+QEDWoezt26f8l SvrraL0JRGNWatFnDGOS2GUPFhs7+JJ7C/tBrhj7Rij/SMTe0p3uzV214a8NkP2IowIG sRjgFfJzY+MtEuiB5XINMQFKwMDXvdBZCVm1A7QublCaF/csK42p7rT120k52E6NcDSi fW4mgPSSp42auoBwy/ByyQM8wypRJzEtaMHtl289sAWajlQdThGhLqSJJNh7MIZsJ+7v MNQ8mTMbhU1iCz9ts5J8V4xgGOnaAMfZNQq7YMPemXCPs+LpLPHIsDAxLx5O5LGzK6K5 HHrg== MIME-Version: 1.0 X-Received: by 10.60.115.202 with SMTP id jq10mr19194564oeb.0.1399493692391; Wed, 07 May 2014 13:14:52 -0700 (PDT) Received: by 10.76.180.161 with HTTP; Wed, 7 May 2014 13:14:52 -0700 (PDT) Date: Wed, 7 May 2014 17:14:52 -0300 Message-ID: Subject: Adding esdhc4 eMMC support on mx6sabresd From: Fabio Estevam To: Dong Aisheng Cc: Shawn Guo , "linux-arm-kernel@lists.infradead.org" , "linux-mmc@vger.kernel.org" , Sascha Hauer Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Dong, I have tested the following patch to add support for the emmc port on mx6qsabresd: ,and this is the result: mmc2: new high speed DDR MMC card at address 0001 mmcblk1: mmc2:0001 SEM08G 7.39 GiB mmcblk1boot0: mmc2:0001 SEM08G partition 1 2.00 MiB mmcblk1boot1: mmc2:0001 SEM08G partition 2 2.00 MiB mmcblk1rpmb: mmc2:0001 SEM08G partition 3 128 KiB mmcblk1: error -110 sending stop command, original cmd response 0x900, card sta0 mmcblk1: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card 0 mmcblk1: retrying using single block read mmcblk1: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card 0 end_request: I/O error, dev mmcblk1, sector 0 mmcblk1: error -84 transferring data, sector 1, nr 7, cmd response 0x900, card 0 end_request: I/O error, dev mmcblk1, sector 1 mmcblk1: error -84 transferring data, sector 2, nr 6, cmd response 0x900, card 0 end_request: I/O error, dev mmcblk1, sector 2 mmcblk1: error -84 transferring data, sector 3, nr 5, cmd response 0x900, card 0 end_request: I/O error, dev mmcblk1, sector 3 mmcblk1: error -84 transferring data, sector 4, nr 4, cmd response 0x900, card 0 .... Is there any extra patch I need to apply? I am running linux-next 20140506. Thanks, Fabio Estevam --- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -444,6 +444,21 @@ MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059 >; }; + + pinctrl_usdhc4: usdhc4grp { + fsl,pins = < + MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059 + MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059 + MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059 + MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 + MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059 + MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059 + MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059 + MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059 + MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059 + MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059 + >; + }; }; gpio_leds { @@ -535,3 +550,11 @@ wp-gpios = <&gpio2 1 0>; status = "okay"; }; + +&usdhc4 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc4>; + bus-width = <8>; + non-removable; + status = "okay"; +};