Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4528151imm; Sat, 21 Jul 2018 23:01:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjuStlHdJ9ouH7gG2LvBv9zg6wuxOUQrwTc8f+9b+x5R7b554tPar0N1GqLz/zaVGS6atl X-Received: by 2002:a62:4494:: with SMTP id m20-v6mr8251007pfi.205.1532239267277; Sat, 21 Jul 2018 23:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532239267; cv=none; d=google.com; s=arc-20160816; b=TM/HMD2z8IdGq2U6J1ddnvMwaC/ChsbPUArpuJPSaS+o3GsncHeHnseld6k2Ty8hBf MxMPqQ5mqidlHCPe4AZLBobvk7LWb/YCYjqooCGxGK7tR4X9EYEMwJQYtJwc3Sjc9CiO t8ty6BTKxdvx4Ab4+mEne9+0k3A5y000x+hDSDOKXXGPepXrUD/5yapKprRa0Pippa+3 nfuiiKjx63IIVmUyzBXSYesipXwfgEuzG0kfx+cLtXPEfAaKfbzBTUMB+X1znHoHuHF/ cvLLWDRItLWD8LkqohLNIoSjK2tKMYJQHbz1636a3cnr/wsOivhyhwx/X7dh7/kNuCgP u8CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tkYtVmgNjhq36SnVZ8u1WZGajVCAATbxucxO1vkVJsU=; b=pHBGaDg0yzQrhasNenSLYdYfnHtcN/em3DGryYhuheFiqxQh077NK8v9rs1g+QVsX9 Kup6bxTNdupsRB0P5ua11LlLYIYJ6LK4Un0Ckp+Mx0Tkwac0XruoQSKwgihmrDUbMMQo 1Z8KgIe1qccsIRR7lT349iSXRThQFXflm14/IOd7Sdzs/Vjm8KY1lHsQK6NLOvA4Wdra xswpRmCYAAZAU+ossnmymkkiy5M/c10Ctu6clvKARDqy9umSZWV8GSnMzM7RuVhJLXt3 wLQrszBDeSjXO5mYl+kPdxrTxHpH9ntfEOpQoVV6+HqS91FMUhn1zVfsZF9Eb7zUtGQx PnzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y141-v6si3869147pfb.331.2018.07.21.23.00.52; Sat, 21 Jul 2018 23:01:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbeGVGzS (ORCPT + 99 others); Sun, 22 Jul 2018 02:55:18 -0400 Received: from hermes.aosc.io ([199.195.250.187]:45491 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbeGVGzS (ORCPT ); Sun, 22 Jul 2018 02:55:18 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 7DDAD9F54C; Sun, 22 Jul 2018 05:59:44 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Kishon Vijay Abraham I Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v3 4/9] arm64: allwinner: dts: h6: add USB Vbus regulator Date: Sun, 22 Jul 2018 13:57:34 +0800 Message-Id: <20180722055739.26464-5-icenowy@aosc.io> In-Reply-To: <20180722055739.26464-1-icenowy@aosc.io> References: <20180722055739.26464-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 ceffc40810ee..f21e18f8ed37 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 { -- 2.18.0