arm64: dts: rockchip: fix vcc3v3_sys regulator dependency for Firefly-RK3399
Subsystems (2)
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
@@ -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
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_sysdepends onvcc_sys, butvcc3v3_sysis described in front ofvcc_syson 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
Signed-off-by Shohei Maruyama <[email protected]>--- .../boot/dts/rockchip/rk3399-firefly.dts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +10
-10@@ -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>;