Skip to contentSkip to conversation

arm64: dts: rockchip: fix vcc3v3_sys regulator dependency for Firefly-RK3399

PATCH New Maruyama Shohei 2 participants 2 messages Aug 23, 2018

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

PATCH 1/2 arm64: dts: rockchip: fix vcc3v3_sys regulator dependency for Firefly-RK3399

From: Shohei Maruyama <[email protected]>

During booting the Firefly-RK3399, the following errors occur many times.

vcc3v3_sys: unable to resolve supply

vcc3v3_sys depends on vcc_sys, but vcc3v3_sys is described in front of vcc_sys on the devicetree. Therefore, can't resolve the dependency. This commit fixes the problem.

---
 .../boot/dts/rockchip/rk3399-firefly.dts      | 20 +++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +10 -10
index a9376a316f63..d124b65dc315 100644
@@ -193,16 +193,6 @@
 		vin-supply = <&dc_12v>;
 	};
 
-	vcc3v3_sys: vcc3v3-sys {
-		compatible = "regulator-fixed";
-		regulator-name = "vcc3v3_sys";
-		regulator-always-on;
-		regulator-boot-on;
-		regulator-min-microvolt = <3300000>;
-		regulator-max-microvolt = <3300000>;
-		vin-supply = <&vcc_sys>;
-	};
-
 	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
 	vcc5v0_host: vcc5v0-host-regulator {
 		compatible = "regulator-fixed";
@@ -225,6 +215,16 @@
 		vin-supply = <&dc_12v>;
 	};
 
+	vcc3v3_sys: vcc3v3-sys {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc3v3_sys";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vcc_sys>;
+	};
+
 	vdd_log: vdd-log {
 		compatible = "pwm-regulator";
 		pwms = <&pwm2 0 25000 1>;
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/2 arm64: dts: rockchip: fix vcc3v3_sys regulator dependency for Firefly-RK3399

Quoted 9 lines · Maruyama Shohei

From: Shohei Maruyama <[email protected]>

During booting the Firefly-RK3399, the following errors occur many times.

vcc3v3_sys: unable to resolve supply

vcc3v3_sys depends on vcc_sys, but vcc3v3_sys is described in front of vcc_sys on the devicetree. Therefore, can't resolve the dependency. This commit fixes the problem.

That sounds more like it's simply papering over a bug elsewhere - things that depend on a specific ordering of nodes in the DTB are generally bad.

That said, however, AFAICS both places that that particular message appears are pr_debug() calls, so shouldn't be seen under normal usage anyway (and are presumably benign if the relevant regulator does eventually resolve). Have you simply got CONFIG_REGULATOR_DEBUG enabled inadvertently?

Robin.

Quoted 44 lines
---
  .../boot/dts/rockchip/rk3399-firefly.dts      | 20 +++++++++----------
  1 file changed, 10 insertions(+), 10 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +10 -10
index a9376a316f63..d124b65dc315 100644
@@ -193,16 +193,6 @@
  		vin-supply = <&dc_12v>;
  	};
 
-	vcc3v3_sys: vcc3v3-sys {
-		compatible = "regulator-fixed";
-		regulator-name = "vcc3v3_sys";
-		regulator-always-on;
-		regulator-boot-on;
-		regulator-min-microvolt = <3300000>;
-		regulator-max-microvolt = <3300000>;
-		vin-supply = <&vcc_sys>;
-	};
-
  	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
  	vcc5v0_host: vcc5v0-host-regulator {
  		compatible = "regulator-fixed";
@@ -225,6 +215,16 @@
  		vin-supply = <&dc_12v>;
  	};
 
+	vcc3v3_sys: vcc3v3-sys {
+		compatible = "regulator-fixed";
+		regulator-name = "vcc3v3_sys";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vcc_sys>;
+	};
+
  	vdd_log: vdd-log {
  		compatible = "pwm-regulator";
  		pwms = <&pwm2 0 25000 1>;