Page 1 of 1

luckfox pico plus上电时序的疑问?现在我想分开dovdd和avdd的上电时序,但是发现disable失败,电压没有下去

Posted: 2024-09-23 3:05
by wenjie
static const char * const gc02m2_supply_names[] = {
"dovdd", /* Digital I/O power */
"avdd", /* Analog power */
"dvdd", /* Digital core power */
};

#define GC02M2_NUM_SUPPLIES ARRAY_SIZE(gc02m2_supply_names)

static int gc02m2_configure_regulators(struct gc02m2 *gc02m2)
{
unsigned int i;

for (i = 0; i < GC02M2_NUM_SUPPLIES; i++)
gc02m2->supplies.supply = gc02m2_supply_names;

return devm_regulator_bulk_get(&gc02m2->client->dev,
GC02M2_NUM_SUPPLIES,
gc02m2->supplies);
}

regulator_bulk_enable(GC02M2_NUM_SUPPLIES, gc02m2->supplies);这个函数关闭的电压适配器是下面这些吗?是怎么通过上面的"dovdd", /* Digital I/O power */
"avdd", /* Analog power */
"dvdd", /* Digital core power */来获取到这些电压适配器的吗
,现在我想分开dovdd和avdd的上电时序,但是发现disable失败,电压没有下去

vcc_1v8: vcc-1v8 {
compatible = "regulator-fixed";
regulator-name = "vcc_1v8";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};

vcc_3v3: vcc-3v3 {
compatible = "regulator-fixed";
regulator-name = "vcc_3v3";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};

vdd_arm: vdd-arm {
compatible = "regulator-fixed";
regulator-name = "vdd_arm";
regulator-min-microvolt = <900000>;
regulator-max-microvolt = <900000>;
regulator-always-on;
regulator-boot-on;
};

Re: luckfox pico plus上电时序的疑问?现在我想分开dovdd和avdd的上电时序,但是发现disable失败,电压没有下去

Posted: 2024-09-23 6:30
by Crocodile
您好 luckfox-pico 的PMU设置功能有限 设备电源都是由电路设计好的提供,regulator默认都是用dummy regulator,也就是说驱动中有关于regulator的设置都是没有实际操作的,需要分开上电时序请自行设计软件和硬件,我们没有做过相关测试不提供具体建议

Re: luckfox pico plus上电时序的疑问?现在我想分开dovdd和avdd的上电时序,但是发现disable失败,电压没有下去

Posted: 2024-09-23 6:35
by wenjie
Crocodile wrote: 2024-09-23 6:30 您好 luckfox-pico 的PMU设置功能有限 设备电源都是由电路设计好的提供,regulator默认都是用dummy regulator,也就是说驱动中有关于regulator的设置都是没有实际操作的,需要分开上电时序请自行设计软件和硬件,我们没有做过相关测试不提供具体建议
也就是说你们sc3336里的power_on和power_off函数里的regulator_bulk_enable和regulator_bulk_disable函数都没有对avdd和dovdd进行拉高和拉低操作吗?

Re: luckfox pico plus上电时序的疑问?现在我想分开dovdd和avdd的上电时序,但是发现disable失败,电压没有下去

Posted: 2024-09-23 6:43
by Crocodile
您可以查看内核打印信息,sc3336 的 avdd dovdd dvdd 都是用的dummy regulator,实际的表现也就是没有控制上电时序,相关电源一直处于使能状态