From patchwork Thu Oct 4 12:28:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 10626103 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 EACC91515 for ; Thu, 4 Oct 2018 12:47:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4A1B28FF2 for ; Thu, 4 Oct 2018 12:47:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9805A28FF5; Thu, 4 Oct 2018 12:47:22 +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,RCVD_IN_DNSWL_NONE 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 88DC428FF4 for ; Thu, 4 Oct 2018 12:47:19 +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=DOtWxi6K89YoHG5PrmjIkJrrZaYCBunssvlHxHIf3lw=; b=IRrfU0sY04UUH7rPUdqAoZzLUY rpJnn0Z1bqpHOOiGY/HI0orZ2nscNY+Ec3PeanSs/lkewnE83fhPehdMsy5Ft2dvNurpUYFURGMv4 RwlyXNHPjjMpndK+8ngLONqbdYoSol5SyzzGNF5YIpG7OIqxr9IA2EQ0yEUdomgKVOwjnPvdNqaEV I67jXm7pTSd02xgl6kN5tOE0Lz7CAFUTDdHWGxaP0d8Lp0/IHEip8P0BScf2GzKPhGhWc1sM2Huok a4OBtV8nrbORrNyi6i786o08cGscyCKj5sKgrnJXbhzdBVAOvY0YfM/JyHdZ0exOy+7uEQGW8ixw2 vcESZlHA==; 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 1g831v-0002fm-UH; Thu, 04 Oct 2018 12:47:00 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g831A-0002EE-PU for linux-arm-kernel@bombadil.infradead.org; Thu, 04 Oct 2018 12:46:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oYbEKjdFPsK683vr3/lx63XMGpQcFjNMnVvSlSwC26s=; b=aVwQVHJSaPs0DMC6nlk/xa3oY ddAIYDdS8uAG9KJXFgvPvidwsDQlH5b+ROivMz4klAKGLZV5zS7FQfUNRUxJMgLdyMKKixWfmGonw 2A4iokmcIl0+I0iJxYYuAIukVM9iFU5wa8KFZF3WDQJqZTyGmeHiuGuBK3EIiLEb7AmLj90H18sjF wdcXa2zPI7a7VoUXmMoPR9o7eTB3VOp0uhXhi4kX3W5k8uC4QL2qpfOFLcQCn2sYXNR0iTdQnkOiH q2kdJWx3FPTJb+az799CrcKJhjp6ktET7jgZqe+RBjT1UpV67+4MgaWVtHeRZ85XCZt70lr4bb7xk gLglzREMw==; Received: from bird.maple.relay.mailchannels.net ([23.83.214.17]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g82mH-0005lD-9C for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 12:30:51 +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 BEF31122A44; Thu, 4 Oct 2018 12:30:36 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.36.160]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id F0548121851; Thu, 4 Oct 2018 12:30:35 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [199.195.250.187]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Thu, 04 Oct 2018 12:30:36 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Attack-Tangy: 4b69f36b663558b2_1538656236578_3300759268 X-MC-Loop-Signature: 1538656236578:458695745 X-MC-Ingress-Time: 1538656236577 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id C769766839; Thu, 4 Oct 2018 12:30:31 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Kishon Vijay Abraham I Subject: [PATCH v4 05/10] arm64: allwinner: dts: h6: add USB Vbus regulator Date: Thu, 4 Oct 2018 20:28:50 +0800 Message-Id: <20181004122855.22981-6-icenowy@aosc.io> In-Reply-To: <20181004122855.22981-1-icenowy@aosc.io> References: <20181004122855.22981-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_133049_794014_A1FE4744 X-CRM114-Status: GOOD ( 14.23 ) 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-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, 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 The 5V output of the USB ports on Pine H64 is controlled via a GPIO. Add the USB Vbus regulator device tree node. Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Yu Tsai --- No changes in v4. Changes in v3: - Added Chen-Yu's Review tag. arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 10 ++++++++++ 1 file changed, 10 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 48daec7f78ba..b181088d7500 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts @@ -39,6 +39,16 @@ gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */ }; }; + + 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; + }; }; &mmc0 {