Package: linux-image-5.3.0-rc5-amd64 Version: 5.3~rc5-1~exp2 Severity: wishlist Tags: patch
HP x2 210 has an AXP288 PMIC. Battery driver is already enabled but not the charger one. Moreover, the ADC driver is needed to make them work. Also, this device uses the (now landed) CX2072X codec. Here is a proposed patch (against current debian linux git branch) which enables the necessary drivers. Thanks for all your work ;)
diff --git a/debian/config/kernelarch-x86/config b/debian/config/kernelarch-x86/config index cbf9193..e58a66b 100644 --- a/debian/config/kernelarch-x86/config +++ b/debian/config/kernelarch-x86/config @@ -454,6 +454,7 @@ CONFIG_EDAC_AMD8111=m ## file: drivers/extcon/Kconfig ## CONFIG_EXTCON=m +CONFIG_EXTCON_AXP288=m CONFIG_EXTCON_INTEL_CHT_WC=m ## @@ -703,6 +704,11 @@ CONFIG_KXCJK1013=m CONFIG_MMA9551=m CONFIG_MMA9553=m +## +## file: drivers/iio/adc/Kconfig +## +CONFIG_AXP288_ADC=m + ## ## file: drivers/iio/gyro/Kconfig ## @@ -1444,6 +1450,7 @@ CONFIG_PNP=y ## file: drivers/power/supply/Kconfig ## CONFIG_BATTERY_SBS=m +CONFIG_AXP288_CHARGER=m CONFIG_AXP288_FUEL_GAUGE=m CONFIG_BATTERY_MAX17042=m CONFIG_CHARGER_BQ24190=m @@ -2102,6 +2109,7 @@ CONFIG_SND_SOC_INTEL_CHT_BSW_RT5672_MACH=m CONFIG_SND_SOC_INTEL_CHT_BSW_RT5645_MACH=m CONFIG_SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH=m CONFIG_SND_SOC_INTEL_CHT_BSW_NAU8824_MACH=m +CONFIG_SND_SOC_INTEL_BYT_CHT_CX2072X_MACH=m CONFIG_SND_SOC_INTEL_BYT_CHT_DA7213_MACH=m CONFIG_SND_SOC_INTEL_BYT_CHT_ES8316_MACH=m # CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH is not set