dts: rockpro64: Remove usb regulator-always-on
Subsystems (2)
PATCH v2 1/1 dts: rockpro64: Remove usb regulator-always-on
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1 -2
@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };
@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };
@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };
Signature · 1 line
2.40.1
Heiko Stübner
maintainerHi,
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };
Just to explain for me, what is supplying the "other" OTG port
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
Thanks
Heiko
Hi Heiko,
Quoted 50 lines · Heiko Stübner
Hi,
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.
Maybe Dragan has more info on this.
Kind regards,
Shantur
Quoted 53 lines · Shantur Rathore
Quoted 47 lines · Heiko Stübner
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
Quoted 6 lines
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.Maybe Dragan has more info on this.
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Hi Dragan,
Quoted 60 lines · Dragan Simic
Quoted 58 lines · Shantur Rathore
Quoted 47 lines · Heiko Stübner
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.
Quoted 5 lines
Quoted 1 line
Maybe Dragan has more info on this.
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Hope you feel better soon.
It would be awesome if we can get this in while the current merge window is open.
Kind regards,
Shantur
Heiko Stübner
maintainerHi Shantur,
Am Montag, 8. Januar 2024, 13:11:17 CET schrieb Shantur Rathore:
Quoted 62 lines · Dragan Simic
Quoted 61 lines · Shantur Rathore
Quoted 59 lines · Heiko Stübner
Quoted 47 lines
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.Maybe Dragan has more info on this.
Quoted 7 lines
Quoted 3 lines
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Hope you feel better soon.
It would be awesome if we can get this in while the current merge window is open.
just a small comment regarding timing. All regular development changes need to be finished and in linux-next _before_ the merge-window opens.
As this is not a fix it will go to 6.9 anyway - hence no need to rush.
Heiko
Quoted 67 lines · Heiko Stübner
Am Montag, 8. Januar 2024, 13:11:17 CET schrieb Shantur Rathore:
Quoted 66 lines · Dragan Simic
Quoted 64 lines · Shantur Rathore
Quoted 53 lines · Heiko Stübner
Quoted 47 lines
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
Quoted 6 lines
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.Maybe Dragan has more info on this.
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Quoted 8 lines
Quoted 3 lines
Hope you feel better soon.
It would be awesome if we can get this in while the current merge window is open.just a small comment regarding timing. All regular development changes need to be finished and in linux-next _before_ the merge-window opens.
As this is not a fix it will go to 6.9 anyway - hence no need to rush.
Ah, yes, I keep forgetting that the current merge window basically goes one more kernel version into the past. :) Thank you for the clarification.
HI Dragan,
Quoted 74 lines · Dragan Simic
Quoted 72 lines · Heiko Stübner
Am Montag, 8. Januar 2024, 13:11:17 CET schrieb Shantur Rathore:
Quoted 70 lines
Quoted 59 lines · Dragan Simic
Quoted 58 lines · Shantur Rathore
Quoted 47 lines · Heiko Stübner
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.Quoted 5 lines
Quoted 1 line
Maybe Dragan has more info on this.
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Hope you feel better soon.
It would be awesome if we can get this in while the current merge window is open.
Quoted 8 lines
Quoted 4 lines
just a small comment regarding timing. All regular development changes need to be finished and in linux-next _before_ the merge-window opens.
As this is not a fix it will go to 6.9 anyway - hence no need to rush.
Ah, yes, I keep forgetting that the current merge window basically goes one more kernel version into the past. :) Thank you for the clarification.
Hope you are feeling better.
Just to update, my patch has been dropped in u-boot in expectation of it being fixed here.
Do you foresee it happening anytime soon?
Kind regards,
Shantur
Hello Shantur,
Quoted 78 lines · Shantur Rathore
Quoted 77 lines · Dragan Simic
Quoted 75 lines · Heiko Stübner
Am Montag, 8. Januar 2024, 13:11:17 CET schrieb Shantur Rathore:
Quoted 62 lines · Dragan Simic
Quoted 61 lines · Shantur Rathore
Quoted 59 lines · Heiko Stübner
Quoted 47 lines
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.Maybe Dragan has more info on this.
Quoted 7 lines
Quoted 3 lines
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Hope you feel better soon.
It would be awesome if we can get this in while the current merge window is open.just a small comment regarding timing. All regular development changes need to be finished and in linux-next _before_ the merge-window opens.
As this is not a fix it will go to 6.9 anyway - hence no need to rush.
Quoted 7 lines
Quoted 3 lines
Ah, yes, I keep forgetting that the current merge window basically goes one more kernel version into the past. :) Thank you for the clarification.
Hope you are feeling better.
Just to update, my patch has been dropped in u-boot in expectation of it being fixed here.
Yes, I saw that message on the U-Boot mailing list. Frankly, that's the usual way, i.e. having the DT issues fixed in the Linux kernel first, and then synced back to U-Boot.
Quoted 1 line
Do you foresee it happening anytime soon?
Unfortunately, I've been unable to focus well enough to be able to work on this, as a result of still recovering from the _nasty_ flu. :( Though, I've been also getting gradually better, thankfully, so while crossing all my fingers and knocking on wood at the same time, :) I'd dare to say that I'm expecting to be able to work on this in the next few days.
I apologize for the delays. Bear with me, please! :)
Quoted 107 lines · Dragan Simic
Hello Shantur,
Quoted 78 lines · Shantur Rathore
Quoted 77 lines · Dragan Simic
Quoted 75 lines · Heiko Stübner
Am Montag, 8. Januar 2024, 13:11:17 CET schrieb Shantur Rathore:
Quoted 62 lines · Dragan Simic
Quoted 61 lines · Shantur Rathore
Quoted 59 lines · Heiko Stübner
Quoted 47 lines
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.Maybe Dragan has more info on this.
Quoted 7 lines
Quoted 3 lines
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Hope you feel better soon.
It would be awesome if we can get this in while the current merge window is open.just a small comment regarding timing. All regular development changes need to be finished and in linux-next _before_ the merge-window opens.
As this is not a fix it will go to 6.9 anyway - hence no need to rush.
Quoted 8 lines
Quoted 4 lines
Ah, yes, I keep forgetting that the current merge window basically goes
one more kernel version into the past. :) Thank you for the clarification.Hope you are feeling better.
Just to update, my patch has been dropped in u-boot in expectation of it being fixed here.Yes, I saw that message on the U-Boot mailing list. Frankly, that's the usual way, i.e. having the DT issues fixed in the Linux kernel first, and
then synced back to U-Boot.Quoted 1 line
Do you foresee it happening anytime soon?
Unfortunately, I've been unable to focus well enough to be able to work on
this, as a result of still recovering from the _nasty_ flu. :( Though, I've
been also getting gradually better, thankfully, so while crossing all my fingers and knocking on wood at the same time, :) I'd dare to say that I'm
expecting to be able to work on this in the next few days.
Quoted 1 line
I apologize for the delays. Bear with me, please! :)
You are fast in replies. Thanks for that.
I hope you feel 100% soon and no worries I was just checking.
Regards,
Shantur
Quoted 1 line · Shantur Rathore
Hi Dragan,
Hello!
Quoted 63 lines · Dragan Simic
Quoted 62 lines · Shantur Rathore
Quoted 59 lines · Heiko Stübner
Quoted 47 lines
Am Freitag, 22. Dezember 2023, 15:16:16 CET schrieb Shantur Rathore:
Quoted 5 lines
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
phy-supply isn't sconfugred for the TypeC port and now that we are
^^ configured ?
Quoted 31 lines
removing regulator-always-on, we need to fix the phy-supply so the PHYs are able to turn power to type-c port.
Series-version: 2
Signed-off-by Shantur Rathore <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +0
-2@@ -192,7 +192,6 @@ vcc5v0_host: vcc5v0-host-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_host_en>; regulator-name = "vcc5v0_host"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };@@ -203,7 +202,6 @@ vcc5v0_typec: vcc5v0-typec-regulator { pinctrl-names = "default"; pinctrl-0 = <&vcc5v0_typec_en>; regulator-name = "vcc5v0_typec"; - regulator-always-on; vin-supply = <&vcc5v0_usb>; };arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi &u2phy0 { · line 862
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-0@@ -859,6 +857,7 @@ &u2phy0 { status = "okay"; u2phy0_otg: otg-port { + phy-supply = <&vcc5v0_typec>; status = "okay"; };Just to explain for me, what is supplying the "other" OTG port
Quoted 5 lines
u2phy1_otg: otg-port {}in u2phy1 ... this one is status okay, but does not have any phy supply?
In RockPro64 there is only 1 USB-C OTG port and the other port is a USB-3.0 port.
To be honest, I am not 100% sure how this all works, as I understand the USB3.0 port is wired to the second TypeC Phy.Maybe Dragan has more info on this.
Quoted 7 lines
Quoted 3 lines
I'll have it checked and tested in detail, of course, but I have to recover from this nasty flu first. Unfortunately, it has rendeded me unable to even think straight.
Hope you feel better soon.
It would be awesome if we can get this in while the current merge window is open.
Thankfully, I'm feeling significantly better after more than two weeks of misery, and I hope to be able to work on this in the next few days. I'll do my best to have it done in the current merge window, together with a few new patches that I have planned to submit to the mailing list.