[U-Boot] Rockchip RK3288 regulator device table problem

Rick Bronson rick at efn.org
Sat Dec 10 00:12:11 CET 2016


Hi All,

  How do I enable a particular regulator upon boot?  I have two
identically set LDO entries:

			vccio_en: LDO_REG1 {
				regulator-always-on;
				regulator-boot-on;
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
				regulator-name = "vccio_en";
				regulator-state-mem {
					regulator-on-in-suspend;
					regulator-suspend-microvolt = <3300000>;
				};
			};

			vcc33_mic: LDO_REG2 {
				regulator-always-on;
				regulator-boot-on;
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
				regulator-name = "vcc33_mic";
				regulator-state-mem {
					regulator-on-in-suspend;
					regulator-suspend-microvolt = <3300000>;
				};
			};

  Yet one is enabled, the other disabled, any idea why?:

=> regulator status
Name                 Enabled            uV         mA Mode
...
vccio_en             enabled       3300000          - -
vcc33_mic            disabled      3300000          - -

  And oddly, the uV values actually don't come from the DT but from
the rk808_ldo table in drivers/power/regulator/rk808.c

  Any ideas?

Thanks for any help.

  Rick





More information about the U-Boot mailing list