Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1028957ybt; Fri, 19 Jun 2020 22:09:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySwh6m00gyY0toA/gkDfqHNPlZ7M3rQet+JGHf2h1i4B4x8svqxCnE//eE/JQ+C4HRTX8x X-Received: by 2002:a17:907:20db:: with SMTP id qq27mr6542656ejb.232.1592629767032; Fri, 19 Jun 2020 22:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592629767; cv=none; d=google.com; s=arc-20160816; b=V3g4zg1Lx1rL+Uas2e+ACizzwahFS1UCZzElA2i7FofT4H7ZTyuoeqEHLG6mt2XIe1 Q4X8LcJOgSlmUuwmGPX7bZWO6cPVyljCDwZdze2/SOccmm6a/RKr33xAlXK4sIw7bTxx H+2nKa6G0QKPD9NPAGFYJUCyUBg8EQfO6C9K1tPSMQq5vNkKFUOAQPRBto85g+SgPEy6 Kr3gt4ZHzMomKurTjvStQF/yirZfa2rwN0K/cvVpaTLSCV/tfdqKyVac92PvlHsNH7r1 /7y2zFlRAQ3Tz7hyqzwzVaEmYIeFgcM+N/+LXQ5AP/pbL75ZNI3mPORkqKwpbSqORUjc 65wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=wEs1bwDB/TtDfJTP+rfPS/eV3OYFDhVkY2AGM1gTF5E=; b=ffN9MBE3f0T6J4WqooCU98T0P2LwvzrKkwZd8JtYcvMcpGndwVdSP8LJb3iFdXBX4c COVTRmsfCG9T9NjZK2hiUktI71Qvj/Caoxtu+OuieblI10QQeqNfmiKMoAcuxZpw7yYC 3ajO1sddLsaGJoHfo9YIAnNJCsnvEzPTV1TF8Mujm6r0SBtQWDcGGKKwcjLOTQu0moQd CeSLLXvmSoxXX93dyMDAQ5CtF7gmOngvzo2miX7rtGUALAr4jgrfwOIsic9OYl0ok4CT FaK767YCNjvmWkLj8X6GiuhHHyOxH3y1hjO2l6kP4+R908U8UZNDa4IiPLS7VsIub4wk uRAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pK8cqQB0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb21si4970786ejb.385.2020.06.19.22.09.04; Fri, 19 Jun 2020 22:09:27 -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=@amarulasolutions.com header.s=google header.b=pK8cqQB0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732711AbgFTD2i (ORCPT + 99 others); Fri, 19 Jun 2020 23:28:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732271AbgFTD2g (ORCPT ); Fri, 19 Jun 2020 23:28:36 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46A8CC06174E for ; Fri, 19 Jun 2020 20:28:35 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id d6so5282998pjs.3 for ; Fri, 19 Jun 2020 20:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wEs1bwDB/TtDfJTP+rfPS/eV3OYFDhVkY2AGM1gTF5E=; b=pK8cqQB0iaxFCQTro5VYTVkbeMbmlffBMiXp4BLcWkJ+Hi7VYupgMvngrbaIMZ23DE T+sYQDXM46cA+pIckwp9yhK7KHfNEC/LyhVnBh7tSDZndbi7OQ5Bl1ZQvOTPhd3H4LrN 8qqoaH12Q0DH4IzoR7TTDzAyeBqduNOJLKUq8= 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=wEs1bwDB/TtDfJTP+rfPS/eV3OYFDhVkY2AGM1gTF5E=; b=f/Vg5sWFpY8P7DqKoZ0Vp36VDTSj11joC1iO7Nv1ZCq6AkNh8xP2Qr2J2ajxDaf6yZ NLAOq+uGghZBrIPdb2YN3xpOaYTL+bNNmatHfu3wwQTkkuCOhYpfsuzGQnTgFD657hAy oz5X+skH9MYKhatgi95T6skhozMtaXW2A5Lq1Rmt4PR+pjGhOGZqXLt2A+PAqOkVrFvH NaE20VxaptVxEjMtMElkmSRE1Rpih4IXik9i1FolRq2utDO+gauR3mBNlMU4OqhP1oFY ndun9b2phzKWALb0J6f4dongLH3iZCLjttsPmzvWQAlqkVi8AoY/XHH3m36bjP1J9s67 D+Nw== X-Gm-Message-State: AOAM531MhKmue9lmFkR9gp2cHoU2V8xcNBjJd9ONJ+yqReQ1NHG+vBVx dutEjLFRECxgmnfHKMm8s9TUoQ== X-Received: by 2002:a17:902:6a83:: with SMTP id n3mr10826477plk.42.1592623714598; Fri, 19 Jun 2020 20:28:34 -0700 (PDT) Received: from localhost.localdomain ([42.111.160.67]) by smtp.gmail.com with ESMTPSA id 67sm6182262pga.44.2020.06.19.20.28.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2020 20:28:34 -0700 (PDT) From: Suniel Mahesh To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, gregkh@linuxfoundation.org, sashal@kernel.org Cc: 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: [PATCH v2] arch: arm: imx6qdl-icore: Fix OTG_ID pin and sdcard detect Date: Sat, 20 Jun 2020 08:58:16 +0530 Message-Id: <1592623696-21485-1-git-send-email-sunil@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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