Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp913140imm; Thu, 4 Oct 2018 05:31:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV60p58/Fc5CjIailComxqzwhziFhRftpbak10x5xCL6L4BcJ9qQTELlNraYIeKJhYwz5epDu X-Received: by 2002:a62:5044:: with SMTP id e65-v6mr6485820pfb.157.1538656285679; Thu, 04 Oct 2018 05:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538656285; cv=none; d=google.com; s=arc-20160816; b=WHLFIuXTKkJp+60TK13iXgV5U2DuRQo0onuoB7Gg0lK07sTtileaZ0Gl68BZr8xtgy xLl5b303GYLyI20Wo5PSIVvzc0obaRcVc4crpOICtKO0zlU42t89vq27FuXV5IpQ5kD1 YGwj6n3qfOioadQtuoJciT1lauvg6cmSPvxaqkJvFGDa/pc7JqLcJT0QShArgkDEBj30 YApp26s3tek9VlNCU3liwl8HlpUZ/yzpoIvXOnnvgba9w8uQhgbr+wGQGESkd5itsJdl AlhGkaypkReFEA+1FmUS30d2UDiqJGfgooOSp6Z7IUAsJoYUcwkCxmOi2GBv5wsLWYwA QE8Q== 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; bh=oYbEKjdFPsK683vr3/lx63XMGpQcFjNMnVvSlSwC26s=; b=iqzA3wBgduxWVoQs4Mfj+0iJ75eTc5jihn3FNpRn42P6yMR70JO4ZGFadIWm9oQOyM VxDoHGtWj8HynY5Si9qhelEdIQK7bX01IQdbW/nIBfqC+B1xnNZg6zQu3tXBf/Nh/gHZ 0ZTl4eX+kdiPDfj3UbJ1DUVzQHvEP0wLz5IxTCoY6Tv7pi13Lu3BXlw1S1fIzVaDHGeA OmVNsWievC4jLYkGkCb8MSnOcdtd6PTp6h5ZeblO0diApHdWRlUIaq8vlOdmax22rc5o wuoCQXik7oVdJJa4op8ono9Ym7PNjVKp63Onx56xnH7SvRUOcM0GufJoXyo7b8x6heC1 d5ww== 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 y6-v6si4938532pfb.161.2018.10.04.05.31.09; Thu, 04 Oct 2018 05:31:25 -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 S1727804AbeJDTXj (ORCPT + 99 others); Thu, 4 Oct 2018 15:23:39 -0400 Received: from hermes.aosc.io ([199.195.250.187]:44012 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727483AbeJDTXj (ORCPT ); Thu, 4 Oct 2018 15:23:39 -0400 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng 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> 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 --- 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 { -- 2.18.0