From patchwork Mon Dec 9 16:50:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11279731 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 087EE139A for ; Mon, 9 Dec 2019 16:51:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C8E932073D for ; Mon, 9 Dec 2019 16:51:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SwoA83/N"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LmryHUei" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C8E932073D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0TUZ5cC8bfiQh52HohI76f7LPgqfn7V4AhLitRDj9g4=; b=SwoA83/NNcApty on2U3AqEI6z5cHctmPB9NI+ZzAj+eH7oBW4gmDM0u8QCbxOffIobrjPxZs35tUouco5asDpJueNS1 qVaZKyxBX0pxj29SV5LV1YdjKd17HsTNS9U4bx3bBI12ZfkWKM4T+TdZaW+5UZA/Wf81/MBjZTYZF n06vmDp76LtZ6N6csiidOv9lF8H9kw1pT8aN05Qt+uENFk86Gv0co+h2D3wTABaBqy9E5zZs3dr94 U+VKnYRa7kbGj8swQtR96RQe9KBkQqS7Hvcf5LsRGrlz2REsYSCYVKnILKsz80BpYn1gMttm+7MFi tyzEaKwqE1Sfp8XAqXuw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieMFM-0005VI-SB; Mon, 09 Dec 2019 16:50:56 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieMFB-0005Kl-7y for linux-arm-kernel@lists.infradead.org; Mon, 09 Dec 2019 16:50:46 +0000 Received: by mail-pl1-x643.google.com with SMTP id x13so6031751plr.9 for ; Mon, 09 Dec 2019 08:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=etbkgpiNShv5Cytt/jCJtMGgQu7+VxY2ZKOwE9HC8iY=; b=LmryHUei0D0PMsmqoiA0cnhC0s0Bh7PIls560OGF8S/keUhUPXJSerLgvFf94h5KRi 26NENu4/vOKlQNTDBVegnYwlNEwfIXt6hjrtG0cOpK1wfhWPlAclt9HQgUGVLropdX4M HEep4fG7UKTrBObaJQYF5/i1FOvfUrLfHpPlYjvC3/PJ+80WeQDedUZJW2WCRTaOrhFv qguE6ISXHo8AkO7T4dv/L45JXaNokn9XKz52I447nWsMMG1eF9E48ZLAaleq1sQcF6Qm We+O6T29Ak3QL+NoITcxy3e7nrP8VomYNxqM6DL993gLTGXRHRwuQEs0RCXWgiZMnn7W Qh2w== 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:mime-version :content-transfer-encoding; bh=etbkgpiNShv5Cytt/jCJtMGgQu7+VxY2ZKOwE9HC8iY=; b=R8FozFMHkgdk/2ik5hxNe5m7ik+7Mr9czjz7Qr9Uvxrs04Txfyp3HYBJDg7qlXNG0L zQlMfwRv0O+GqcbePpc2tvX64mYP1qe404Tci5IxHoAtbAbYfrPLXb6mEXl9KOGc0N/i HFJDeof8VPcHo0GQx3l7rslAUt5uGhLMVE0lIaZUsEf8m8lmE8k2gT+NY8h8emlYTtVl IhJo8re7mrjx9CHGV7+AFKdSzV75GJUchgAWsklqXTOukioxh3gLXxGU2yYHOIww4YNh H8TI9M+Z1kGAAs9wmNoKPDsKB/c0hK9wFf0nehCw37TCtua1ihbjnkZjH4kieRucLKnp 1Rxg== X-Gm-Message-State: APjAAAXBwXPW/HxhcshYbMM5mKfGWpy4UtqYe6XcohoHptzPNNX3LQb8 GeqskneZpMwBACV2eYPv2H6aoyZddl0= X-Google-Smtp-Source: APXvYqyvDySvpOZ47zirv38B2yVsexxZWO+tz0/xVInQrwd4MezOaWncApQWqSq5tWn8FXzGRvQdJA== X-Received: by 2002:a17:90a:5d04:: with SMTP id s4mr7621515pji.120.1575910241646; Mon, 09 Dec 2019 08:50:41 -0800 (PST) Received: from localhost.localdomain (c-67-165-113-11.hsd1.wa.comcast.net. [67.165.113.11]) by smtp.gmail.com with ESMTPSA id c19sm18299294pfc.144.2019.12.09.08.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 08:50:40 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 1/3] ARM: dts: imx6: rdu2: Add node for UCS1002 USB charger chip Date: Mon, 9 Dec 2019 08:50:16 -0800 Message-Id: <20191209165018.21794-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191209_085045_287179_179C2EAA X-CRM114-Status: GOOD ( 13.46 ) X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:643 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 1.0 FREEMAIL_REPLY From and body contain different freemails X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , Shawn Guo , linux-kernel@vger.kernel.org, Fabio Estevam , Chris Healy , Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add node for UCS1002 USB charger chip connected to front panel USB and replace "regulator-fixed" previously used to control VBUS. Signed-off-by: Lucas Stach Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: Lucas Stach Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- Changes since [v2]: - Rebased on recent linux-next (12/05/2019) Changes since [v1] - Added GPIO hog configuration to put UCS1002 into correct mode even before its driver takes over. The code for that is taken from similar patch from Lucas, so I added his Signed-off-by as well. [v2] https://lore.kernel.org/lkml/20190529071843.24767-1-andrew.smirnov@gmail.com/ [v1] lore.kernel.org/r/20190522071227.31488-1-andrew.smirnov@gmail.com arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 77 +++++++++++++++++++------ 1 file changed, 59 insertions(+), 18 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi index ee364215fb9d..7531f0595bd1 100644 --- a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +++ b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi @@ -60,18 +60,6 @@ regulator-always-on; }; - reg_5p0v_user_usb: regulator-5p0v-user-usb { - compatible = "regulator-fixed"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_reg_user_usb>; - vin-supply = <®_5p0v_main>; - regulator-name = "5V_USER_USB"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio3 22 GPIO_ACTIVE_LOW>; - startup-delay-us = <1000>; - }; - reg_3p3v_pmic: regulator-3p3v-pmic { compatible = "regulator-fixed"; vin-supply = <®_12p0v>; @@ -406,6 +394,39 @@ }; }; +&gpio3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio3_hog>; + + usb-emulation { + gpio-hog; + gpios = <19 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "usb-emulation"; + }; + + usb-mode1 { + gpio-hog; + gpios = <20 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "usb-mode1"; + }; + + usb-pwr { + gpio-hog; + gpios = <22 GPIO_ACTIVE_LOW>; + output-high; + line-name = "usb-pwr-ctrl-en-n"; + }; + + usb-mode2 { + gpio-hog; + gpios = <23 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "usb-mode2"; + }; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; @@ -675,6 +696,16 @@ status = "disabled"; }; + reg_5p0v_user_usb: charger@32 { + compatible = "microchip,ucs1002"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ucs1002_pins>; + reg = <0x32>; + interrupts-extended = <&gpio5 2 IRQ_TYPE_EDGE_BOTH>, + <&gpio3 21 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "a_det", "alert"; + }; + hpa1: amp@60 { compatible = "ti,tpa6130a2"; pinctrl-names = "default"; @@ -1019,6 +1050,15 @@ >; }; + pinctrl_gpio3_hog: gpio3hoggrp { + fsl,pins = < + MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x1b0b0 + MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x1b0b0 + MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 + MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x1b0b0 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1 @@ -1066,12 +1106,6 @@ >; }; - pinctrl_reg_user_usb: usbotggrp { - fsl,pins = < - MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x40000038 - >; - }; - pinctrl_rmii_phy_irq: phygrp { fsl,pins = < MX6QDL_PAD_EIM_D30__GPIO3_IO30 0x40010000 @@ -1131,6 +1165,13 @@ >; }; + pinctrl_ucs1002_pins: ucs1002grp { + fsl,pins = < + MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x1b0b0 + MX6QDL_PAD_EIM_D21__GPIO3_IO21 0x1b0b0 + >; + }; + pinctrl_usdhc2: usdhc2grp { fsl,pins = < MX6QDL_PAD_SD2_CMD__SD2_CMD 0x10059 From patchwork Mon Dec 9 16:50:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11279729 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B3B71593 for ; Mon, 9 Dec 2019 16:50:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC0832073D for ; Mon, 9 Dec 2019 16:50:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="luWlamk3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BQOeRUrP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC0832073D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FxIlmKMh2woD83rgLY+sZ2BCp7i4xfbJvF0X+KgSD8M=; b=luWlamk3CjVF4M yl0NXFOnSql+ZOjPx904rxx+9hYmJFOHZjma3dZV/EAqR+8JlCtzN1bUMEbQy4kwp/yQu4Coymkep 4XSxLbnv6vHcwLAhI1UH1pgLWA5n+QqHNFt3Wz5Tca+8vW8dYXpUgyCGLPerOZNpjl7SwPPKJvLSl 6Gn9EaP2NA7PtVjvPEKGY0uo5B3xjGhlpGHY/maNnLpDAEZLpcdTQCpoLwbhcrS8GH7CkZ9eO1y8d witdz0CJR91dDvakeqwlPGFm2Ob/M5WwZ3biaCKEEC8zbN39eeOvZzbR8HRLO5vL0Fd+N/KOZiU7z Yu+rS2Sv1NQnc5NGkVLw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieMFE-0005MG-KX; Mon, 09 Dec 2019 16:50:48 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieMFB-0005L1-Ao for linux-arm-kernel@lists.infradead.org; Mon, 09 Dec 2019 16:50:46 +0000 Received: by mail-pj1-x1043.google.com with SMTP id w5so6129645pjh.11 for ; Mon, 09 Dec 2019 08:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HxjIDEX+7ZVeJgru8LvvR5BufYtC0NpT+WMH9OusOnY=; b=BQOeRUrPJ++Kti92Xgwb5MxAYTIorWD7rvCPzQY/cR2v608QtRkHwD6Y+ywHt8d84x rgCXVDZbeKRx0VBOH89NFymh5/jMPAGwo6yJRQxw+kYaDqfnU/wT2j+LuKiYyuD4HB/1 KSQoGWEsuVMK+dqIKyDqffC/Rso/XGEvNcqwMlDfTdvCLktfCZb8UBzYTJVfI6qVb0Jp IQSqlBsZKlecpPyAvmS8q1uUEXAXK8kboyXwHwtBCbmVLM1kjKCX6OiMqcPpfMia9Izz ymwh5Bs2RWRMS7QyWzPxprJh0cWCJmmJ0TV+/alpNwSmkb1l658CP6Obv3KyezE0t2ds qnag== 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:mime-version:content-transfer-encoding; bh=HxjIDEX+7ZVeJgru8LvvR5BufYtC0NpT+WMH9OusOnY=; b=HpkWP9d42pjQ4eSFugRHTPYoIkviU05xLFQeZJgyFlA8cnlq+AMs99iCur/XMTEkdf ITV8eR1dsaUGsIjRlSzFn9AmeQAzyoZavq2v/lGUbcdiVRHmsozSFvguMLSQfjUgpT3N y4f/hAQzzqm84R1HLnUu/pzf6vAIMwvX9X85JBL/Wbas+P7OP4Wo349c1MLyVODrzqo7 lFmP8+WPcy9bfR6WMEP1hEwqwTJCCLQ77SnwVc1OsRO55S+ubTJ1ICS71b9b2iLGkopj VZLsSPbLWvjZnRSu8eZyQDSFzDpGs/POzQ0cICli0qL9z4UAShddl9p/cqmTDiEmRt7u gyEg== X-Gm-Message-State: APjAAAWM8N+QQw3GbFQzn/40h+7ke9/eBbThFf+dKzOjQAIcLW98Pf6G TKGpmb+/wJYpW2hDYEWfoX81ZqAJUTM= X-Google-Smtp-Source: APXvYqw7fxQZCJAJm1NIbn6GoldxdOhS8euDIKP37TXk4AquUSLIi3jNWpIgYBiJKeIf9lakrhXYmw== X-Received: by 2002:a17:90a:cc16:: with SMTP id b22mr33101464pju.65.1575910243781; Mon, 09 Dec 2019 08:50:43 -0800 (PST) Received: from localhost.localdomain (c-67-165-113-11.hsd1.wa.comcast.net. [67.165.113.11]) by smtp.gmail.com with ESMTPSA id c19sm18299294pfc.144.2019.12.09.08.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 08:50:42 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/3] ARM: dts: imx6: rdu2: Disable WP for USDHC2 and USDHC3 Date: Mon, 9 Dec 2019 08:50:17 -0800 Message-Id: <20191209165018.21794-2-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191209165018.21794-1-andrew.smirnov@gmail.com> References: <20191209165018.21794-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191209_085045_366859_44C4ADAA X-CRM114-Status: GOOD ( 10.51 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , Shawn Guo , linux-kernel@vger.kernel.org, Fabio Estevam , Chris Healy , Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org RDU2 production units come with resistor connecting WP pin to correpsonding GPIO DNPed for both SD card slots. Drop any WP related configuration and mark both slots with "disable-wp". Reported-by: Chris Healy Reviewed-by: Chris Healy Reviewed-by: Lucas Stach Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Lucas Stach Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi index 7531f0595bd1..d062c86e0762 100644 --- a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +++ b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi @@ -743,7 +743,7 @@ pinctrl-0 = <&pinctrl_usdhc2>; bus-width = <4>; cd-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; - wp-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; + disable-wp; vmmc-supply = <®_3p3v_sd>; vqmmc-supply = <®_3p3v>; no-1-8-v; @@ -756,7 +756,7 @@ pinctrl-0 = <&pinctrl_usdhc3>; bus-width = <4>; cd-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; - wp-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; + disable-wp; vmmc-supply = <®_3p3v_sd>; vqmmc-supply = <®_3p3v>; no-1-8-v; @@ -1180,7 +1180,6 @@ MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059 MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059 MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059 - MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x40010040 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x40010040 >; }; @@ -1193,7 +1192,6 @@ MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 - MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x40010040 MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x40010040 >; From patchwork Mon Dec 9 16:50:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 11279733 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 81180139A for ; Mon, 9 Dec 2019 16:51:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5D15F2073D for ; Mon, 9 Dec 2019 16:51:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RNWsIk3U"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iplkALAZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D15F2073D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qK2fLwh07LWcVHbEvSRsXB833vwIJH7YtWDWXCq3q8s=; b=RNWsIk3USfwpPk jix0Kqz3PMiYuFucZaqKSUMs/ZrYgdlWl87Z21Bf12GCjlI/W4q9szACuseEpyEJU7GPUGmKeRzIb LOjp586A5ju4OI3++T39PlkyhF8P9g/D7uzFrxOVB89LtAI2KC/PDXntUPBL2q0KBTVbT0KyzKXlM G8iWAMR7uzGHADAWw7SDcCPs1ZNtg9dMa3n570hYbQh+TUcGs+56C8Kb+T03UaZ1mJw6c38As6s0X 9m45VM/VVHYlMLJyIaTJ/RI7k99ISZ4nrA1Gl1Qik/PoXUdmBbV6mpz4dZwgICo40OJw61/LcVL4q 4fwfnq+elMZ+UW2R++PQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieMFY-0005j7-5h; Mon, 09 Dec 2019 16:51:08 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ieMFC-0005Ll-Ks for linux-arm-kernel@lists.infradead.org; Mon, 09 Dec 2019 16:50:47 +0000 Received: by mail-pj1-x1044.google.com with SMTP id r11so6131161pjp.12 for ; Mon, 09 Dec 2019 08:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7j8A/bmJ0tivsU1R0/vbl49gfES1PujVpawMqj4L0dI=; b=iplkALAZMx+B4uudUY+CyOprIn5iQJqyJfp73EPWgJt3f5iTj/qSpIwRdArrIDAQ/q yCnhdG4xKbW/AUUVaYED3jlGQoTcWI9xdpyV9jN5begCp1ibEK0NSH2y5JtNaeSDSch3 PxWcatN0Sq9JLZh+9qpJ2fMGREq6DL7ZFPxhZ95hyfckkDafiIy4FRtrXKEQ0oC5lUgh Y6NZPMKmmr3xRQtnY6FXmDmd6p/kLSCKwK7fqH+KMg+klPCRMwc2AFOANV8Dz13UIWav Gg0xJUb10//xoqyfU3OYaHP2YXwDGenQxGDGMHAEHdLUcj9KITsT/bsKMjfNA0zoDNyT r+fA== 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:mime-version:content-transfer-encoding; bh=7j8A/bmJ0tivsU1R0/vbl49gfES1PujVpawMqj4L0dI=; b=oDXorsfwAhcYSHkp/RkdoRijMHYzGVJBKwdvS+LkTBqTxrcpQM30QHEEoAXR8D260x LpFRImWo4JioN9ZPdFNNKE2lX7VxG6gfRczjc+vbSxg6sU/7VzAXtNcl/uBFLRHS+YG8 QaLHJB0Cp7Afg6O5HQ58lhNbiI4oOw+DO7ZLz9r5feOZDfZIXX+NHxO+CSxDyH1hFdsP qU45IR6l79yqm74pOXcki0Ea3YIIw0gpjMc/XTs/bnVMNLhZ10CB0tmEs50QU6Hcj1dx I9hLX37u7PgqhrKu32nsEQJjqhpX8ufdYxnABxYpU/BlqfPK3KkeyXQv+noYdvchapuw mVdA== X-Gm-Message-State: APjAAAWZaodbChpVNMN7VhyS4n1XYxWAvxXlbyuq6KoeAg752Nc84WnE 1AKmLMCCgIkiOwrP2qbGAIEqgueKtAQ= X-Google-Smtp-Source: APXvYqzQjCtuiV7fSG1wIeHmk2lOV/ALk5dveVljihJCp6vzBXm2UhInYMiasdvg3HGwQmtmb10w1w== X-Received: by 2002:a17:902:7d98:: with SMTP id a24mr30813869plm.321.1575910245353; Mon, 09 Dec 2019 08:50:45 -0800 (PST) Received: from localhost.localdomain (c-67-165-113-11.hsd1.wa.comcast.net. [67.165.113.11]) by smtp.gmail.com with ESMTPSA id c19sm18299294pfc.144.2019.12.09.08.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 08:50:44 -0800 (PST) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/3] ARM: dts: imx6: rdu2: Limit USBH1 to Full Speed Date: Mon, 9 Dec 2019 08:50:18 -0800 Message-Id: <20191209165018.21794-3-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191209165018.21794-1-andrew.smirnov@gmail.com> References: <20191209165018.21794-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191209_085046_679800_B31FEFB5 X-CRM114-Status: GOOD ( 10.45 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andrew.smirnov[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , Shawn Guo , linux-kernel@vger.kernel.org, Fabio Estevam , Chris Healy , Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Cabling used to connect devices to USBH1 on RDU2 does not meet USB spec cable quality and cable length requirements to operate at High Speed, so limit the port to Full Speed only. Reported-by: Chris Healy Reviewed-by: Chris Healy Reviewed-by: Lucas Stach Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam Cc: Lucas Stach Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi index d062c86e0762..ca0b81c41998 100644 --- a/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +++ b/arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi @@ -890,6 +890,7 @@ &usbh1 { vbus-supply = <®_5p0v_main>; disable-over-current; + maximum-speed = "full-speed"; status = "okay"; };