[Samsung Galaxy S 5 Unified Development] sphynxounet:
Hi guys (again).

The LOS 18.1 seems to works fine (I just updated it with the september nightly build).

I just have a little problem with the battery : it's always shown at full charge (100%). When charging/not charging, phone on or off (by power-off it and then plug a charger).

I ever tried a full discharge and then a full charge.

I got the dmesg file and it seems there is some errors about charging battery :

<6>[ 0.253956] max77804k-safeout max77804k-safeout: max77804k_pmic_probe
<6>[ 0.253970] [../../../../../../kernel/samsung/klte/drivers/regulator/max77804k-regulator.c:496] pdata->num_regulators:3
<6>[ 0.253984] [../../../../../../kernel/samsung/klte/drivers/regulator/max77804k-regulator.c:502] for in pdata->num_regulators:3
<6>[ 0.254072] regulator regulator.61: func:max77804k_reg_enable
<6>[ 0.254836] regulator regulator.61: func:max77804k_get_voltage
<6>[ 0.254847] regulator regulator.61: func:max77804k_get_voltage_register
<6>[ 0.255285] regulator regulator.61: func:max77804k_list_voltage_safeout
<6>[ 0.255298] safeout1 range: at 4900 mV
<6>[ 0.255307] regulator regulator.61: func:max77804k_get_voltage
<6>[ 0.255317] regulator regulator.61: func:max77804k_get_voltage_register
<6>[ 0.255754] regulator regulator.61: func:max77804k_list_voltage_safeout

===> <3>[ 0.255869] Error-Bad Function Input

<6>[ 0.255880] [../../../../../../kernel/samsung/klte/drivers/regulator/max77804k-regulator.c:502] for in pdata->num_regulators:3
<6>[ 0.255968] regulator regulator.62: func:max77804k_get_voltage
<6>[ 0.255980] regulator regulator.62: func:max77804k_get_voltage_register
<6>[ 0.256419] regulator regulator.62: func:max77804k_list_voltage_safeout
<6>[ 0.256431] safeout2 range: at 4900 mV
<6>[ 0.256440] regulator regulator.62: func:max77804k_get_voltage
<6>[ 0.256450] regulator regulator.62: func:max77804k_get_voltage_register
<6>[ 0.256911] regulator regulator.62: func:max77804k_list_voltage_safeout

===> <3>[ 0.257000] Error-Bad Function Input

<6>[ 0.257011] [../../../../../../kernel/samsung/klte/drivers/regulator/max77804k-regulator.c:502] for in pdata->num_regulators:3

