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.

BQ27220: Wrong values read with linux kernel driver

Part Number: BQ27220
Other Parts Discussed in Thread: BQSTUDIO

Tool/software:

Hello, we are using this driver https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/power/supply/bq27xxx_battery.c?h=ti-linux-6.1.ym our dts is:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
bat: battery {
compatible = "simple-battery";
voltage-min-design-microvolt = <3300000>; // Minimum design voltage in microvolts
energy-full-design-microwatt-hours = <15580000>; // Full design energy in microwatt-hours
charge-full-design-microamp-hours = <3400000>; // Full design charge in microamp-hours
};
fuel_gauge: bq27220@55 {
compatible = "ti,bq27541";
reg = <0x55>;
monitored-battery = <&bat>;
status = "okay";
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Charge_now node is showing current instead of charge and temperature  is completely wrong. Can you advise what settings to use with BQ27220 to get the driver to function correctly? 

Thank you

  • Hello Tomas,

    We currently do not support the linux driver. Only recommendation I can offer is to use bqStudio on a windows computer to verify the gauge is working properly.

    Regards,

    Adrian