Skip to contentSkip to conversation

rockchip: rk3399-puma: Restore correct VDD_LOG supply.

PATCH New Christoph Muellner 2 participants 2 messages Feb 19, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: rk3399-puma: Restore correct VDD_LOG supply.

A commit from last year re-imported the DTS files form the upstream kernel. By doing so the VDD_LOG regulator in the board's DTS was dropped. Let's restore this, but move it into the u-boot overlay to prevent this issue in the future.

Fixes 167efc2c7a46 ("arm64: dts: rk3399: Sync v5.7-rc1 from Linux")

---

 arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi +12 -0
index e7a1aea3a56..e0476ab25c9 100644
@@ -48,6 +48,18 @@
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
 	};
+
+	vdd_log: vdd-log {
+		compatible = "pwm-regulator";
+		pwms = <&pwm2 0 25000 1>;
+		regulator-name = "vdd_log";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <800000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-init-microvolt = <950000>;
+		vin-supply = <&vcc5v0_sys>;
+	};
 };
 
 &gpio1 {
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 rockchip: rk3399-puma: Restore correct VDD_LOG supply.

Am Freitag, 19. Februar 2021, 01:29:48 CET schrieb Christoph Muellner:

Quoted 7 lines

A commit from last year re-imported the DTS files form the upstream kernel. By doing so the VDD_LOG regulator in the board's DTS was dropped. Let's restore this, but move it into the u-boot overlay to prevent this issue in the future.

Fixes 167efc2c7a46 ("arm64: dts: rk3399: Sync v5.7-rc1 from Linux")
Quoted 30 lines

---

 arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi +12 -0
index e7a1aea3a56..e0476ab25c9 100644
@@ -48,6 +48,18 @@
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
 	};
+
+	vdd_log: vdd-log {
+		compatible = "pwm-regulator";
+		pwms = <&pwm2 0 25000 1>;
+		regulator-name = "vdd_log";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <800000>;
+		regulator-max-microvolt = <1400000>;
+		regulator-init-microvolt = <950000>;
+		vin-supply = <&vcc5v0_sys>;
+	};
 };
 
 &gpio1 {