From: Vicente Bergas <vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
Enric Balletbo i Serra
<enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>,
William wu <wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org>,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: Vicente Bergas <vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [PATCH v2] arm64: dts: rockchip: Fix Type-C port supply in Sapphire board
Date: Mon, 10 Sep 2018 18:10:29 +0200 [thread overview]
Message-ID: <20180910161029.1948-1-vicencb@gmail.com> (raw)
In-Reply-To: <3744467.8gaGBgj8zp@phil>
The reference is the schematic, page 11:
https://dl.vamrs.com/products/sapphire_excavator/RK_SAPPHIRE_SOCBOARD_RK3399_LPDDR3D178P232SD8_V12_20161109HXS.pdf
(alternate link)
http://opensource.rock-chips.com/images/f/f0/RK_Sapphire_RK3399.rar
Changes in v2:
The power supply is applied to the OTG port.
Signed-off-by: Vicente Bergas <vicencb@gmail.com>
---
arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Hi Heiko,
your approach makes sense, i just tried it and the Type-C port is
still powered-on, like with the previous patch.
But sadly still no data flow.
I have got a gru/kevin and also bought a USB-C to SATA bridge
for it. The bridge works fine on kevin with kernel 4.4, still not
tested with mainline.
But when plugged into the Sapphire there is an LED that shows it
is powered-on and nothing else. On the linux side, dmesg shows no
messages.
Comparing the USB portion of the DTS wrt Firefly i see no
significant differences.
Are there other Sapphire board users that can confirm if the
Type-C port works or not? That would help to discard a HW issue.
Regards,
Vicenç.
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
index 941b62709..e1b590ca2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
@@ -140,6 +140,16 @@
vin-supply = <&vcc_sys>;
};
+ vcc5v0_typec0: vcc5v0-typec0-regulator {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio2 RK_PA0 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&vcc5v0_typec0_en>;
+ regulator-name = "vcc5v0_typec0";
+ vin-supply = <&vcc_sys>;
+ };
+
vcc_sys: vcc-sys {
compatible = "regulator-fixed";
regulator-name = "vcc_sys";
@@ -508,6 +518,10 @@
rockchip,pins =
<4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
};
+ vcc5v0_typec0_en: vcc5v0-typec0-en {
+ rockchip,pins =
+ <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
};
};
@@ -565,6 +579,7 @@
status = "okay";
u2phy0_otg: otg-port {
+ phy-supply = <&vcc5v0_typec0>;
status = "okay";
};
--
2.18.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2018-09-10 16:10 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-21 21:58 USB3 regression in RK3399 Vicente Bergas
[not found] ` <CAAMcf8B5zpgbTsCu9t0rs9+jWkwRdO2C+KbF+NOt3ZTQx36aZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-21 22:17 ` Heiko Stuebner
2018-02-21 23:04 ` Vicente Bergas
[not found] ` <CAAMcf8B5ffH-5Q3+PcjWwu5UeDk4ESZR0BNczaED+vnPLwge0w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-22 9:10 ` Enric Balletbo i Serra
[not found] ` <c8e1bd5a-19ff-9d1c-7e78-b7e605fd1e6b-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-02-22 20:30 ` Vicente Bergas
[not found] ` <CAAMcf8C7Px_mC=dex3TqejBNYYUyJxrZHa1c7CbKXj6g==Cbyg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-25 10:03 ` Vicente Bergas
[not found] ` <CAAMcf8DX4Mjuubnvwz9paMJ9oDYaNX-EKwFpsP9a-RfhHgO5Hg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-26 12:26 ` Enric Balletbo i Serra
2018-02-26 16:34 ` Enric Balletbo i Serra
[not found] ` <9e64e878-07c8-912c-c597-7da7b3f96dd6-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-02-26 18:38 ` Vicente Bergas
2018-09-08 19:00 ` [PATCH 0/4] arm64: dts: Sapphire board: miscelaneous fixes Vicente Bergas
[not found] ` <20180908190048.14231-1-vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-08 19:00 ` [PATCH 1/4] arm64: dts: Sapphire board: re-order vcc_sys Vicente Bergas
[not found] ` <20180908190048.14231-2-vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-10 12:15 ` Heiko Stuebner
2018-09-08 19:00 ` [PATCH 2/4] arm64: dts: Sapphire board: Fix VCC5V0_HOST_EN Vicente Bergas
[not found] ` <20180908190048.14231-3-vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-10 12:16 ` Heiko Stuebner
2018-09-08 19:00 ` [PATCH 3/4] arm64: dts: Sapphire board has DVS2 disabled Vicente Bergas
[not found] ` <20180908190048.14231-4-vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-10 12:17 ` Heiko Stuebner
2018-09-08 19:00 ` [PATCH 4/4] arm64: dts: Sapphire board: Fix Type-C port supply Vicente Bergas
[not found] ` <20180908190048.14231-5-vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-10 12:23 ` Heiko Stuebner
2018-09-10 13:39 ` Vicente Bergas
[not found] ` <CAAMcf8Dr6Kfgx6aqy0vk9TBjW1=0sDp=zJAetjAt5AhPVwHDdA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-10 14:10 ` Heiko Stuebner
2018-09-10 16:10 ` Vicente Bergas [this message]
[not found] ` <20180910161029.1948-1-vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-09-10 17:19 ` [PATCH v2] arm64: dts: rockchip: Fix Type-C port supply in Sapphire board Heiko Stuebner
2019-05-18 12:29 ` Vicente Bergas
[not found] ` <574f2bae-0121-4cc7-ad9a-5ba32315d71b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-05-22 15:07 ` [PATCH] arm64: rockchip: dts: sapphire: Fix USB3 Type-C Vicente Bergas
[not found] ` <20190522150717.1748-1-vicencb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-06-14 9:47 ` Heiko Stuebner
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=20180910161029.1948-1-vicencb@gmail.com \
--to=vicencb-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
--cc=heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
/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.