Skip to contentSkip to conversation

arm64: tegra: Use valid PWM period for VDD_GPU on Tegra210

PATCH New Thierry Reding 1 participant 1 message Aug 6, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: tegra: Use valid PWM period for VDD_GPU on Tegra210

From: Thierry Reding <[email protected]>

The PWM on Tegra210 can run at a maximum frequency of 48 MHz and cannot reach the minimum period is 5334 ns. The currently configured period of 4880 ns is not within the valid range, so set it to 8000 ns. This value was taken from the downstream DTS files and seems to work fine.

---
 arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi     | 2 +-
 arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi +1 -1
index 6a4b50aaa25d..85ee7e6b71ac 100644
@@ -337,7 +337,7 @@ psci {
 
 	vdd_gpu: regulator@100 {
 		compatible = "pwm-regulator";
-		pwms = <&pwm 1 4880>;
+		pwms = <&pwm 1 8000>;
 		regulator-name = "VDD_GPU";
 		regulator-min-microvolt = <710000>;
 		regulator-max-microvolt = <1320000>;
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts +1 -1
index 2282ea1c6279..195a43e2356b 100644
@@ -818,7 +818,7 @@ vdd_cpu: regulator@5 {
 
 	vdd_gpu: regulator@6 {
 		compatible = "pwm-regulator";
-		pwms = <&pwm 1 4880>;
+		pwms = <&pwm 1 8000>;
 
 		regulator-name = "VDD_GPU";
 		regulator-min-microvolt = <710000>;
Signature · 1 line
2.27.0