This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/BQ25890: CHRG_STAT state is not valid (CHRG_STAT not equal to STAT pin)

Part Number: BQ25890

Tool/software: Linux

Hi.

Could you let me know about if it is OK or not under the condition below?

1. the status register (CHRG_STAT) is  00 (indicates "charging disable") and linux driver show "NOT CAHRGING" in status

2. The STAT output indicates the charging status of charging (LOW) so the LED is ON.

3. the Charge Current (IBAT) REG12 indicateds 1150000 (so the battery is charging with current about 1.15mA)

Is this a right behavior?

when we restart the system, the status register (CHRG_STAT) will be "10" (Charging). but if charger remove and re-plug the system will be in the above status until restart the system.

Could you let me know about the problem?

Best Regards.

  • this is my device tree enteries:

        charger1: bq25890@6a {
            compatible = "ti,bq25890";
            reg = <0x6a>;
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_charger1>;

            ti,battery-regulation-voltage = <4200000>;
            ti,charge-current = <1200000>;
            ti,termination-current = <60000>;
            ti,precharge-current = <128000>;
            ti,minimum-sys-voltage = <3200000>;
            ti,boost-voltage = <5000000>;
            ti,boost-max-current = <2400000>;
            ti,iilim =<0x3f>;

    //        ti,use-ilim-pin;
            ti,thermal-regulation-threshold = <120>;
            bq25890_irq-gpios=<&gpio3 8 GPIO_ACTIVE_LOW>;
            status = "okay";
        };

  • Hi,

    Sample BQ2589x driver is located at github.com/.../bq2589x.

    Thanks,

    Ning.
    Please click "This Resolved my issue" button if this post answer your question.
  • Hi,
    Thanks for reply.

    Firstly, the driver is incompatible with my kernel.
    secondly, The IC registers show incorrect value. It seems that this is not driver dependent.
  • Hi,

    1. The status register (CHRG_STAT) indicates the different charging phases: 00-charging disable or not charging, 01-precharge, 10-fast charge (constant current) and constant voltage mode, 11-charging done.
    2. STAT low indicates Charging in progress (including recharge). On the official EVM, the corresponding LED is on.
    3. Please refer to table 27 on p50 of the d/s or BQSUDIO BQ25890 GUI downloadable at www.ti.com/.../bqstudio.

    Thanks,

    Ning.
    Please click "This Resolved my issue" button if this post answer your question.