community/linux-edge: enable drivers for x86-android-tablets
Linux 5.18 introduced better support for some x86-based Android tablets, thanks to work from Hans de Goede. (See e.g. https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.18-More-x86-Tablets)
One of them, the ASUS MeMO Pad 7 is supported by postmarketOS and currently runs a fairly old fork of LTS based on Linux 5.4. Instead of updating that fork I would like to use linux-edge
from Alpine. However, to enable full functionality of the tablet additional kernel drivers are needed.
I have tested with the following kernel config changes and it works quite well. I used =m
where possible but some of the options can only be =y
:
# Bluetooth
CONFIG_SERIAL_DEV_BUS=y
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
CONFIG_SERIAL_8250_DW=m
CONFIG_BT_HCIUART_BCM=y
# =m -> =y needed for CONFIG_INTEL_SOC_PMIC
CONFIG_I2C=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_INTEL_SOC_PMIC=y
CONFIG_BYTCRC_PMIC_OPREGION=y
CONFIG_GPIO_CRYSTAL_COVE=m
CONFIG_DW_DMAC=m
CONFIG_X86_ANDROID_TABLETS=m
# Display brightness control
CONFIG_PWM_CRC=y
# Keys
CONFIG_KEYBOARD_GPIO=m
CONFIG_INPUT_SOC_BUTTON_ARRAY=m
# USB
CONFIG_USB_ULPI_BUS=m
CONFIG_USB_DWC3=m
CONFIG_USB_DWC3_ULPI=y
CONFIG_PHY_TUSB1210=m
CONFIG_EXTCON_INTEL_INT3496=m
# USB gadget (used e.g. for SSH via USB in postmarketOS)
CONFIG_USB_GADGET=m
CONFIG_USB_CONFIGFS=m
CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_USB_CONFIGFS_RNDIS=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_F_HID=y
# Battery/charging for ASUS MeMO Pad 7
CONFIG_BATTERY_UG3105=m
CONFIG_CHARGER_BQ24190=m
# Sensors for ASUS MeMO Pad 7
CONFIG_KXCJK1013=m
CONFIG_AK8975=m
@mps It would be nice if you could enable those in one of the next updates. :)