Jump to content

Qualcomm Snapdragon 820/821 (MSM8996): Difference between revisions

From postmarketOS Wiki
Tooniis (talk | contribs)
Page revamp
Tooniis (talk | contribs)
Line 112: Line 112:


== See also ==
== See also ==
* [https://gitlab.com/msm8996-mainline/linux-msm8996 msm8996-mainline] a common near-mainline kernel tree for MSM8996 devices. Currently supports the [https://wiki.postmarketos.org/wiki/OnePlus_3T_(oneplus-oneplus3t) OnePlus 3/3T], and (partially?) the ZTE Axon 7.
* [https://gitlab.com/msm8996-mainline/linux-msm8996 msm8996-mainline] a common near-mainline kernel tree for MSM8996 devices. Currently supports [https://wiki.postmarketos.org/wiki/OnePlus_3T_(oneplus-oneplus3t) OnePlus 3/3T], [https://wiki.postmarketos.org/wiki/Xiaomi_Mi_Note_2_(xiaomi-scorpio) Xiaomi Mi Note 2], and (partially?) the ZTE Axon 7.
* [[Xiaomi_Mi_Note_2_(xiaomi-scorpio)#Mainline]]
* [[Xiaomi_Mi_Note_2_(xiaomi-scorpio)#Mainline]]



Revision as of 12:31, 27 March 2021

Qualcomm MSM8996
Manufacturer Qualcomm
Name MSM8996
Codenames msmthulium/apqthulium
Architecture aarch64
CPU 2x 2.2/2.3 GHz Kryo, 2x 1.6 GHz Kryo
GPU Adreno 530
Year 2016
Process 14nm
Mainline yes
Components
CPU
Partial
UART
Works
Storage
Partial
USB
Works
Display
Works
GPU
Works
Pinctrl
Works
I²C
Works
SPI
No data
Audio
Works
Video
No data
Thermal
Works
Modem
No data
GPS
No data
Camera
No data
NPU
No data
Suspend
No data
Ethernet
No data
SATA
No data


MSM8996/APQ8096 (or Snapdragon 820) is a Qualcomm SoC released in 2016, with great mainline support orginally added for the Dragonboard 820c. There is also a slightly higher clocked (and supposedly less problematic architecture-wise) MSM8996Pro also known as Snapdragon 821.

Devices

APQ8096(SG) (Snapdragon 820E, WiFi-only)

No results

MSM8996 (Snapdragon 820)

No results

MSM8996Pro (Snapdragon 821)

No results

Booting

On at least the Xiaomi Mi Note 2, some IOMMU hacks (1, 2) are needed to let it to boot properly. Otherwise it would crash and reboot as soon as the MDP SMMU is probed.

Display

Mainline is missing DSI device tree nodes at the moment but there are patches that add them, one of which is in the SoC common mainline fork, and another one is in the mailing lists. Picking one of these patches and adding a panel node (and a driver if not supported yet) should be all that's needed to bring the display up.

A better starting point however would be to add a simple framebuffer that makes use of the framebuffer setup by the bootloader for continuous splash. This also allows getting some kernel output on the display earlier in the boot process. You can find the memory address of this framebuffer in a reserved memory node named cont_splash_mem or similar in downstream dts.

USB

Enabling usb3 or usb2 depending on which one the USB port is connected to should be enough to make USB work, although forcing it to peripheral mode might be needed before adding support for extcon:

MSM8996 USB peripheral mode configuration

Some devices have a USB 2.0 port wired to usb3. In this case it must be limited to high-speed and have usb3phy removed from it:

MSM8996 USB 2.0 configuration

Haptics

Haptics are supported, see Haptics for more details.

See also

Who's working on it

Note Please add yourself if you're working on MSM8996 mainlining!