* [PATCH 2/6] dt-bindings: phy-rockchip-typec: move extcon property to be optional.
2018-03-01 9:24 [PATCH 0/6] phy: rockchip-typec: fix boards that does not report cable-state Enric Balletbo i Serra
@ 2018-03-01 9:24 ` Enric Balletbo i Serra
[not found] ` <20180301092420.1191-3-enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2018-03-01 9:24 ` [PATCH 3/6] arm64: dts: rockchip: enable typec-phy for rk3399-sapphire Enric Balletbo i Serra
` (3 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-03-01 9:24 UTC (permalink / raw)
To: kishon, heiko
Cc: groeck, gwendal, kernel, vicencb, devicetree, linux-kernel,
linux-rockchip, Rob Herring, Mark Rutland, linux-arm-kernel
The extcon property is used to detect the cable-state but some boards,
like Sapphire, currently does not seem to support, others might just not
need, as are supposed to work in host-mode only. So, extcon property is
not really a required property, move to be optional instead.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt
index 6ea867e3176f..a66f23a01129 100644
--- a/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt
+++ b/Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt
@@ -14,6 +14,8 @@ Required properties:
- resets : a list of phandle + reset specifier pairs
- reset-names : string reset name, must be:
"uphy", "uphy-pipe", "uphy-tcphy"
+
+Optional properties:
- extcon : extcon specifier for the Power Delivery
Note, there are 2 type-c phys for RK3399, and they are almost identical, except
--
2.16.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 3/6] arm64: dts: rockchip: enable typec-phy for rk3399-sapphire.
2018-03-01 9:24 [PATCH 0/6] phy: rockchip-typec: fix boards that does not report cable-state Enric Balletbo i Serra
2018-03-01 9:24 ` [PATCH 2/6] dt-bindings: phy-rockchip-typec: move extcon property to be optional Enric Balletbo i Serra
@ 2018-03-01 9:24 ` Enric Balletbo i Serra
2018-03-01 9:24 ` [PATCH 4/6] arm64: dts: rockchip: enable typec-phy for rk3399-firefly Enric Balletbo i Serra
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-03-01 9:24 UTC (permalink / raw)
To: kishon, heiko
Cc: Mark Rutland, devicetree, gwendal, Rob Herring, Catalin Marinas,
Shawn Lin, Will Deacon, Kever Yang, vicencb, linux-kernel,
linux-rockchip, Jacob Chen, groeck, kernel, Jianqun Xu,
linux-arm-kernel
Commit c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port
support for rk3399") caused a regression regarding the USB3 type-A port.
During boot, the following message appears a few times:
dwc3: failed to initialize core
The driver is deferred waiting for the typec-phy, but this never happens
bceause is disabled. So, enable it.
Fixes: c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port support for rk3399")
Reported-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
index ce592a4c0c4c..9c685eab4748 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
@@ -557,6 +557,14 @@
status = "okay";
};
+&tcphy0 {
+ status = "okay";
+};
+
+&tcphy1 {
+ status = "okay";
+};
+
&u2phy0 {
status = "okay";
--
2.16.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 4/6] arm64: dts: rockchip: enable typec-phy for rk3399-firefly.
2018-03-01 9:24 [PATCH 0/6] phy: rockchip-typec: fix boards that does not report cable-state Enric Balletbo i Serra
2018-03-01 9:24 ` [PATCH 2/6] dt-bindings: phy-rockchip-typec: move extcon property to be optional Enric Balletbo i Serra
2018-03-01 9:24 ` [PATCH 3/6] arm64: dts: rockchip: enable typec-phy for rk3399-sapphire Enric Balletbo i Serra
@ 2018-03-01 9:24 ` Enric Balletbo i Serra
2018-03-01 9:24 ` [PATCH 5/6] arm64: dts: rockchip: enable typec-phy1 for rk3399-puma Enric Balletbo i Serra
2018-03-01 9:24 ` [PATCH 6/6] arm64: dts: rockchip: enable typec-phy0 for rk3399-puma-haikou Enric Balletbo i Serra
4 siblings, 0 replies; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-03-01 9:24 UTC (permalink / raw)
To: kishon, heiko
Cc: groeck, gwendal, kernel, vicencb, devicetree,
Pierre-Hugues Husson, Jianqun Xu, Kever Yang, linux-kernel,
Heinrich Schuchardt, linux-rockchip, Shawn Lin, Rob Herring,
Will Deacon, Mark Rutland, Catalin Marinas, linux-arm-kernel
Commit c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port
support for rk3399") caused a regression regarding the USB3. During boot,
the following message appears a few times:
dwc3: failed to initialize core
The driver is deferred waiting for the typec-phy, but this never happens
beause is disabled. So, enable it.
Fixes: c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port support for rk3399")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
index 4f28628aa091..0e3a9ab4a297 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
@@ -670,6 +670,14 @@
status = "okay";
};
+&tcphy0 {
+ status = "okay";
+};
+
+&tcphy1 {
+ status = "okay";
+};
+
&u2phy0 {
status = "okay";
--
2.16.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 5/6] arm64: dts: rockchip: enable typec-phy1 for rk3399-puma.
2018-03-01 9:24 [PATCH 0/6] phy: rockchip-typec: fix boards that does not report cable-state Enric Balletbo i Serra
` (2 preceding siblings ...)
2018-03-01 9:24 ` [PATCH 4/6] arm64: dts: rockchip: enable typec-phy for rk3399-firefly Enric Balletbo i Serra
@ 2018-03-01 9:24 ` Enric Balletbo i Serra
2018-03-01 9:24 ` [PATCH 6/6] arm64: dts: rockchip: enable typec-phy0 for rk3399-puma-haikou Enric Balletbo i Serra
4 siblings, 0 replies; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-03-01 9:24 UTC (permalink / raw)
To: kishon, heiko
Cc: groeck, gwendal, kernel, vicencb, devicetree, Jianqun Xu,
Jacob Chen, Klaus Goger, linux-kernel, linux-rockchip, Shawn Lin,
Rob Herring, Will Deacon, Mark Rutland, Catalin Marinas,
linux-arm-kernel
Commit c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port
support for rk3399") caused a regression regarding the USB3. During boot,
the following message appears a few times:
dwc3: failed to initialize core
The driver is deferred waiting for the typec-phy, but this never happens
beause is disabled. So, enable it.
Fixes: c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port support for rk3399")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
index 1fc5060d7027..3a3b24383482 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
@@ -505,6 +505,10 @@
};
};
+&tcphy1 {
+ status = "okay";
+};
+
&u2phy1 {
status = "okay";
--
2.16.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 6/6] arm64: dts: rockchip: enable typec-phy0 for rk3399-puma-haikou.
2018-03-01 9:24 [PATCH 0/6] phy: rockchip-typec: fix boards that does not report cable-state Enric Balletbo i Serra
` (3 preceding siblings ...)
2018-03-01 9:24 ` [PATCH 5/6] arm64: dts: rockchip: enable typec-phy1 for rk3399-puma Enric Balletbo i Serra
@ 2018-03-01 9:24 ` Enric Balletbo i Serra
4 siblings, 0 replies; 7+ messages in thread
From: Enric Balletbo i Serra @ 2018-03-01 9:24 UTC (permalink / raw)
To: kishon, heiko
Cc: groeck, gwendal, kernel, vicencb, devicetree, Corentin Labbe,
Andre Przywara, Klaus Goger, linux-kernel, Maxime Ripard,
linux-rockchip, Rob Herring, Icenowy Zheng, Will Deacon,
Rask Ingemann Lambertsen, Catalin Marinas, Chen-Yu Tsai,
Mark Rutland, linux-arm-kernel
Commit c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port
support for rk3399") caused a regression regarding the USB3. During
boot, the following message appears a few times:
dwc3: failed to initialize core
The driver is deferred waiting for the typec-phy, but this never
happens beause is disabled. So, enable it.
Fixes: c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port support for rk3399")
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts
index 9a7486058455..2c9c696d1383 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts
@@ -191,6 +191,10 @@
status = "okay";
};
+&tcphy0 {
+ status = "okay";
+};
+
&u2phy0 {
status = "okay";
};
--
2.16.1
^ permalink raw reply related [flat|nested] 7+ messages in thread