From patchwork Mon Jul 24 12:59:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 9859339 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 96CE960349 for ; Mon, 24 Jul 2017 13:00:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87E26284B2 for ; Mon, 24 Jul 2017 13:00:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A9CF283E7; Mon, 24 Jul 2017 13:00:36 +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 1BEA5283DA for ; Mon, 24 Jul 2017 13:00:35 +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=iQNh3ckFaMV7AHjZSClBp9KJimwDfpf88DCBuASCYT4=; b=MQz2P7gAaNRDzh4EIQHq5YSNJa 8IQARH7Aae04WyJrkw8KA3al7XeHsMlMUDZw+amULoLMk1v8r15NQ+pKxCBUgWTpex9/glGcWHSSp mjl+Oo4MNTu0xiE6RoovHhXwqaX/nKIsg3Cou3QAVSCUVRTW1AC0NMf4Y37/DFy04GmrugXBSkGhC 3Ziziym26siX6c0q0Q+0Shcm8sRAjHfQVwcA+rDhu3MsOsNonbhX/bXJhNrr6c4TQlJT3bozUHCWl lSAx5ubTagL2Oj70+sY3cIWrKQeVgokBOLQWqbPlBheCO+zcjSsyL2ATkqjAf51vvmBIJS1AK4gsE kq+/vfoQ==; 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 1dZcyN-0002dz-Kf; Mon, 24 Jul 2017 13:00:31 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dZcyK-0001vf-9i for linux-arm-kernel@lists.infradead.org; Mon, 24 Jul 2017 13:00:30 +0000 Received: by mail-wm0-x22d.google.com with SMTP id c184so24689179wmd.0 for ; Mon, 24 Jul 2017 06:00:06 -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=lK79+JoXL0nFZByOtXF3TJ3UNu2X9/Gu2EljCp29VFU=; b=TmyWOPHZIQTTFhnBungmtaaE8j1jlKZVM9stl6MRiMjoqcIncDWJNB9vClKNAwSjAt X2i2rsUBZREBDYw3nA00LxSttVpuSQNcQXpazWHxe1hgYumcbmK9d66gx92cexx1T2qi dvuVNIS9OoSWim5OBEp3HX0qOZvziU4bUCCZjg2rWnFQeNBGUx8ByUX1ycxKl11W0Kha MWrLZ68rF/BeXl04rBlNhIGbHYZh5swySC/BVFn/Cs7OE3O2kJFnzSERsgm3q1yi3A+K WM5PS0kQdELO+vf+JR728cZnuVeEMNYceQVLoGqzH13tpgKbK/uYssIBGMQrBTtN8jSb da6A== 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=lK79+JoXL0nFZByOtXF3TJ3UNu2X9/Gu2EljCp29VFU=; b=UExG2CdD8U/I6pJhPHqJWGiAl2JAB3roBc4HbsazTje/f1g7vSIN8DHBDymjM3IXAQ 5TO0XPeIb9fU1PpsW8Q5g8ulJYTInbUouqIkAkD76fX7tQaSQrJPKDchNUrF7qejhVGJ /TLZa5WwRVehdFWee1wTRJBT51cpsCCEvq4e926CkElCxcgHPLpz8zBDIJx82EiDyC8a E1kSMXke5vIqQHfAUsjxhUmKpH6zvECvo1BCWg6NQ94nQIPK7V6Z50XK/Z9FmdrvM7ST Sra8weKT8/mVqP+ar8B5Ke8ATTXBEE77/pjE5LXdhp2+UMeWxKWwwWyORWtkqvIFusa7 ikcw== X-Gm-Message-State: AIVw113XV6ZdQLWbwI2tOmjTRpFYbCF8YinKz1dNJxQgNQ3pq2Y0qpRs HuodxWryWfdkfv/L X-Received: by 10.28.230.17 with SMTP id d17mr5001366wmh.17.1500901205113; Mon, 24 Jul 2017 06:00:05 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 06:00:04 -0700 (PDT) From: Gary Bisson To: devicetree@vger.kernel.org Subject: [PATCH v2 1/2] ARM: dts: imx6qdl-sabrelite: fix USB PHY reset Date: Mon, 24 Jul 2017 14:59:57 +0200 Message-Id: <20170724125958.11939-2-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_060028_497536_70BF2042 X-CRM114-Status: UNSURE ( 9.81 ) 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-sabrelite.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi index afe7449c47da..756c5054f047 100644 --- a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi @@ -123,6 +123,18 @@ 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; + }; }; mipi_xclk: mipi_xclk { @@ -610,6 +622,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 +723,7 @@ }; &usbh1 { + vbus-supply = <®_usb_h1_vbus>; status = "okay"; };