Other Parts Discussed in Thread: BQ25890, , BQ25896, BQ25895
Tool/software:
I am use bq25890h charging ic but fail to charge battery. Also using bq25890 driver code for bq25890h.
When system or reboot it show
POWER_SUPPLY_NAME=bq25890-charger
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_MANUFACTURER=Texas Instruments
POWER_SUPPLY_MODEL_NAME=BQ25890
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT=2400000
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX=2944000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE=3624000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE_MAX=4192000
POWER_SUPPLY_CHARGE_TERM_CURRENT=256000
POWER_SUPPLY_VOLTAGE_NOW=3644000
when charger disconnected it show this
cat /sys/class/power_supply/bq25890-charger/uevent
POWER_SUPPLY_NAME=bq25890-charger
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_MANUFACTURER=Texas Instruments
POWER_SUPPLY_MODEL_NAME=BQ25890
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_ONLINE=0
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT=0
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX=2944000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE=0
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE_MAX=4192000
POWER_SUPPLY_CHARGE_TERM_CURRENT=256000
POWER_SUPPLY_VOLTAGE_NOW=3604000
when charge reconnected it show this
POWER_SUPPLY_NAME=bq25890-charger
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_MANUFACTURER=Texas Instruments
POWER_SUPPLY_MODEL_NAME=BQ25890
POWER_SUPPLY_STATUS=Not Charging
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT=0
POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX=2944000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE=3624000
POWER_SUPPLY_CONSTANT_CHARGE_VOLTAGE_MAX=4192000
POWER_SUPPLY_CHARGE_TERM_CURRENT=256000
POWER_SUPPLY_VOLTAGE_NOW=3644000
in dts file I have add support of bq25890 and using imx8mp
bq25890: charger@6a {
compatible = "ti,bq25890";
reg = <0x6a>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_bq_irq>;
interrupt-parent = <&gpio4>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
gpio-names = "bq25890_irq";
/* Current Settings */
ti,charge-current = <3000000>; // 3A charge current
ti,input-current-limit = <3200000>; // 3.2A input current (CRITICAL)
ti,termination-current = <256000>; // 256mA termination
ti,precharge-current = <256000>; // 256mA precharge
ti,boost-max-current = <1500000>; // 1.5A OTG current
/* Voltage Settings */
ti,battery-regulation-voltage = <4200000>; // 4.2V battery float voltage
ti,minimum-sys-voltage = <3600000>; // 3.6V minimum system voltage
ti,boost-voltage = <5000000>; // 5V boost mode voltage
/* Optional: Input voltage regulation (adjust based on adapter) */
ti,vindpm-threshold = <4500>; // 4.5V (in mV)
/* Thermal Settings */
ti,thermal-regulation-threshold = <120>; // 120°C
};
And below is the reg_field
Please can you provide some help in this issue