luckfox pico plus上电时序的疑问?现在我想分开dovdd和avdd的上电时序,但是发现disable失败,电压没有下去
Posted: 2024-09-23 3:05
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;
};
"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;
};