<6>[ 3.889009] sec-fuelgauge 19-0036: sec_fuelgauge_probe: SEC Fuelgauge Driver Loading
<6>[ 3.889104] fuelgauge_parse_dt reading fg_irq = 446
<6>[ 3.889222] fuelgauge_parse_dt reading bat_int_gpio = 425
<6>[ 3.889230] fuelgauge_parse_dt: fg_irq: 446, calculation_type: 0x17, fuel_alert_soc: 2,
<6>[ 3.889232] repeated_fuelalert: 0
<6>[ 3.889236] board_fuelgauge_init : assign battery data
<6>[ 3.889242] board_fuelgauge_init: RCOMP0: 0x5d, RCOMP_charging: 0x5d, temp_cohot: -175, temp_cocold: -5825, is_using_model_data: 1, type_str: SDI, capacity_max: 990, capacity_max_margin: 50, capacity_min: -7,
<3>[ 3.889999] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.890005] sec-fuelgauge 19-0036: MAX17048 Fuel-Gauge Ver 0xfaff
<3>[ 3.890699] sec-fuelgauge 19-0036: max17048_read_word: err -6
<3>[ 3.891436] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.891441] sec-fuelgauge 19-0036: max17048_get_soc : raw capacity (12549), data(0x0000)
<3>[ 3.892106] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.892110] sec-fuelgauge 19-0036: max17048_get_soc : raw capacity (12549), data(0x0000)
<6>[ 3.892116] sec-fuelgauge 19-0036: sec_fg_calculate_dynamic_scale: 1029 is used for capacity_max
<3>[ 3.892834] sec-fuelgauge 19-0036: max17048_read_word: err -6
<3>[ 3.892843] max17048_get_current: Fail to get psy (sec-charger)
<3>[ 3.892849] max17048_get_current_average: Fail to get psy (sec-charger)
<3>[ 3.892854] max17048_get_current_average: Fail to get psy (battery)
<3>[ 3.893517] sec-fuelgauge 19-0036: max17048_read_word: err -6
<3>[ 3.894180] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.894185] sec-fuelgauge 19-0036: max17048_get_soc : raw capacity (12549), data(0x0000)
<3>[ 3.894862] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.894867] sec-fuelgauge 19-0036: max17048_get_soc : raw capacity (12549), data(0x0000)
<6>[ 3.894872] sec-fuelgauge 19-0036: sec_fg_get_scaled_capacity: scaled capacity (121.7)
<3>[ 3.894881] power_supply sec-fuelgauge: driver failed to report `energy_full' property: 4294967274
<3>[ 3.895578] sec-fuelgauge 19-0036: max17048_read_word: err -6
<3>[ 3.895586] max17048_get_current: Fail to get psy (sec-charger)
<3>[ 3.895592] max17048_get_current_average: Fail to get psy (sec-charger)
<3>[ 3.895596] max17048_get_current_average: Fail to get psy (battery)
<3>[ 3.896305] sec-fuelgauge 19-0036: max17048_read_word: err -6
<3>[ 3.897034] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.897039] sec-fuelgauge 19-0036: max17048_get_soc : raw capacity (12549), data(0x0000)
<3>[ 3.897768] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.897791] sec-fuelgauge 19-0036: max17048_get_soc : raw capacity (12549), data(0x0000)
<6>[ 3.897796] sec-fuelgauge 19-0036: sec_fg_get_scaled_capacity: scaled capacity (121.7)

===> <3>[ 3.897806] power_supply sec-fuelgauge: driver failed to report `energy_full' property: 4294967274

<3>[ 3.898508] sec-fuelgauge 19-0036: max17048_read_word: err -6
<6>[ 3.899303] sec-fuelgauge 19-0036: sec_fuelgauge_probe: fg_irq = 631
<6>[ 3.900255] sec-fuelgauge 19-0036: sec_fuelgauge_probe: SEC Fuelgauge Driver Loaded
<6>[ 3.900296] func:max77804k_charger_init
<6>[ 3.900474] max77804k_charger_probe: MAX77804K Charger driver probe
<6>[ 3.900622] sec_charger_parse_dt use bat irq -22

===> <3>[ 3.900627] max77804k-charger max77804k-charger: max77804k_charger_probe : Failed to get charger int

<6>[ 3.903320] max77804k_charger_initialize: battery cv voltage 0xdf
<6>[ 3.903671] max77804k_charger_probe: device found: ver.0x4
<6>[ 3.904122] max77804k_get_charger_state: CHG_DTLS : 0x 1
<6>[ 3.904834] max77804k_get_health_state: bat_dtls(0x3) int_mask(0x9a)
<3>[ 3.904840] max77804k_get_health_state: Fail to get psy (battery)
<6>[ 3.905877] max77804k_get_health_state: vbus_state : 0x3, chg_dtls : 0x1
<6>[ 3.906228] sec_chg_get_property: reg_data(93)
<6>[ 3.906581] max77804k_get_input_current: CHG_CNFG_09(0x12)
<6>[ 3.906955] sec_chg_get_property: reg_data(93)
<6>[ 3.907309] max77804k_get_charger_state: CHG_DTLS : 0x 1
<6>[ 3.908020] max77804k_get_health_state: bat_dtls(0x3) int_mask(0x9a)
<3>[ 3.908026] max77804k_get_health_state: Fail to get psy (battery)
<6>[ 3.909831] max77804k_get_health_state: vbus_state : 0x3, chg_dtls : 0x1
<6>[ 3.910437] sec_chg_get_property: reg_data(93)
<6>[ 3.911044] max77804k_get_input_current: CHG_CNFG_09(0x12)
<3>[ 3.913437] [VIB] ++ max77804k_haptic_probe
<3>[ 3.913441] [VIB] -- max77804k_haptic_probe

The problem could come from the chip ?

Thx.