From patchwork Tue Nov 8 10:13:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 692235 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3tClY571Ypz9vDr for ; Tue, 8 Nov 2016 21:14:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a4BSDio/"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B3528B3846; Tue, 8 Nov 2016 11:14:31 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MSG2vzbEdqLq; Tue, 8 Nov 2016 11:14:31 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6B889A7663; Tue, 8 Nov 2016 11:14:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0A487B3826 for ; Tue, 8 Nov 2016 11:14:09 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id utVlgCcrqo82 for ; Tue, 8 Nov 2016 11:14:08 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by theia.denx.de (Postfix) with ESMTPS id 576AEA75E6 for ; Tue, 8 Nov 2016 11:14:00 +0100 (CET) Received: by mail-pf0-f194.google.com with SMTP id i88so18891303pfk.2 for ; Tue, 08 Nov 2016 02:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Xy5pnuuFQWzF+XXYBjFtIfSGHZZXFmJdvltj65CQ/Dk=; b=a4BSDio/HBghO70XAhNVuurTpw6DB5c4dw/gDrb+oSdKXWot38x6plKVRGeLCo7mgD UrfGtWRlSDhDfOy5fY6l3gnmbVIIKdBDP/B9tQ5xvk9jOUBgQJAm/GwU83nZuujM09q4 8xDd9ZXrBLrLcxEvUC2wx1S8BXzlLrAjoBp6u+I8YANKV6DhCrsOsJIUVkHg9CGYAROJ nNDl2LwKGL7NxRyLg18lNjsCBNwz++9GZfQfo236r33RoazL4Dp8lOm/Krc6hFrzj9Uc a04tqqBQ/1FBUmCnFCkkqkcypmQH9OB7eyPwvV3RyV231Lci3o5abyzaUMQkDV76d4a3 dlRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Xy5pnuuFQWzF+XXYBjFtIfSGHZZXFmJdvltj65CQ/Dk=; b=BuVc34Z1KSHm2qIclKFkD/QB04C+6QZm0CdUSXdO4YlR7ebOoS9VLRybmJKkLT16hI rg7WexSMXE5Pkl0A3mSyi54spDWTkLHt8W83nUs6gWF04vCfPbr9fJAOMjxaYqmW6nbU Z9mBZs7ug7hhoCbJLQwJooi57yBCRX9AQwMTZE4Qp7Wi78FWQ1lyvHtOuD/6MnITZNtq UMAsMK3w5KeocV72zSDYA988daTHhiW2T5hZwNNKpFDbHRwoB64aP0FBwOALjgdsAtgG 9epCdDIzQ6pfpkxLW1Mczjt81zKh3AMIsq7DNBhOaKd6xBJgAWOqmjWRTcXDPP4tIAKS OOlA== X-Gm-Message-State: ABUngvfysYyZR9/hBvblajYpnWS24NJQG7GbKZepBZXFAkwB7Z+LM2ANzl+P9wHCc3uLkg== X-Received: by 10.98.22.196 with SMTP id 187mr17637744pfw.34.1478600039389; Tue, 08 Nov 2016 02:13:59 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id y73sm4371575pfa.68.2016.11.08.02.13.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Nov 2016 02:13:59 -0800 (PST) From: Kever Yang To: sjg@chromium.org Date: Tue, 8 Nov 2016 18:13:41 +0800 Message-Id: <1478600022-18822-4-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1478600022-18822-1-git-send-email-kever.yang@rock-chips.com> References: <1478600022-18822-1-git-send-email-kever.yang@rock-chips.com> Cc: Albert Aribaud , huang lin , u-boot@lists.denx.de, eddie.cai@rock-chips.com Subject: [U-Boot] [PATCH 3/4] dts: arm: rk3036: add usb vbus node X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" add fix regulator node for usb vbus power control. Signed-off-by: Kever Yang Acked-by: Simon Glass --- arch/arm/dts/rk3036-sdk.dts | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/rk3036-sdk.dts b/arch/arm/dts/rk3036-sdk.dts index 1c9ddf9..bdc7b98 100644 --- a/arch/arm/dts/rk3036-sdk.dts +++ b/arch/arm/dts/rk3036-sdk.dts @@ -16,10 +16,25 @@ stdout-path = &uart2; }; - usb_control { - compatible = "rockchip,rk3036-usb-control"; - host_drv_gpio = <&gpio2 23 GPIO_ACTIVE_LOW>; - otg_drv_gpio = <&gpio0 26 GPIO_ACTIVE_LOW>; + vcc5v0_otg: vcc5v0-otg-drv { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_otg"; + gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&otg_vbus_drv>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + + vcc5v0_host: vcc5v0-host-drv { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_host"; + gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&host_vbus_drv>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; }; }; @@ -42,3 +57,17 @@ &usb_otg { status = "okay"; }; + +&pinctrl { + usb_otg { + otg_vbus_drv: host-vbus-drv { + rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + usb_host { + host_vbus_drv: host-vbus-drv { + rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +};