dts: rockpro64: Remove usb regulator-always-on
Subsystems (2)
PATCH 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.
Typec port has misconfugred phy-supply 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.
---
After this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.
At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1 -3
@@ -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>; };
@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { }; u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };
Signature · 7 lines
2.40.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH 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.
Typec port has misconfugred phy-supply 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.
---
+ devicetree
After this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.
At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1 -3
@@ -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>; };
@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { }; u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };
Signature · 1 line
2.40.1
Hello Shantur,
Quoted 47 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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_otg: otg-port { · line 867
Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { }; u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };
Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Hi Dragan,
Quoted 53 lines · Dragan Simic
Hello Shantur,
Quoted 49 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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>; };@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { };
Quoted 11 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi u2phy0_otg: otg-port { · line 867
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Sure, no worries.
Would you mind letting me know which part doesn't feel right to you?
Kind regards,
Shantur
Quoted 63 lines · Shantur Rathore
Quoted 50 lines · Dragan Simic
Quoted 49 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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>; };@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { };Quoted 11 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi u2phy0_otg: otg-port { · line 867
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Quoted 1 line
Sure, no worries.
Great, thanks.
Quoted 1 line
Would you mind letting me know which part doesn't feel right to you?
Sure, it was about the last change in the patch.
Hi Dragan,
Quoted 66 lines · Dragan Simic
Quoted 64 lines · Shantur Rathore
Quoted 61 lines · Dragan Simic
Quoted 47 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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_otg: otg-port { · line 867
Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { }; u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Quoted 7 lines
Quoted 1 line
Sure, no worries.
Great, thanks.
Quoted 1 line
Would you mind letting me know which part doesn't feel right to you?
Sure, it was about the last change in the patch.
The TypeC port VBUS is VBUS_TYPEC on Page 20 of 33 marked for VBUS_[1-4] in schematic here - [0]
[0] - https://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdf
Kind regards,
Shantur
Quoted 70 lines · Shantur Rathore
Quoted 69 lines · Dragan Simic
Quoted 64 lines · Shantur Rathore
Quoted 50 lines · Dragan Simic
Quoted 49 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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>; };@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { };Quoted 11 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi u2phy0_otg: otg-port { · line 867
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Quoted 1 line
Sure, no worries.
Great, thanks.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Would you mind letting me know which part doesn't feel right to you?
Sure, it was about the last change in the patch.
The TypeC port VBUS is
VBUS_TYPECon Page 20 of 33 marked for VBUS_[1-4] in schematic here - [0][0] - https://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdf
I see, thanks, and I already went once again through the RockPro64 schematic, but only briefly. I need to do that again, but in detail, and compare it thoroughly with the dts(i).
Quoted 77 lines · Dragan Simic
Quoted 75 lines · Shantur Rathore
Quoted 72 lines · Dragan Simic
Quoted 64 lines · Shantur Rathore
Quoted 50 lines · Dragan Simic
Quoted 49 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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>; };@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { };Quoted 11 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi u2phy0_otg: otg-port { · line 867
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Quoted 1 line
Sure, no worries.
Great, thanks.
Quoted 1 line
Would you mind letting me know which part doesn't feel right to you?
Sure, it was about the last change in the patch.
Quoted 8 lines
Quoted 4 lines
The TypeC port VBUS is
VBUS_TYPECon Page 20 of 33 marked for VBUS_[1-4] in schematic here - [0][0] - https://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdf
I see, thanks, and I already went once again through the RockPro64 schematic, but only briefly. I need to do that again, but in detail, and compare it thoroughly with the dts(i).
Ping.
Quoted 80 lines · Shantur Rathore
Quoted 79 lines · Dragan Simic
Quoted 78 lines · Shantur Rathore
Quoted 65 lines · Dragan Simic
Quoted 64 lines · Shantur Rathore
Quoted 61 lines · Dragan Simic
Quoted 47 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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_otg: otg-port { · line 867
Quoted 8 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { }; u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Quoted 7 lines
Quoted 1 line
Sure, no worries.
Great, thanks.
Quoted 1 line
Would you mind letting me know which part doesn't feel right to you?
Sure, it was about the last change in the patch.
The TypeC port VBUS is
VBUS_TYPECon Page 20 of 33 marked for VBUS_[1-4] in schematic here - [0]
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
[0] - https://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdf
I see, thanks, and I already went once again through the RockPro64 schematic, but only briefly. I need to do that again, but in detail, and compare it thoroughly with the dts(i).
Ping.
Pong. :) I haven't fogotten about this, but I simply haven't had enough time yet, and I really want to have this checked and cleaned up. I'm sorry for the delay.
Quoted 89 lines · Dragan Simic
Quoted 87 lines · Shantur Rathore
Quoted 84 lines · Dragan Simic
Quoted 71 lines · Shantur Rathore
Quoted 69 lines · Dragan Simic
Quoted 64 lines · Shantur Rathore
Quoted 50 lines · Dragan Simic
Quoted 49 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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>; };@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { };Quoted 11 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi u2phy0_otg: otg-port { · line 867
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Quoted 1 line
Sure, no worries.
Great, thanks.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Would you mind letting me know which part doesn't feel right to you?
Sure, it was about the last change in the patch.
The TypeC port VBUS is
VBUS_TYPECon Page 20 of 33 marked for VBUS_[1-4] in schematic here - [0][0] - https://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdf
I see, thanks, and I already went once again through the RockPro64 schematic, but only briefly. I need to do that again, but in detail, and compare it thoroughly with the dts(i).
Quoted 5 lines
Quoted 1 line
Ping.
Pong. :) I haven't fogotten about this, but I simply haven't had enough time yet, and I really want to have this checked and cleaned up. I'm sorry for the delay.
I had a look over the schematic (Sheet 11, 19 and 20), and it shows the USB2.0 PHY0 being used for both the TypeC port and one of the USB2.0 TypeA ports. VBUS for the TypeC port is VBUS_TYPEC, VBUS for the TypeA port is VCC5V0_HOST0.
So I think the vcc5v0_host supply should be left as-is on the host-port node, and the phy-supply = <&vcc5v0_typec> should be added to the otg-port node a few lines above, instead.
Hi Cole,
Quoted 97 lines · Hugh Cole-Baker
Quoted 89 lines · Dragan Simic
Quoted 87 lines · Shantur Rathore
Quoted 84 lines · Dragan Simic
Quoted 71 lines · Shantur Rathore
Quoted 69 lines · Dragan Simic
Quoted 64 lines · Shantur Rathore
Quoted 50 lines · Dragan Simic
Quoted 49 lines · Shantur Rathore
USB port regulators should be controlled by PHYs so we remove always-on property and let PHYs manage the regulator.
Typec port has misconfugred phy-supply 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.
Signed-off-by Shantur Rathore <[email protected]>---
+ devicetreeAfter this patch the ports were confirmed to power up and down in u-boot when doing usb start and usb stop.
At boot the regulators were off, the devices connected weren't powered up, on usb start the PHYs are able to power on the ports and on usb stop they were powered down.At the boot, the ports were powered down which was again powered up by Linux kernel when booting up.
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 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>; };@@ -863,7 +861,7 @@ u2phy0_otg: otg-port { };Quoted 11 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi u2phy0_otg: otg-port { · line 867
Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +1
-1u2phy0_host: host-port { - phy-supply = <&vcc5v0_host>; + phy-supply = <&vcc5v0_typec>; status = "okay"; }; };Quite frankly, something doesn't feel right there. Would you mind, please, to place this patch on hold until next week or so, at which point I should have enough time to go through the RockPro64 schematic thoroughly once again, and test the patch in detail?
Quoted 1 line
Sure, no worries.
Great, thanks.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Would you mind letting me know which part doesn't feel right to you?
Sure, it was about the last change in the patch.
The TypeC port VBUS is
VBUS_TYPECon Page 20 of 33 marked for VBUS_[1-4] in schematic here - [0][0] - https://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdf
I see, thanks, and I already went once again through the RockPro64 schematic, but only briefly. I need to do that again, but in detail, and compare it thoroughly with the dts(i).
Quoted 5 lines
Quoted 1 line
Ping.
Pong. :) I haven't fogotten about this, but I simply haven't had enough time yet, and I really want to have this checked and cleaned up. I'm sorry for the delay.
Quoted 7 lines
I had a look over the schematic (Sheet 11, 19 and 20), and it shows the USB2.0 PHY0 being used for both the TypeC port and one of the USB2.0 TypeA ports. VBUS for the TypeC port is
VBUS_TYPEC, VBUS for the TypeA port isVCC5V0_HOST0.So I think the
vcc5v0_hostsupply should be left as-is on the host-port node, and the phy-supply = <&vcc5v0_typec> should be added to the otg-port node a few lines above, instead.
You are right. I made a mistake by setting vcc5v0_typec to the wrong port node. I have tested the change again.
With this turning off the vcc5v0_typec regulator the TypeC port is turned off and turning the vcc5v0_host off all other TypeA ports are turned off.
I will send the v2 of this patch.
Regards,
Shantur