Thread (2 messages) flat view 2 messages, 2 authors, 2018-08-23
DORMANTno replies

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

From: robin.murphy@arm.com (Robin Murphy)
Date: 2018-08-23 17:26:33

On 23/08/18 18:07, Maruyama Shohei wrote:
From: Shohei Maruyama <redacted>

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 hunk ↗ jump to hunk
Signed-off-by: Shohei Maruyama <redacted>
---
  .../boot/dts/rockchip/rk3399-firefly.dts      | 20 +++++++++----------
  1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
index a9376a316f63..d124b65dc315 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
@@ -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>;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help