Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1010166ybt; Fri, 19 Jun 2020 21:31:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziXaPt48xcj36YEQOSpmzNTZ2q3EFSCYyBJZLCLYirVbUStoJ/gW4p6i+WvsmQyBdsn46U X-Received: by 2002:a05:6402:22a5:: with SMTP id cx5mr6797036edb.246.1592627472539; Fri, 19 Jun 2020 21:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592627472; cv=none; d=google.com; s=arc-20160816; b=krNWOfTL3VhvTTzcrywTRvOT8hX8YtQdeSn38ldj81sEsgVx2eedOPsO26WjGA+ZUz 5g8wug6CReQfNj3Q76D8Z/DiVV3PqGf/92DZbLn68MAqZm+e0dTJEZvZ0hM+buRrH7Gw q1ryRHMLuuosIZI37gNuZxg0if076j7E8JFOq1zsD4Z7qcQuUHWZfvZ0N39Xw3OxEUaM pylT1DEidOuvPB5gc7XXSXw2UVBB2iWE8uiC/Ra0Oz6Q6hLRLDntuI4htEg3Z0XojpDA geR/gT6X1fzc69gHd3zUeh+6nWVlsHV292KxlFiVAZ1aqkZuQrigKZ9RZobve8ukMAn/ 3v1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=QpjsOQ81m2+7Vf1tKhbI0NPMb57wPuYHIHejUZfeOx0=; b=bBrFWPeiRSt1YOc7e+nkPiKUsp+n37SkP3479MkcU6TYYSY1osVmbRGKFzMixFxpDf r/WXtC9Jm/SyeXt233RYlLDlSfQ6vl9252p5O1bVu37gBzI/NJLcV1pPqe4b8PG7gAIU BmcVMfYhkXmVsEJrbds5c+FPrI822VpKYKNMo/uMUAMdSo/RKDvn2IwUbue5IMiqWpjX 35hR/oSYpFcbNV8L72QSDu2kzhOINWSulyYJpkT2CdNvISPbpolDmeqcGzgFdyu6TTPT IOlxM90ffzIFsbNEf3DkXlh5liir/cShNpRybc0ibHUcu3Bfrrb+9bzll2YgZUY/HxDG s9YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=W+x4CClX; 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 do5si6941185ejc.105.2020.06.19.21.30.50; Fri, 19 Jun 2020 21:31:12 -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=W+x4CClX; 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 S1733258AbgFSTQc (ORCPT + 99 others); Fri, 19 Jun 2020 15:16:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733115AbgFSTQb (ORCPT ); Fri, 19 Jun 2020 15:16:31 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F124C0613EF for ; Fri, 19 Jun 2020 12:16:31 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id i12so4440532pju.3 for ; Fri, 19 Jun 2020 12:16:31 -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; bh=QpjsOQ81m2+7Vf1tKhbI0NPMb57wPuYHIHejUZfeOx0=; b=W+x4CClX3BaHnLSt/1xtF5HA5oIJlM8A+EGmUOOouefvbHiG6YC0Wsg8b7CB6Pp8f5 pEyFrNb9aZk1QdlliapBCUCIem9PZnRIF1pNDG541eEWKTNagxIBWk/a5ThEjdUHubXI O2fstgpGQQrTlufuHR2nutPWOwG7k0KKO0UPw= 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; bh=QpjsOQ81m2+7Vf1tKhbI0NPMb57wPuYHIHejUZfeOx0=; b=iKcQrYHXKbTcyiW1UGnw0TCTunO11qNzuQIO8pGEtJNG8dtj8ZJ1YzmvhgJ+Ejw+sc p+XbbJBIBX+mgmKAoIXq/W63nDEBWhLhFOMrOdS+uegVSoQ9qAiDAptDeXfUtT68DbvJ D1DDQ7zhtpW/BpHBUY7/I3g94aJnEipkR1aocZ/C9matNh7SlJR6GX4GTMkzDVt29xd6 0+KdSHyRN93YDoPysMBTvB7t5TB/aBMZrW2OxJYeooNtw8dzgSVbGjKHzHnY2Yi7S1GU 4DetCV92VbL1Ljz/yF7VfgzZy1RS7qm/tNmpL2OaGwY4HAnXOcR+Y8krXH7oWwOioJq7 sW2w== X-Gm-Message-State: AOAM53239meZoPWF9uxs9OkeHAJavGIlKBqDX8PKbYzy7VD9I2bdXxfA rbDQ/xz1MBv2tRM8GV9viZ36cw== X-Received: by 2002:a17:90b:50d:: with SMTP id r13mr4895894pjz.94.1592594190698; Fri, 19 Jun 2020 12:16:30 -0700 (PDT) Received: from localhost.localdomain ([42.111.138.30]) by smtp.gmail.com with ESMTPSA id 12sm6482743pfj.149.2020.06.19.12.16.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jun 2020 12:16:30 -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 , stable@vger.kernel.org Subject: [PATCH] arch: arm: imx6qdl-icore: Fix OTG_ID pin and sdcard detect Date: Sat, 20 Jun 2020 00:46:13 +0530 Message-Id: <1592594173-13497-1-git-send-email-sunil@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 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 but the TRM mentions GPIO_1 pad is muxed for card detetcion, 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 Fix the pin muxing as per TRM by muxing ENET_RX_ER pad for USB_OTG_ID and GPIO_1 pad for card detect. [ 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 Cc: stable@vger.kernel.org Signed-off-by: Michael Trimarchi Signed-off-by: Suniel Mahesh --- NOTE: - patch tested on i.Core 1.5 MX6 DL --- 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