Jump to content

MediaTek Helio P23 (MT6763)

From postmarketOS Wiki
Revision as of 18:30, 23 July 2022 by Deathmist (talk | contribs) (Devices: Fix finding devices with MT6763* chipsets)
MediaTek MT6763
Manufacturer MediaTek
Name MT6763
Architecture aarch64
CPU 8x 2.0 GHz Cortex-A53
GPU ARM Mali-G71 MP2 (Bifrost) @ 770 MHz
Year 2017
Process 16nm
Mainline no
Components
CPU
Broken
UART
Works
Storage
Broken
USB
Broken
Display
Broken
GPU
Broken
Pinctrl
Broken
I²C
Broken
SPI
No data
Audio
Broken
Video
Broken
Thermal
Broken
WiFi
Broken
Bluetooth
Broken
Modem
Broken
GPS
Broken
Camera
Broken
NPU
No data
Suspend
Broken
Ethernet
No data
SATA
No data


MT6763 (or Helio P23) is a mid-range MediaTek SoC released in 2017.

Devices

Device Codename Mainline
Volla Phone volla-yggdrasil Y

Booting

Currently this SoC can only boot with a CPUXGPT timer patch, now in linux-next and setting maxcpus=1 in kernel cmdline.

DTBO

If your device has a dtbo partition like the Volla Phone (volla-yggdrasil) you'll have to figure out the bare minimum DTBO contents required to boot mainline with minimal DTS changes which typically consists of grabbing at least the gpio_init_default from the decompiled downstream /sys/firmware/fdt flattened DTB and making a minimal DTBO for usage with mainline.

UART

UART output from the kernel can be enabled by setting CONFIG_SERIAL_8250_MT6577=y in your config and including earlycon=mtk8250,0x11002000 console=ttyS0,921600n1 on the cmdline.

Mainline workflow

With UART hooked up simply plugging in USB as well powers on the device automatically. By pairing this with flashing using mtkclient you easily at any point after flashing power off the device by just unplugging the USB cable, and reboot it by plugging it in again.

To power off without flashing anything you can run e.g. mtk printgpt and unplug the device after successful execution of the command.

Letting the ATF (ARM Trusted Firmware) watchdog still strategically reboot the device automatically ~10 seconds after booting by disabling its devicetree node can also be helpful with the quick flash, test and repeat cycle while getting all the logs you'd want over UART.

Pending patches

MediaTek Helio P23 (MT6763) SoC uses the MT6370 PMIC which there is a pending patch series for on the linux-mediatek mailing list that seems to include plenty of great functionality (yet to be tested on MT6763).