Xiaomi Redmi 5 Plus (xiaomi-vince)

From postmarketOS Wiki
Xiaomi Redmi 5 Plus
Xiaomi Redmi 5 Plus
Xiaomi Redmi 5 Plus
Manufacturer Xiaomi
Name Redmi 5 Plus
Codename xiaomi-vince
Released 2017
Type handset
Hardware
Chipset Qualcomm Snapdragon 625 (MSM8953)
CPU Octa-core Cortex-A53 2 GHz
GPU Adreno 506
Display 1080x2160 (403 PPI) IPS
Storage 32/64 GB
Memory 3/4 GB
Architecture aarch64
Software
Original software Android (MIUI)
Original version 8.1
postmarketOS
Category community
Pre-built images yes
postmarketOS kernel 6.8.2
Features
Flashing
Works
USB Networking
Works
Internal storage
Works
SD card
Works
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Partial
Camera
Partial
Camera Flash
Broken
IR TX
Broken
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Partial
Modem
Calls
Partial
SMS
Works
Mobile data
Partial
Miscellaneous
FDE
Works
USB OTG
Works
Sensors
Accelerometer
Works
Magnetometer
Partial
Ambient Light
Works
Proximity
Broken
Hall Effect
Works
Haptics
Works
This device is based on the Snapdragon 625.
See the SoC page for common tips, guides and troubleshooting steps

Maintainer(s)

  • M0Rf30

Users owning this device


Installation

Note Note: lk2nd is a hard dependency, without it the mainline kernel will not select the panel.
$ pmbootstrap init # choose Vendor: qcom Device codename: msm8953
$ pmbootstrap install
$ pmbootstrap flasher flash_lk2nd
$ pmbootstrap flasher flash_rootfs

How to enter flash mode

  • Stock Fastboot: Power on the device with both Power and Volume Down buttons
  • lk2nd Fastboot: Power on the device. After it vibrates, hold Volume Down
Note Note: Pressing the keys too early will cause the stock bootloader to handle the key combination. You will end up in the wrong Fastboot interface.
  • Recovery: Power on the device with both Power and Volume Up buttons

Audio

Speaker is not supported yet.

Parts

Modem

Modem works with ipa-lite on 6.7.0/main 1

Smart Speaker

To use the speaker, the device relies on:

Vendor Model
Texas Instruments tas2557 (some useful commits 1

2)

Seems to be very similar to tas2559

Fingerprint

Two drivers are available within downstream kernel.

These are not supported yet in mainline kernel.

Vendor Model
Fingerprint Cards AB FPC1020 (some useful commits 12)
Goodix GF3208

Sensors

Type Vendor Model
Accelerometer / Gyroscope STMicroelectronics LSM6DSL (on some variants) 1
Accelerometer / Gyroscope Bosch BMI120 (on some variants) 1
Magnetometer / Compass Asahi Kasei AK09918C 1
Ambient Light / Proximity Liteon Opto LTR579 ALS / PS (same ALS registers of Liteon LTRF216A 1 with no PS part)
Hall ROHM Semiconductor BU52061NVX (works as gpio key)

Touchscreen

Type Vendor Supported
RMI4 Synaptics Yes
NT36672 Novatek Partially (disabled in dts)

NT36672 can be enabled from lk2nd, manual build is needed. https://github.com/msm8916-mainline/lk2nd/blob/main/lk2nd/device/dts/msm8953/msm8953-xiaomi-vince.dts#L23-L47

//touchscreen-compatible = "syna,rmi4-i2c";
touchscreen-compatible = "novatek,nt36525-i2c";

Serial UART

Getting UART output on this device should be pretty straightforward, because pins for serial transfer (TX and RX) are exposed directly on motherboard and are even labeled.

Xiaomi-vince-uart.jpg

Vince-uart-pins-shem.png

See also: Serial debugging

See also