According the schematic of OSD32MP1-BRK, the PMIC_BSTIN have been tied to 5V input already. any other suggestion?
Thanks.
What’s the change on device tree?
I modified linux device tree to be
vref_ddr:vref_ddr{
regulator-name = “vref_ddr”;
regulator-always-on;
regulator-over-current-protection;
};
bst_out:boost{
regulator-name = “bst_out”;
regulator-min-microvolt = <5200000>;
regulator-max-microvolt = <5200000>;
regulator-always-on;
interrupts = <IT_OCP_BOOST 0>;
};
vbus_otg:pwr_sw1{
regulator-name = “vbus_otg”;
interrupts = <IT_OCP_OTG 0>;
};
and when boot up kernel, it hangs
[ 2.792973] LDO5: supplied by vin
[ 2.798092] LDO6: supplied by v3v3
[ 2.803324] VREF_DDR: supplied by vin
[ 2.808380] BOOST: supplied by vin
[ 2.810377] bst_out: Bringing 5000000uV into 5200000-5200000uV
[ 2.816368] bst_out: failed to apply 5200000-5200000uV constraint(-22)
[ 2.822713] stpmic1-regulator 5c002000.i2c:stpmic@33:regulators: failed to register BOOST regulator
[ 2.832896] ————[ cut here ]————
[ 2.836340] WARNING: CPU: 1 PID: 21 at drivers/regulator/core.c:2044 _regulator_put.part.0+0x154/0x15c
[ 2.845682] Modules linked in:
[ 2.848677] CPU: 1 PID: 21 Comm: kworker/1:1 Not tainted 5.4.31 #1
[ 2.854845] Hardware name: STM32 (Device Tree Support)
[ 2.859989] Workqueue: events deferred_probe_work_func
[ 2.865138] [<c01124dc>] (unwind_backtrace) from [<c010d784>] (show_stack+0x10/0x14)
[ 2.872867] [<c010d784>] (show_stack) from [<c0b0a234>] (dump_stack+0xb0/0xc4)
[ 2.880087] [<c0b0a234>] (dump_stack) from [<c01259d4>] (__warn+0xd0/0xf8)
[ 2.886956] [<c01259d4>] (__warn) from [<c0125d7c>] (warn_slowpath_fmt+0x64/0xc4)
[ 2.894439] [<c0125d7c>] (warn_slowpath_fmt) from [<c05d401c>] (_regulator_put.part.0+0x
Do you mind to share your code?
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields