Bug 208729

Summary: AXP288 no battery info on Cherrytrail Tablet
Product: Drivers Reporter: Tino S. (mailtinoshomepage)
Component: Platform_x86Assignee: drivers_platform_x86 (drivers_platform_x86)
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.7 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg | grep -i acpi
lsmod
acpidump

Description Tino S. 2020-07-28 23:02:03 UTC
Created attachment 290657 [details]
dmesg | grep -i acpi

I have a Cherrytrail-based tablet (Trekstor SurfTab twin 11.6) which shows no information about batery state / power management at all. It seems the right modules are loaded:

axp20x_pek             16384  0
axp288_fuel_gauge      28672  0
industrialio           94208  4 industrialio_triggered_buffer,kfifo_buf,axp288_fuel_gauge,bmc150_accel_core
axp20x_i2c             16384  0
regmap_i2c             16384  3 snd_soc_rt5651,axp20x_i2c,bmc150_accel_i2c
axp20x                 32768  1 axp20x_i2c
mfd_core               20480  2 axp20x,lpc_ich

But the directory /sys/class/power_supply is empty and the acpi tool also 

Related to AXP288 and ACPI the log shows this:
[   32.387720] ACPI: AC: found native INT33F4 PMIC, not loading
[   32.851507] ACPI: AC: found native INT33F4 PMIC, not loading

I attached the output of dmesg and lsmod and dmidecode.

If you need anything else please let me know.

Thanks,
Tino
Comment 1 Tino S. 2020-07-28 23:02:59 UTC
Created attachment 290659 [details]
lsmod
Comment 2 Tino S. 2020-08-07 09:15:41 UTC
Created attachment 290807 [details]
acpidump

This is acpi dump of the device
Comment 3 Tino S. 2020-08-08 15:35:39 UTC
This report is a follow-up of this:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964181
Comment 4 Tino S. 2020-08-18 20:43:57 UTC
We can close this as this is a config-related issue. With

CONFIG_I2C_DESIGNWARE_CORE=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_MFD_CORE=y
CONFIG_MFD_AXP20X=y
CONFIG_MFD_AXP20X_I2C=y
CONFIG_AXP288_ADC=m

it works as it should.