]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: tegra: Fix Jetson Nano GPU regulator
authorJon Hunter <jonathanh@nvidia.com>
Thu, 20 Jun 2019 08:17:02 +0000 (09:17 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 20 Jun 2019 09:18:30 +0000 (11:18 +0200)
There are a few issues with the GPU regulator defined for Jetson Nano
which are:

1. The GPU regulator is a PWM based regulator and not a fixed voltage
   regulator.
2. The output voltages for the GPU regulator are not correct.
3. The regulator enable ramp delay is too short for the regulator and
   needs to be increased. 2ms should be sufficient.
4. This is the same regulator used on Jetson TX1 and so make the ramp
   delay and settling time the same as Jetson TX1.

Cc: stable@vger.kernel.org
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Fixes: 6772cd0eacc8 ("arm64: tegra: Add NVIDIA Jetson Nano Developer Kit support")
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts

index 9234b70ae454f46eeecb4918ade2edb3fd8f05fe..9d17ec707bcefdf205cf3f4695655d515fa70be1 100644 (file)
@@ -668,17 +668,16 @@ vdd_cpu: regulator@5 {
                };
 
                vdd_gpu: regulator@6 {
-                       compatible = "regulator-fixed";
+                       compatible = "pwm-regulator";
                        reg = <6>;
-
+                       pwms = <&pwm 1 4880>;
                        regulator-name = "VDD_GPU";
-                       regulator-min-microvolt = <5000000>;
-                       regulator-max-microvolt = <5000000>;
-                       regulator-enable-ramp-delay = <250>;
-
-                       gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
-                       enable-active-high;
-
+                       regulator-min-microvolt = <710000>;
+                       regulator-max-microvolt = <1320000>;
+                       regulator-ramp-delay = <80>;
+                       regulator-enable-ramp-delay = <2000>;
+                       regulator-settling-time-us = <160>;
+                       enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
                        vin-supply = <&vdd_5v0_sys>;
                };
        };