Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1333718ybt; Sat, 11 Jul 2020 07:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt+LUZ+UTBGfPdIwzoKVjaFnMiDBxKgBA4kljbEhOCaTIca9YSeml79cVDWd70kKqBa+aj X-Received: by 2002:a05:6402:cb3:: with SMTP id cn19mr81051751edb.368.1594476046741; Sat, 11 Jul 2020 07:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594476046; cv=none; d=google.com; s=arc-20160816; b=kFuhcOC8K2J9kYIqvLOmtCvZR6ed3zwXaL96HUoJZ1FAI4L5qlyrypeqYwmc8z0+oE zdu7XLr/UR7igZ6hWk7umvbKbCAaOtAMZUUi4OLqxXieaNLbzZKXyTG0xSPw6KykW+y8 vBdfNGPwj1er0QMTiK71+MxMOzeLYj3vS2BJl0djw/PNHg7AyCvIJMQTX3UEet/3AAl7 LrXgMBo1zpyQguWR3vsIFfoJBPAhqNhVBOkRps8oVkP10nHw5MC0OuuYittr4z/nCnmo GQ2T8sUwN4TrZQOlf8Wv1HNHxmhRF/juKpEI2aAwaPJEmG5A/GWj8sEuJWfGhBomgi5v POJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ce9DCAzmFHbxXh+VKndIV4GjWqwoD2dhcFBT1/IkOGQ=; b=CMDyzQ6bM1paTnbnaUBkPlGB4VD2ymz/bUCAR+GJKZ7nvAasuCzI6xvG868PnmKTjT bFyB8559fSqKPnVQPFwYtQ+vGVrQja4LM1AjOtHTSiht4SzQ99wOfXiwakUfoXbc11N+ XAFol//Jy4TrC6W1rATtdPSu8BtMIFh5wY4giBQQq1vGaGHbmfZ3Gmy9ieQvrCcx4NuU kdLRw++2RBtYny3RmYd9isY/nsyfRDNDJUzr6Ur1GPPTgBviMr+V4EaSEuMErF+dMf8t QrdwctOJ8xkMxVY8LpawpjmcNMSIXZtPXdh7B7t5V2S8Xrm41W3CsxBBKbyFX1JDlu3G t15Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G+W7r0lA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si5628115ejs.214.2020.07.11.07.00.24; Sat, 11 Jul 2020 07:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G+W7r0lA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbgGKN7f (ORCPT + 99 others); Sat, 11 Jul 2020 09:59:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbgGKN7f (ORCPT ); Sat, 11 Jul 2020 09:59:35 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 213352075F; Sat, 11 Jul 2020 13:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594475974; bh=VCNazDGXDe9TTx4C3+c6fx6cBMGJaPBEU1mA1ZaENlk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G+W7r0lAu+n5kBPlQXWEaJ/aTq1lCoj4OaSn0YrYLCAEHCOSndm0TIII6UGMxVF6X dcpg9wjpFaat+fwrc+qTbN/VSsM/PToDEJUnQr0Atls5sJOvVNj/Jm4YkJEziXRIDd piOeBKbft3s/IIFZwG0nkHl6UH+R6ohKCueCanaY= Date: Sat, 11 Jul 2020 21:59:26 +0800 From: Shawn Guo To: Suniel Mahesh Cc: robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, gregkh@linuxfoundation.org, sashal@kernel.org, jagan@amarulasolutions.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Michael Trimarchi Subject: Re: [PATCH v2] arch: arm: imx6qdl-icore: Fix OTG_ID pin and sdcard detect Message-ID: <20200711135925.GG21277@dragon> References: <1592623696-21485-1-git-send-email-sunil@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592623696-21485-1-git-send-email-sunil@amarulasolutions.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 20, 2020 at 08:58:16AM +0530, Suniel Mahesh wrote: > From: Michael Trimarchi > > The current pin muxing scheme muxes GPIO_1 pad for USB_OTG_ID > because of which when card is inserted, usb otg is enumerated > and the card is never detected. > > [ 64.492645] cfg80211: failed to load regulatory.db > [ 64.492657] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware > [ 76.343711] ci_hdrc ci_hdrc.0: EHCI Host Controller > [ 76.349742] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2 > [ 76.388862] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00 > [ 76.396650] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08 > [ 76.405412] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 > [ 76.412763] usb usb2: Product: EHCI Host Controller > [ 76.417666] usb usb2: Manufacturer: Linux 5.8.0-rc1-next-20200618 ehci_hcd > [ 76.424623] usb usb2: SerialNumber: ci_hdrc.0 > [ 76.431755] hub 2-0:1.0: USB hub found > [ 76.435862] hub 2-0:1.0: 1 port detected > > The TRM mentions GPIO_1 pad should be muxed/assigned for card detect > and ENET_RX_ER pad for USB_OTG_ID for proper operation. > > This patch fixes pin muxing as per TRM and is tested on a > i.Core 1.5 MX6 DL SOM. > > [ 22.449165] mmc0: host does not support reading read-only switch, assuming write-enable > [ 22.459992] mmc0: new high speed SDHC card at address 0001 > [ 22.469725] mmcblk0: mmc0:0001 EB1QT 29.8 GiB > [ 22.478856] mmcblk0: p1 p2 > > Signed-off-by: Michael Trimarchi > Signed-off-by: Suniel Mahesh Do you need to have Fixes tag and copy stable kernel? Also, subject prefix should be like 'ARM: dts: ...' Shawn > --- > Changes for v2: > - Changed patch description as suggested by Michael Trimarchi to make it > more readable/understandable. > --- > arch/arm/boot/dts/imx6qdl-icore.dtsi | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/imx6qdl-icore.dtsi b/arch/arm/boot/dts/imx6qdl-icore.dtsi > index 756f3a9..12997da 100644 > --- a/arch/arm/boot/dts/imx6qdl-icore.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-icore.dtsi > @@ -397,7 +397,7 @@ > > pinctrl_usbotg: usbotggrp { > fsl,pins = < > - MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 > + MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059 > >; > }; > > @@ -409,6 +409,7 @@ > MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17070 > MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17070 > MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17070 > + MX6QDL_PAD_GPIO_1__GPIO1_IO01 0x1b0b0 > >; > }; > > -- > 2.7.4 >