From patchwork Mon Jul 24 08:50:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 9858995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0289760349 for ; Mon, 24 Jul 2017 08:51:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E74B5285C6 for ; Mon, 24 Jul 2017 08:50:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBDF2285A7; Mon, 24 Jul 2017 08:50:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Flag: YES X-Spam-Level: **** X-Spam-Status: Yes, score=4.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 X-Spam-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [65.50.211.133 listed in list.dnswl.org] * 1.3 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net * [Blocked - see ] * 3.3 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS * [90.63.251.89 listed in zen.spamhaus.org] * 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server * [90.63.251.89 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 772A62858D for ; Mon, 24 Jul 2017 08:50:59 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=y3rkQpetmtVCcphuObBFxtMeY3G3VQ1+TOeDONizASs=; b=l1Q+G63Kc5pTq+h7bgqkZp46bm 7WhyyjDuNl4G1cE3uOcf0VWo/swlstxxkIMnNN3Q5enyKQKdXZMGO+0Y4mPnj2vuUJ6jPsBzH9DHz wax5jTFE5T6YHo3wiEVQW5iJsZW46xaEXDaQMXRyg4/exIYLD+rUZrnEvMAE6WrhgLCXswxfvNGgi UujbT7ISUhEXvwYlCKUrw+7xDv1fPUqjko/bZlMEoTERYG3uu2ffQ/13EFhAI0vx6Bq+ZDmfB/fWj WMD9IoMLADElwqpB1KaDV9ybhGc5TKmu6o86hvAzHymTcn7IpQoA0iEGnytw8Emgnt/rzYa1xDXUw W78+fDKA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dZZ4p-0008Ue-UC; Mon, 24 Jul 2017 08:50:55 +0000 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dZZ4U-0008Dl-97 for linux-arm-kernel@lists.infradead.org; Mon, 24 Jul 2017 08:50:36 +0000 Received: by mail-wr0-x22b.google.com with SMTP id y43so103136926wrd.3 for ; Mon, 24 Jul 2017 01:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=btqkamsl5E0EzyGy3UU8CYBqQ6DlfbXQw6O7makIpWo=; b=Sie+zdnJBEG6KivsoVgBBuDm/cehZfbCnQFcsCJwPd/pbJL7G0DQeDO69MSMKHdA9h Qv525vthC5O6w1E06aLlJm816RuarL9pqZc2exzqDE+9vmLISVg968xEwCXHl9y6mGVA 0oawqXqufcrc2S+Tv9AQol7M9jnNFj1bKjl0pflx5Z/EUqAT7jiqVZpOkOVkPoYtMXT7 ZjtVcosmZ7Fk3AFQo9iUHQLStDyzGhn85/5WufxiwOgszuv4hZkIRwrnB1QK2fyxn/EY fYWo+FWnXiYe29ojLXXHRztS1oThiy+XujSM1ckT8JkA/SlmrcJkWuYfwZzBp/hKCLgz HRtA== 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=btqkamsl5E0EzyGy3UU8CYBqQ6DlfbXQw6O7makIpWo=; b=TfVODJGRRCF3zPf8cXNWxHlne2x9WLZIMO2yIUi8UT4qlt58J1YGHEhZH483mDNf0o gPjgLgQaxy2SM2jGZuTYYzGwl5pWdv8sfy9N2ifQ8+NxGxSykQIb1tpdZ2GD7Obfzj+a G8eY5oq0SvnAnb0ZMwbWhYSqkvxDrS8BGwG+7RWmxYsLAAfdVBZPmm6lT+6ifDs0EU5f 6K37hwf+++iDDGCuoP3MVSGl3M3cHMZ9hd+KIiBFr/cVSA8SEwe2kM6c35NO4wrBr/9U NL/kElYC/cnrIyH5tUFUnFm4RfI5ZpwcuelPoluKO3I6OhZKihvy+Sg+UQnMKL6V52j8 2/wQ== X-Gm-Message-State: AIVw112EoUjb9M8ftB1NCE5oTpjITtDIrKCPzvQvH6ohcAZ0E5in07gb tMHdK5kwdz46UAyk X-Received: by 10.223.168.110 with SMTP id l101mr11004548wrc.251.1500886212578; Mon, 24 Jul 2017 01:50:12 -0700 (PDT) Received: from t450s.lan (LMontsouris-657-1-10-89.w90-63.abo.wanadoo.fr. [90.63.251.89]) by smtp.googlemail.com with ESMTPSA id p136sm6414896wmd.39.2017.07.24.01.50.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 01:50:11 -0700 (PDT) From: Gary Bisson To: devicetree@vger.kernel.org Subject: [PATCH 1/2] ARM: dts: imx6qdl-sabrelite: fix USB PHY reset Date: Mon, 24 Jul 2017 10:50:04 +0200 Message-Id: <20170724085005.22101-2-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170724085005.22101-1-gary.bisson@boundarydevices.com> References: <20170724085005.22101-1-gary.bisson@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170724_015034_470479_1B20036A X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Gary Bisson , robh+dt@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Declared as a regulator since the driver doesn't have a reset-gpios property for this. This ensures that the PHY is woken up, not depending on the state the second stage bootloader leaves the pin. This is a workaround until a proper mechanism is provided to reset such devices like the pwrseq library [1] for instance. [1] https://lkml.org/lkml/2017/2/10/779 Signed-off-by: Gary Bisson --- arch/arm/boot/dts/imx6qdl-sabrelite.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi index afe7449c47da..7bd14e23afb8 100644 --- a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi @@ -123,6 +123,19 @@ regulator-max-microvolt = <2800000>; regulator-always-on; }; + + reg_usb_h1_vbus: regulator@7 { + compatible = "regulator-fixed"; + reg = <7>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh1>; + regulator-name = "usb_h1_vbus"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; }; mipi_xclk: mipi_xclk { @@ -610,6 +623,12 @@ >; }; + pinctrl_usbh1: usbh1grp { + fsl,pins = < + MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x030b0 + >; + }; + pinctrl_usbotg: usbotggrp { fsl,pins = < MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 @@ -705,6 +724,7 @@ }; &usbh1 { + vbus-supply = <®_usb_h1_vbus>; status = "okay"; };