All of lore.kernel.org
 help / color / mirror / Atom feed
From: Meng Dongyang <daniel.meng@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 8/8] rockchip: dts: rk3399: control vbus of typec by fixed regulator
Date: Wed, 21 Jun 2017 11:58:27 +0800	[thread overview]
Message-ID: <1498017507-12184-9-git-send-email-daniel.meng@rock-chips.com> (raw)
In-Reply-To: <1498017507-12184-1-git-send-email-daniel.meng@rock-chips.com>

Add fixed regulator for the port of typec0 and typec1 to control vbus
instead of gpio.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None

 arch/arm/dts/rk3399-evb.dts | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts
index f5af75b..bff00c3 100644
--- a/arch/arm/dts/rk3399-evb.dts
+++ b/arch/arm/dts/rk3399-evb.dts
@@ -60,6 +60,18 @@
 		gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
 	};
 
+	vcc5v0_typec0: vcc5v0-typec0-en {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc5v0_typec0";
+		gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+	};
+
+	vcc5v0_typec1: vcc5v0-typec1-en {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc5v0_typec1";
+		gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
+	};
+
 	clkin_gmac: external-gmac-clock {
 		compatible = "fixed-clock";
 		clock-frequency = <125000000>;
@@ -163,7 +175,7 @@
 };
 
 &dwc3_typec0 {
-	rockchip,vbus-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+	vbus-supply = <&vcc5v0_typec0>;
 	status = "okay";
 };
 
@@ -176,7 +188,7 @@
 };
 
 &dwc3_typec1 {
-	rockchip,vbus-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
+	vbus-supply = <&vcc5v0_typec1>;
 	status = "okay";
 };
 
-- 
1.9.1

      parent reply	other threads:[~2017-06-21  3:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21  3:58 [U-Boot] [PATCH v6 0/8] rk3328: add support of usb host and gadget Meng Dongyang
2017-06-21  3:58 ` [U-Boot] [PATCH v6 1/8] usb: Kconfig: add depends on features for xhci-rockchip driver Meng Dongyang
2017-06-21  3:58 ` [U-Boot] [PATCH v6 2/8] usb: host: xhci-rockchip: use fixed regulator to control vbus Meng Dongyang
2017-06-21  3:58 ` [U-Boot] [PATCH v6 3/8] rockchip: dts: rk3328: add fix-regulator node for xhci Meng Dongyang
2017-06-21  3:58 ` [U-Boot] [PATCH v6 4/8] rockchip: configs: rk3328: enable dwc2 driver and config fastboot Meng Dongyang
2017-06-21  3:58 ` [U-Boot] [PATCH v6 5/8] usb: dwc2: use dev_read_bool() instead of fdt_getprop() Meng Dongyang
2017-06-22 17:29   ` Heiko Stuebner
2017-06-23  3:55     ` rock-chips
2017-06-21  3:58 ` [U-Boot] [PATCH v6 6/8] rockchip: rk3328: board: add support of dwc2 gadget Meng Dongyang
2017-06-21  3:58 ` [U-Boot] [PATCH v6 7/8] rockchip: dts: rk3328: support and enable dwc2 Meng Dongyang
2017-06-21  3:58 ` Meng Dongyang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1498017507-12184-9-git-send-email-daniel.meng@rock-chips.com \
    --to=daniel.meng@rock-chips.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.