From patchwork Mon Jul 24 12:59:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 9859345 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 4302860349 for ; Mon, 24 Jul 2017 13:01:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33B0C2839C for ; Mon, 24 Jul 2017 13:01:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 287CB2029B; Mon, 24 Jul 2017 13:01:18 +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 6C88E204C2 for ; Mon, 24 Jul 2017 13:01:17 +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=OTHXGAL2I6WFQGUISS8BZYgXLlBEQyeKl25r5DHiF1s=; b=juw/Bcd1neDPngoOkGZYtboR4y vtCX87UTowunGzZi/WKru0LDod1BKvqTx/NUB6JWaITENNZJzXr2IJlS53YABIZGPhA7UgHN8t4Ro ghI+h4AIEAk9xocGOFPQjooYM+rjM478sOSKBOkoU9Awfl6QafpXwW/NGCCH7wnDSm/gHhsbhZaxL yMpWiVnTvmVkdrN8jm0Gmxox7RJmP7wvXXcUXX87WWHfiJlE2Ct8381RDozQLTgIzOQPrqF78KRer HntYfWB/Hp8HapMdB2d6S5AnCU9XMr8wgirJMTWQt2y3sOllkGnXon3IHAt3mNyyvwm+jGn1w2HjP XeqDSC9A==; 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 1dZcz3-0003DD-67; Mon, 24 Jul 2017 13:01:13 +0000 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dZcyL-0002CA-A8 for linux-arm-kernel@lists.infradead.org; Mon, 24 Jul 2017 13:00:37 +0000 Received: by mail-wr0-x230.google.com with SMTP id 33so49348716wrz.4 for ; Mon, 24 Jul 2017 06:00:07 -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=CVl/F2CxkecOWWwDVuH9LBFeQ8BBqxZlqYZ8ucY2JrA=; b=0eGMp4tOp1fH78Rd9Wl38gOu+f//bGWjkHVJWOHXaHR3hZSUNZRYpuxRIPzlEvnop7 UWPk4Az1Rum0nDEwgZUIdGQcrZolxgqsYien/ix+BATQruZgRxeD5vIEHiT9qC+3n+e5 4C5jrGaye3v8VXUR0T3qan2LCcHTweoWqWyugKKSEqvNK1H9n629jHKwMPIFkp+dqRUk 0mj9gpdGbMEA6y3Aq6T4Y/FowKmorZkzwlJxvDCOO/eUC9QAF3g/ARUJQvRvplkDvH1B MfwT3rGJXqS/D7yISx1907bhb7pNFEtDvdn5h7myvBMQYdfkcjuHZ/pKvs5cOqaa/fKt OEzA== 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=CVl/F2CxkecOWWwDVuH9LBFeQ8BBqxZlqYZ8ucY2JrA=; b=KDriHk8f+1GsnHlv0miM7a6tRevMqpTOVRhWi7a3070qWB+oZFxNJMg1++fl34fgKJ REDwG5zXgERJ+Ge00KH3ZbVHJAKxI9nfbdMWcZT+azNoZb85uWi7+UcSx/+1cAGHs5Kh WHml92ZrWID0Mmvs8fFMEL0QbX6K/1HQi0U7kzUMi2fCd2c27W8Qn0YUgO779MqbtQOL F36wfp2JAu+b9mo06Ln0MJlpjcYcwZWExJIgSSgzUfx/5gIOLXUmkfH6XY42lJ1AGAWS Jup0dLpLEGE6+Q39i5tKi/ZYN31uwW7e9PhdCG8SWHuFgAMfAKJ7sSaj4lHsLCmSXR2R y/Tw== X-Gm-Message-State: AIVw113UtQ+RbxC/Nw/ifhs6VxElJe+VEcLkt/w2T1mB5QUhRpqFsvVa A/ipJrAtclFzyp1J X-Received: by 10.223.134.76 with SMTP id 12mr18547360wrw.50.1500901206359; Mon, 24 Jul 2017 06:00:06 -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 70sm12712080wrm.62.2017.07.24.06.00.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 06:00:05 -0700 (PDT) From: Gary Bisson To: devicetree@vger.kernel.org Subject: [PATCH v2 2/2] ARM: dts: imx6qdl-nitrogen6x: fix USB PHY reset Date: Mon, 24 Jul 2017 14:59:58 +0200 Message-Id: <20170724125958.11939-3-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170724125958.11939-1-gary.bisson@boundarydevices.com> References: <20170724085005.22101-1-gary.bisson@boundarydevices.com> <20170724125958.11939-1-gary.bisson@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170724_060029_604437_3B089321 X-CRM114-Status: UNSURE ( 9.69 ) 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 Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi index f22e5879340b..d309a4d0eb08 100644 --- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi +++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi @@ -108,6 +108,18 @@ startup-delay-us = <70000>; enable-active-high; }; + + reg_usb_h1_vbus: regulator@5 { + compatible = "regulator-fixed"; + reg = <5>; + 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; + }; }; gpio-keys { @@ -515,6 +527,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 @@ -629,6 +647,7 @@ }; &usbh1 { + vbus-supply = <®_usb_h1_vbus>; status = "okay"; };