rockchip: dts: rk3399: rockpro64: Provide init voltage
PATCH 1/1 rockchip: dts: rk3399: rockpro64: Provide init voltage
Add missing regulator-init-microvolt property to vdd_log regulator.
---
Without this property the pwm regulator driver prints a warning and the OpenBSD kernel crashes shortly after spinning up the big cores.
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +4 -0
@@ -5,3 +5,7 @@ #include "rk3399-u-boot.dtsi" #include "rk3399-sdram-lpddr4-100.dtsi" + +&vdd_log { + regulator-init-microvolt = <950000>; +};
Signature · 1 line
2.21.0
PATCH 1/1 rockchip: dts: rk3399: rockpro64: Provide init voltage
Quoted 3 lines · Mark Kettenis
Add missing regulator-init-microvolt property to
vdd_logregulator.Signed-off-by Mark Kettenis <[email protected]>
Thanks,
- Kever
Quoted 19 lines
---
Without this property the pwm regulator driver prints a warning and the OpenBSD kernel crashes shortly after spinning up the big cores.arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +4
-0@@ -5,3 +5,7 @@ #include "rk3399-u-boot.dtsi" #include "rk3399-sdram-lpddr4-100.dtsi" + +&vdd_log { + regulator-init-microvolt = <950000>; +};
PATCH 1/1 rockchip: dts: rk3399: rockpro64: Provide init voltage
In reply to Mark KettenisQuoted 16 lines · Mark Kettenis
Add missing regulator-init-microvolt property to
vdd_logregulator.Signed-off-by Mark Kettenis <[email protected]>---
Without this property the pwm regulator driver prints a warning and the OpenBSD kernel crashes shortly after spinning up the big cores.arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +0
-0
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi line 11
Quoted 7 lines
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +4
-0@@ -5,3 +5,7 @@ #include "rk3399-u-boot.dtsi" #include "rk3399-sdram-lpddr4-100.dtsi" + +&vdd_log { + regulator-init-microvolt = <950000>; +};
This seems to be issue on whole? how does Linux work? if it required in Linux better make a change there and sync here.
PATCH 1/1 rockchip: dts: rk3399: rockpro64: Provide init voltage
Quoted 21 lines
From: Jagan Teki <[email protected]>
Date: Sat, 22 Jun 2019 20:17:13 +0530Quoted 17 lines · Mark Kettenis
Add missing regulator-init-microvolt property to
vdd_logregulator.Signed-off-by Mark Kettenis <[email protected]>---
Without this property the pwm regulator driver prints a warning and the OpenBSD kernel crashes shortly after spinning up the big cores.arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +0
-0@@ -5,3 +5,7 @@
Quoted 9 lines
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi line 11
Quoted 6 lines
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +4
-0#include "rk3399-u-boot.dtsi" #include "rk3399-sdram-lpddr4-100.dtsi" + +&vdd_log { + regulator-init-microvolt = <950000>; +};This seems to be issue on whole? how does Linux work? if it required in Linux better make a change there and sync here.
It needs the fix to actually turn on the boot-on regulators as well. But yes, with this property in the device tree, U-Boot enables the regulator with the appropriate voltage and the crash I'm seeing is gone.
I deliberately made this change in the rk3399-rockpro64-u-boot.dtsi file since the "regulator-init-microvolt" property is *not* defined by the Linux devicetree bindings. So I expect that a patch to change this in the Linux device tree would be rejected.
Note that this regulator has a "regulator-boot-on" property. So Linux doesn't need to know the initial setting of this regulator as the bootloader/firmware is supposed to set it up.
I don't know if folks running Linux are experiencing problems as wll; I don't run Linux on my boards ;). I suspect very few people are actually using mainline U-Boot on their boards. But it is also possible that the Linux kernel does enable this regulator when it boots, since it sees that it hasn't been enabled. It does have some fallback code to fix that up in case the bootloader/firmware didn't do things properly. But what voltage would it use?
PATCH 1/1 rockchip: dts: rk3399: rockpro64: Provide init voltage【请注意,邮件由[email protected]代发】 init voltage
Quoted 20 lines · Mark Kettenis
Quoted 20 lines
From: Jagan Teki <[email protected]>
Date: Sat, 22 Jun 2019 20:17:13 +0530Quoted 16 lines · Mark Kettenis
Add missing regulator-init-microvolt property to
vdd_logregulator.Signed-off-by Mark Kettenis <[email protected]>---
Without this property the pwm regulator driver prints a warning and the OpenBSD kernel crashes shortly after spinning up the big cores.arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +0
-0@@ -5,3 +5,7 @@
Quoted 8 lines
Quoted 8 lines
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi line 11
Quoted 6 lines
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +4
-0#include "rk3399-u-boot.dtsi" #include "rk3399-sdram-lpddr4-100.dtsi" + +&vdd_log { + regulator-init-microvolt = <950000>; +};This seems to be issue on whole? how does Linux work? if it required in Linux better make a change there and sync here.
This is a pwm regulator, need to init in U-Boot instead of in kernel, or else the kernel may hang in the regulator init.
And this pwm regulator suppose to be init with regulators_enable_boot_on().
I would apply the fix first with a rebase without lpddr4 patch set.
Applied to u-boot-rockchip/master.
Thanks,
- Kever
Quoted 24 lines
It needs the fix to actually turn on the boot-on regulators as well. But yes, with this property in the device tree, U-Boot enables the regulator with the appropriate voltage and the crash I'm seeing is gone.
I deliberately made this change in the
rk3399-rockpro64-u-boot.dtsifile since the "regulator-init-microvolt" property is *not* defined by the Linux devicetree bindings. So I expect that a patch to change this in the Linux device tree would be rejected.Note that this regulator has a "regulator-boot-on" property. So Linux doesn't need to know the initial setting of this regulator as the bootloader/firmware is supposed to set it up.
I don't know if folks running Linux are experiencing problems as wll; I don't run Linux on my boards ;). I suspect very few people are actually using mainline U-Boot on their boards. But it is also possible that the Linux kernel does enable this regulator when it boots, since it sees that it hasn't been enabled. It does have some fallback code to fix that up in case the bootloader/firmware didn't do things properly. But what voltage would it use?
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot