xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604)
Replace the old downstream port with a new aarch64 port running the
linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel.
Most of the functionality is working:
- USB Network
- Storage (eMMC, SD card)
- Display, brightness control
- Touchscreen, buttons
- IMU (accelerometer+gyroscope)
- Notification LED
- Sound (Speaker, Headphones, Microphones)
- WiFi, Bluetooth
- Modem (SMS, voice calls, mobile data)
Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet)
There are many variants of the device, so more changes to handle
differences between them may be needed in the future. For now,
the only relevant difference is the required modem firmware:
- wt88047 (global variant)
- wt86047 (China variant)
... have different kind of modems and they do not seem to work with
the firmware of the other one. The way this is handled in this device
package is that there is a separate kernel variant for both of them.
All other required firmware can be shared, and therefore there is no
differentiation needed when using the kernel variant without modem.
I renamed "wingtech-wt88047" to "xiaomi-wt88047".
My reasoning for that is the following:
- Wingtech is the ODM (original design manufacturer), they designed the
hardware and (probably) manufactured it. But postmarketOS port applies
to the combination of both hardware and firmware, and the firmware was
at least partially provided by Xiaomi.
- wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi
devices use "xiaomi", even though many from them were probably also
designed by Wingtech.
- We don't use the ODM hardware name for other devices either, e.g.
"wileyfox-crackling" would be "longcheer-l8150" with the same approach.
I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi
seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
|
|
|
# Reference: <https://postmarketos.org/deviceinfo>
|
|
|
|
# Please use double quotes only. You can source this file in shell scripts.
|
|
|
|
|
|
|
|
deviceinfo_format_version="0"
|
|
|
|
deviceinfo_name="Xiaomi Redmi 2"
|
|
|
|
deviceinfo_manufacturer="Xiaomi"
|
|
|
|
deviceinfo_codename="xiaomi-wt88047"
|
|
|
|
deviceinfo_year="2015"
|
2021-10-24 12:48:45 +00:00
|
|
|
deviceinfo_dtb="qcom/msm8916-wingtech-wt88047"
|
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604)
Replace the old downstream port with a new aarch64 port running the
linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel.
Most of the functionality is working:
- USB Network
- Storage (eMMC, SD card)
- Display, brightness control
- Touchscreen, buttons
- IMU (accelerometer+gyroscope)
- Notification LED
- Sound (Speaker, Headphones, Microphones)
- WiFi, Bluetooth
- Modem (SMS, voice calls, mobile data)
Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet)
There are many variants of the device, so more changes to handle
differences between them may be needed in the future. For now,
the only relevant difference is the required modem firmware:
- wt88047 (global variant)
- wt86047 (China variant)
... have different kind of modems and they do not seem to work with
the firmware of the other one. The way this is handled in this device
package is that there is a separate kernel variant for both of them.
All other required firmware can be shared, and therefore there is no
differentiation needed when using the kernel variant without modem.
I renamed "wingtech-wt88047" to "xiaomi-wt88047".
My reasoning for that is the following:
- Wingtech is the ODM (original design manufacturer), they designed the
hardware and (probably) manufactured it. But postmarketOS port applies
to the combination of both hardware and firmware, and the firmware was
at least partially provided by Xiaomi.
- wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi
devices use "xiaomi", even though many from them were probably also
designed by Wingtech.
- We don't use the ODM hardware name for other devices either, e.g.
"wileyfox-crackling" would be "longcheer-l8150" with the same approach.
I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi
seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
|
|
|
deviceinfo_append_dtb="true"
|
|
|
|
deviceinfo_arch="aarch64"
|
|
|
|
|
|
|
|
# Device related
|
2021-07-07 05:06:17 +00:00
|
|
|
deviceinfo_gpu_accelerated="true"
|
xiaomi-wt88047: add mainline port for Xiaomi Redmi 2 (MR 1604)
Replace the old downstream port with a new aarch64 port running the
linux-postmarketos-qcom-msm8916 close-to-mainline(TM) kernel.
Most of the functionality is working:
- USB Network
- Storage (eMMC, SD card)
- Display, brightness control
- Touchscreen, buttons
- IMU (accelerometer+gyroscope)
- Notification LED
- Sound (Speaker, Headphones, Microphones)
- WiFi, Bluetooth
- Modem (SMS, voice calls, mobile data)
Coming soon (hopefully): Battery/Charging, USB-OTG (not working yet)
There are many variants of the device, so more changes to handle
differences between them may be needed in the future. For now,
the only relevant difference is the required modem firmware:
- wt88047 (global variant)
- wt86047 (China variant)
... have different kind of modems and they do not seem to work with
the firmware of the other one. The way this is handled in this device
package is that there is a separate kernel variant for both of them.
All other required firmware can be shared, and therefore there is no
differentiation needed when using the kernel variant without modem.
I renamed "wingtech-wt88047" to "xiaomi-wt88047".
My reasoning for that is the following:
- Wingtech is the ODM (original design manufacturer), they designed the
hardware and (probably) manufactured it. But postmarketOS port applies
to the combination of both hardware and firmware, and the firmware was
at least partially provided by Xiaomi.
- wt88047 looks lonely with the "wingtech" vendor, when all other Xiaomi
devices use "xiaomi", even though many from them were probably also
designed by Wingtech.
- We don't use the ODM hardware name for other devices either, e.g.
"wileyfox-crackling" would be "longcheer-l8150" with the same approach.
I think the port is better visible as "xiaomi-wt88047" (too bad Xiaomi
seemingly did not have a proper codename for this device...)
2020-09-27 17:11:15 +00:00
|
|
|
deviceinfo_chassis="handset"
|
|
|
|
deviceinfo_keyboard="false"
|
|
|
|
deviceinfo_external_storage="true"
|
|
|
|
deviceinfo_screen_width="720"
|
|
|
|
deviceinfo_screen_height="1280"
|
|
|
|
deviceinfo_getty="ttyMSM0;115200"
|
|
|
|
|
|
|
|
# Bootloader related
|
|
|
|
deviceinfo_flash_method="fastboot"
|
|
|
|
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
|
|
|
|
deviceinfo_generate_bootimg="true"
|
|
|
|
deviceinfo_flash_offset_base="0x80000000"
|
|
|
|
deviceinfo_flash_offset_kernel="0x00080000"
|
|
|
|
deviceinfo_flash_offset_ramdisk="0x02000000"
|
|
|
|
deviceinfo_flash_offset_second="0x00f00000"
|
|
|
|
deviceinfo_flash_offset_tags="0x01e00000"
|
|
|
|
deviceinfo_flash_pagesize="2048"
|
|
|
|
deviceinfo_flash_sparse="true"
|
2023-12-12 20:21:17 +00:00
|
|
|
|
|
|
|
# Xiaomi Inc.
|
|
|
|
deviceinfo_usb_idVendor="0x2717"
|
|
|
|
# Mi/Redmi series (MTP)
|
|
|
|
deviceinfo_usb_idProduct="0xFF40"
|