From patchwork Wed Jan 23 15:12:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10777361 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BF5C113B4 for ; Wed, 23 Jan 2019 15:13:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8D642CE4E for ; Wed, 23 Jan 2019 15:13:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CF3F2CE53; Wed, 23 Jan 2019 15:13:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 392C02CE42 for ; Wed, 23 Jan 2019 15:13:08 +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: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=yuf8+RNB3jOXw3hro4/lvaJC6jIBR+H2qwYZysAqWC4=; b=TRtU7LTSIVXY2r f7VM0WwSr/xwljkN9V3H1QSrhAPGPC5EBk+1R8odQYMQKHaaL37P9hFAm+3MgGxrmEW/Cyd6dMnzu iGaZ7Z/ZS6VnQO1ceJgW4tB5N9oAZpI0sR3y0XdfzNEoF2vdHkUbLsPZ6PpTXBw/1aOamQ/nxSq/z QkoJ/FW2zmZ0wGcPUb/ZWZ2Z6Dn+YEf6byiGBZPmw+TFuXKHWOxQrUoIYgLOocx0kqdedHHVRiAPM qxjdnhEId5r0I3g9eo9a4eHleF7/fD8tAohlxNwecxgD37DZt/S2gLVXY47jiDuI1schQoL/bsSXD D7BiIeFhihPGSMvqszIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmKDD-0004BS-Fs; Wed, 23 Jan 2019 15:13:07 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmKCq-0003ss-Oq; Wed, 23 Jan 2019 15:12:52 +0000 Received: by mail-pl1-x641.google.com with SMTP id g9so1326030plo.3; Wed, 23 Jan 2019 07:12: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=pfLooB/O2lngy8XNJ7ymPuTZs17F4K8WiubH/3VL7po=; b=U/tk8Ju764NMOYteaqMOFJvaQFTLli7pnMauiw+GFwORrMtDA/dg9zEx4i0zLdR6Sb o6O0YPX+pW3XGGi1ts6l+zGX63JLk1Mg2qvBsuzxByw+NRojdf2fUgZPDo86GXAuru05 IEjP8ids0Mpn6zactF/SyiDnt64nX1ZtHzI8g4Mj0F3fdBSBhlwoUGm2m+YNXhjppmf/ 9+V+Vw8P6+NXFuTwCRVl8XeMGU3rVH0uYCDfGY8t1yIXxufdkJaVyMvDQyJRia8wezOu NnDxPLkojBScp0ERfQ2kH493YZNUU6TjDsAd1D2MZynWoASUjqMYsujPiM1fbsjSA8h8 zYcQ== 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=pfLooB/O2lngy8XNJ7ymPuTZs17F4K8WiubH/3VL7po=; b=ZRpD0hJnAj8tGBsORMD0Hri88g/MrJAdpAvPfQYaSS0av6kKDBZnWbg9wP2PEztfh9 jDW5atwmN6eFgfwVnbet+5EqwaPM+r1jQNFzC0WeV9Fq7MR4pwiDwstVLM3hpqe01OnV UdbI0098Bb1tg5f1UaLfY3J5AAqSBaXfRu8MRAteznwILCKJxVxob8NEC2d9QxUouR+P leMqfovTSi1BTi7n9gWlnaUl3zuJikrzkPcz5So4HgQy+1/FoyNVYmUWgYPiFQ2vRIgE nMLej8nLaP8WHT/RQdRyqAMMu7T3Q5O0G+YaX1thrJYSnlOnxI62TL1N0kG79IuHVbW0 TcFQ== X-Gm-Message-State: AJcUukfVIGHY26j9iaCtIZh/IeNKkmkkLhEVU8/aw5JFSgDCbAndahq2 9MCiYKUna4dsn5cGZIAoU3pugMRh X-Google-Smtp-Source: ALg8bN5bU+iHdNinzeAQuQUW5nOYLv8kZqVuIB34AyJdAS/Tv08UM08whGcuUq6Rzvj2cFEWWDbvSQ== X-Received: by 2002:a17:902:2dc3:: with SMTP id p61mr2521996plb.166.1548256363733; Wed, 23 Jan 2019 07:12:43 -0800 (PST) Received: from localhost.localdomain ([103.51.74.133]) by smtp.gmail.com with ESMTPSA id v9sm24772468pfe.49.2019.01.23.07.12.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 07:12:43 -0800 (PST) From: Anand Moon To: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Subject: [RFCv1 2/3] ARM: dts: meson8b: odroidc1: fix USB power supplies for phy Date: Wed, 23 Jan 2019 15:12:08 +0000 Message-Id: <20190123151209.2080-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190123151209.2080-1-linux.amoon@gmail.com> References: <20190123151209.2080-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190123_071245_106373_778CC828 X-CRM114-Status: GOOD ( 12.35 ) 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: Neil Armstrong , Martin Blumenstingl , Kevin Hilman , Kishon Vijay Abraham I , Rob Herring , Jerome Brunet 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 This patch enables the USB Host controller (USB0) and the relative USB0 PHY. From the shematics GPIOAO.BIT5 gpio input for the PWREN signal of the USB_OTG controller (usb0) which is also linked to USB_HOST controller (usb1). Add missing phy-supply link to both USB0 and USB1 phy controller This changes fixed the power issue on usb ports. Changes help fix usb reset warning. [ 821.991470] usb 1-1.2: reset high-speed USB device number 3 using dwc2 [ 825.243385] usb 1-1.2: reset high-speed USB device number 3 using dwc2 [ 828.151310] usb 1-1.2: reset high-speed USB device number 3 using dwc2 [ 830.991241] usb 1-1.2: reset high-speed USB device number 3 using dwc2 Fixes: 2eb79a4d15ff ("ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board") Cc: Martin Blumenstingl Cc: Jerome Brunet Cc: Neil Armstrong Cc: Kevin Hilman Signed-off-by: Anand Moon --- Changes from previous patch. Fix the subject and commit message as per Martin's request --Add the signal name in the comment --Replace vbus-supply with phy-supply linking the power supply to phy node as pointed by Marine which a PWREN signal in the USB_HOST controller (usb1) USB_VBUS 4 2 0 unknown 5000mV 0mA 5000mV 5000mV phy-c1108820.phy.1 2 0mA 0mV 0mV phy-c1108800.phy.0 2 0mA 0mV 0mV --- arch/arm/boot/dts/meson8b-odroidc1.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 58669abda259..bfa472a679d9 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -83,6 +83,22 @@ regulator-max-microvolt = <5000000>; }; + usb_vbus: regulator-usb-vbus { + compatible = "regulator-fixed"; + + regulator-name = "USB_VBUS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + vin-supply = <&p5v0>; + + /* + * signal name from schematics: PWREN + */ + gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + tflash_vdd: regulator-tflash_vdd { /* * signal name from schematics: TFLASH_VDD_EN @@ -295,8 +311,18 @@ pinctrl-names = "default"; }; +&usb0_phy { + status = "okay"; + phy-supply = <&usb_vbus>; +}; + &usb1_phy { status = "okay"; + phy-supply = <&usb_vbus>; +}; + +&usb0 { + status = "okay"; }; &usb1 {