]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: h700: Set cpusldo to always-on for RG35XX
authorChris Morgan <macromorgan@hotmail.com>
Fri, 18 Oct 2024 16:06:15 +0000 (11:06 -0500)
committerChen-Yu Tsai <wens@csie.org>
Sat, 22 Feb 2025 13:04:36 +0000 (21:04 +0800)
Set the cpusldo regulator for the AXP717 to "regulator-always-on". Its
current functionality is still unknown as there are no schematics
available, however it was observed that upon reboot if this regulator
was disabled GPIO detection logic in the bootloader was inconsistent.
Keep the regulator powered on for now until it can be defined
correctly.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20241018160617.157083-3-macroalpha82@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts

index a231abf1684ad6cdae0f0d8f39869017dd0dc470..e37e77cd54b4ffef6a43bd7df4a2590459f069fd 100644 (file)
                                regulator-name = "boost";
                        };
 
+                       /*
+                        * Regulator function is unknown, but reading
+                        * GPIO values in bootloader is inconsistent
+                        * on reboot if this is disabled. Setting to
+                        * default value from regulator OTP mem.
+                        */
                        reg_cpusldo: cpusldo {
-                               /* unused */
+                               regulator-always-on;
+                               regulator-boot-on;
+                               regulator-min-microvolt = <900000>;
+                               regulator-max-microvolt = <900000>;
                        };
                };