[Letux-kernel] [PATCH 6/8] arm: dts: omap3pandora: Populate DT data for the TWL4030's REGEN regulator

Grond grond66 at riseup.net
Fri Dec 31 01:06:41 CET 2021


On the Pandora, REGEN is used to enable TPS61029DRC external regulator which
runs a 5V power rail. The 5ms startup delay is taken from Pandora's 3.2 kernel,
where it is labeled as a "guess". So it may be possible to activate the
regulator faster.

On Pandora CC units, this regulator is used as the input to the LCD power
supply. Therefore, problems are likely to arise if the regulator is ever
disabled, so we add the regulator-always-on property to compensate.

Signed-off-by: Grond <grond66 at riseup.net>
---
 arch/arm/boot/dts/omap3-pandora-common.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-pandora-common.dtsi b/arch/arm/boot/dts/omap3-pandora-common.dtsi
index e251ca9efc12..02a122ed3b0e 100644
--- a/arch/arm/boot/dts/omap3-pandora-common.dtsi
+++ b/arch/arm/boot/dts/omap3-pandora-common.dtsi
@@ -604,6 +604,14 @@ &vsim {
 	regulator-always-on;
 };
 
+&regen {
+	regulator-min-microvolt = <5000000>;
+	regulator-max-microvolt = <5000000>;
+	startup-delay-us = <5000>;
+	regulator-always-on;
+	status = "okay";
+};
+
 &i2c2 {
 	clock-frequency = <100000>;
 	/* no clients so we should disable clock */
-- 
2.30.2



More information about the Letux-kernel mailing list