summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Pecio <michal.pecio@gmail.com>2024-12-04 23:44:43 +0300
committerThierry Reding <treding@nvidia.com>2024-12-05 14:42:06 +0300
commitcec785a7f25d9ebe3a151ddc4f3a4ede7fc0dab0 (patch)
tree2502d1a1a227fa8d352b6d9eb24fc07a2e84b88f
parent40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff)
downloadlinux-cec785a7f25d9ebe3a151ddc4f3a4ede7fc0dab0.tar.xz
ARM: tegra: nyan: Maintain power to USB ports on boot
USB ports are turned on by the firmware as it looks for disks to boot, ensure that they aren't power cycled before the xHCI driver comes up. This enables USB devices to be ready for use faster and reduces wear and risk of data loss on storage devices. A particularly annoying case was booting from a mechanical disk, which takes time to spin up again. Vendor kernel also kept these ports powered, and by the same means. Signed-off-by: Michal Pecio <michal.pecio@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi b/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi
index 8125c1b3e8d7..974c76f007db 100644
--- a/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi
+++ b/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi
@@ -716,6 +716,7 @@
regulator-name = "+5V_USB_HS";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
+ regulator-boot-on;
gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
enable-active-high;
gpio-open-drain;
@@ -727,6 +728,7 @@
regulator-name = "+5V_USB_SS";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
+ regulator-boot-on;
gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
enable-active-high;
gpio-open-drain;