Hi Folks,
I am working on Linux based platform with fuel gauge bq27441 with below details of kernel and Ti driver version.
TI Parts : bq27xxx
Kernel version : 4.9.241
TI Driver Version : "1.2.0"
Battery : Li-Ion / 3.3V / 2200mAh
I have made some necessary changes into DTS, and validated successful driver probe in dmesg .
Below are the wrong parameters output current;y I am seeing,
Battery connected (in discharging mode with load connected - LED)
$ cat /sys/class/power_supply/bq27441-0/uevent
POWER_SUPPLY_NAME =bq27441-0
POWER_SUPPLY_STATUS =Charging
POWER_SUPPLY_PRESENT =1
POWER_SUPPLY_VOLTAGE_NOW =3842000
POWER_SUPPLY_CURRENT_NOW =0
POWER_SUPPLY_CAPACITY =52
POWER_SUPPLY_CAPACITY_LEVEL =Normal
POWER_SUPPLY_TEMP =276
POWER_SUPPLY_TECHNOLOGY =Li-ion
POWER_SUPPLY_CHARGE_FULL =939000
POWER_SUPPLY_CHARGE_NOW =520000
POWER_SUPPLY_CHARGE_FULL_DESIGN =1000000
POWER_SUPPLY_MANUFACTURER =Texas Instruments
Battery not connected
$ cat /sys/class/power_supply/bq27441-0/uevent
POWER_SUPPLY_NAME =bq27441-0
POWER_SUPPLY_PRESENT =0
Changes made on DTS file,
bat: battery { status = "okay"; compatible = "bq27000-battery","ti,bq27000"; voltage-min-design-microvolt = <2800000>; energy-full-design-microwatt-hours = <3270000>; charge-full-design-microamp-hours = <3270000>; }; bq27441: fuel-gauge@55 { status = "okay"; compatible = "ti,bq27441"; reg = <0x55>; monitored-battery = <&bat>; };
From Logs,
1. Battery if not in charging state but it shows POWER_SUPPLY_STATUS charging.
2. POWER_SUPPLY_VOLTAGE_NOW(3842000) (3.7V), but POWER_SUPPLY_CAPACITY( 52) is half (should be 100% ?)
3. Also some time getting negative value for POWER_SUPPLY_CURRENT_NOW.
Battery parameters are not relating to my battery.
As from Documents, I found that I have to configure fuel gauge driver with battery parameters according to battery.
Question:
How should I configure the battery parameters and which parameter i have to configure ?
Any help would be appreciable.
Thanks & Regards