]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: tegra: Add VDD_GPU regulator to Jetson TX1
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 2 Dec 2016 19:57:55 +0000 (20:57 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 7 Dec 2016 23:23:33 +0000 (00:23 +0100)
Add the VDD_GPU regulator (a GPIO-enabled PWM regulator) to the Jetson
TX1 board. This addition allows the GPU to be used provided the
bootloader properly enabled the GPU node.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
[as pointed out by Thierry on IRC, nobody has reported a bug
 in the field, but using a new bootloader with a .dtb that
 has the incorrect data, it will crash on boot]
Fixes: 336f79c7b6d7 ("arm64: tegra: Add NVIDIA Jetson TX1 Developer Kit support")
Cc: stable@vger.kernel.org #v4.5+
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi

index 5fda583351d7667de1632b44186b454316ce7093..906fb836d24188aa6b1b0471461d0d15086a2c4c 100644 (file)
                reg = <0x0 0x80000000 0x1 0x0>;
        };
 
+       gpu@57000000 {
+               vdd-supply = <&vdd_gpu>;
+       };
+
        /* debug port */
        serial@70006000 {
                status = "okay";
                        clock-frequency = <32768>;
                };
        };
+
+       regulators {
+               vdd_gpu: regulator@100 {
+                       compatible = "pwm-regulator";
+                       reg = <100>;
+                       pwms = <&pwm 1 4880>;
+                       regulator-name = "VDD_GPU";
+                       regulator-min-microvolt = <710000>;
+                       regulator-max-microvolt = <1320000>;
+                       enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
+                       regulator-ramp-delay = <80>;
+                       regulator-enable-ramp-delay = <1000>;
+               };
+       };
 };