ARM: tegra: nyan: Maintain power to USB ports on boot
authorMichal Pecio <michal.pecio@gmail.com>
Wed, 4 Dec 2024 20:44:43 +0000 (21:44 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 5 Dec 2024 11:42:06 +0000 (12:42 +0100)
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>
arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi

index 8125c1b3e8d7915365503d6c088f83d176a99fb5..974c76f007db4d473d1fa3f8babf20b77d85b3db 100644 (file)
                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;
                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;