in the drivers/cpufreq/imx6q-cpufreq.c for android5.1, in the imx6q_cpufreq_probe function
arm_reg = devm_regulator_get_optional(cpu_dev, "arm");
pu_reg = devm_regulator_get_optional(cpu_dev, "pu");
soc_reg = devm_regulator_get_optional(cpu_dev, "soc");
if (IS_ERR(arm_reg) || IS_ERR(soc_reg)) {
dev_err(cpu_dev, "failed to get regulators\n");
ret = -ENOENT;
goto put_node;
}
dc_reg = devm_regulator_get_optional(cpu_dev, "dc");
if (!IS_ERR(dc_reg))
regulator_set_voltage_tol(dc_reg, DC_VOLTAGE_MIN, 0);
kernel print failed to get regulators, and return, why ? I want to change the cpufreq, how to do for me? tks.
Hi
One can refer to chapter Low-level Power Management (PM) Driver of the Linux Manual for implemented linux low power states, seems suspend-to-memory and this dts property is not used in i.mx6 nxp bsps.
In general one can debug it using described sources in Chapter PF100 Regulator Driver.
CPU Frequency Scaling (CPUFREQ) Driver in Linux Manual, which changes CPU frequency and dts file
linux/arch/arm/boot/dts/imx6q.dtsi,
In older linux releases one can try kernel boot parameter "arm_freq"
described in Table 6. Kernel Boot Parameters Linux Release Notes.