From patchwork Mon May 7 15:18:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10384379 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 4E2BE60318 for ; Mon, 7 May 2018 15:27:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43C46286F8 for ; Mon, 7 May 2018 15:27:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35AA2286FB; Mon, 7 May 2018 15:27:56 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 C8BE9286F8 for ; Mon, 7 May 2018 15:27:55 +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=34yvfGui1wgkNoC0ZETBo/JyLJ7ltTgRSSKjsGJlX7E=; b=V+JeGzGNL+ufItoDF37kacnvCj AIXF8yoZUFzWSTOD32Vty4iJkag+lBHPVH5XvXjPUE6gO1m1f4h0sAt9AH0BrYCrlWLZc2svBzgM6 6uT9ULdIg8DBtVz8TVGTQcuMAbDycz1qbjhM+dNWzTor9TeYq0j/5a0J/GpfHvbalQ0yjgT1Ea6xI qDM+E0ecFwGMxyPPz5EmQxnAwas2Xp00+KBjg9+ERbwJqRqOOnh7OPx77JxQ+hVNTOOZOCDlvuHAq sQcaMAFicx6p00/ngnrNOsz69HhRL04L7n/OizdhJ41/LHKLAMrT58IM6c2T8U9YuNSex5F3fHf07 JpFjKV5w==; 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 1fFi3K-00072l-DB; Mon, 07 May 2018 15:27:50 +0000 Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFi3H-000723-6W for linux-arm-kernel@lists.infradead.org; Mon, 07 May 2018 15:27:48 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7CA6741D5E; Mon, 7 May 2018 15:27:36 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.12.37]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id 6294C41C0A; Mon, 7 May 2018 15:27:35 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [100.96.12.1]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.14.1); Mon, 07 May 2018 15:27:36 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Cooing-Absorbed: 5e4884df5366fd8b_1525706856313_4061320212 X-MC-Loop-Signature: 1525706856313:656690801 X-MC-Ingress-Time: 1525706856313 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id A70534FF4D; Mon, 7 May 2018 15:27:06 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Greg Kroah-Hartman , Kishon Vijay Abraham I , Felipe Balbi Subject: [PATCH 5/5] arm64: allwinner: h6: enable USB3 port on Pine H64 Date: Mon, 7 May 2018 23:18:17 +0800 Message-Id: <20180507151817.55663-6-icenowy@aosc.io> In-Reply-To: <20180507151817.55663-1-icenowy@aosc.io> References: <20180507151817.55663-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180507_082747_409701_B7A1E0C4 X-CRM114-Status: GOOD ( 16.25 ) 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: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 Pine H64 board have a USB3 port, which is connected to the USB3 pins of the H6 SoC, and the 5V power supply is controlled via GPIO (shared with the power USB ports). Enable this port. Signed-off-by: Icenowy Zheng --- .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts index b6f2d6b2ecae..e2e262b4e3d8 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts @@ -20,6 +20,20 @@ chosen { stdout-path = "serial0:115200n8"; }; + + reg_usb_vbus: vbus { + compatible = "regulator-fixed"; + regulator-name = "usb-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + startup-delay-us = <100000>; + gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&dwc3 { + status = "okay"; }; &r_i2c { @@ -37,3 +51,12 @@ pinctrl-0 = <&uart0_ph_pins>; status = "okay"; }; + +&usb3 { + status = "okay"; +}; + +&usb3phy { + phy-supply = <®_usb_vbus>; + status = "okay"; +};