]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARM: dts: qcom: add device tree for Sony Xperia SP
authorAntony Kurniawan Soemardi <linux@smankusors.com>
Sun, 22 Jun 2025 18:26:50 +0000 (18:26 +0000)
committerBjorn Andersson <andersson@kernel.org>
Mon, 11 Aug 2025 22:57:00 +0000 (17:57 -0500)
commitd2f146b3dfbcc2550b9c805b49dab53b4babf2e8
tree389bbffcc797abbd9706801ae11f589fafc78232
parent3a99873d8b9f6c1ec027987fff7b32eab9273316
ARM: dts: qcom: add device tree for Sony Xperia SP

Add initial device tree support for the Sony Xperia SP (codename:
sony-huashan), a smartphone based on the Qualcomm MSM8960T SoC.

There are two variants of the Xperia SP, one without LTE and one with
LTE. This device tree should work for both variants, though it has only
been tested on the non-LTE variant.

The following are currently supported:
- Serial console support via gsbi8
- GPIO keys for volume up/down buttons
- PM8921 keypad with camera focus/capture keys
- eMMC (sdcc1) and micro SD card (sdcc3) support
- USB OTG support

Other hardware features are not yet implemented.

Booting notes:
Booting a kernel requires using the Sony ELF boot image format, which
embeds the kernel, ramdisk, RPM firmware, and cmdline. This can be
created using the `mkelf` tool. For example:

  python2 mkelf.py -o boot.img \
    kernel+dtb@0x80208000 \
    ramdisk.img@0x81900000 \
    RPM.bin@0x00020000,rpm \
    cmdline.txt@cmdline

The resulting `boot.img` can then be flashed via fastboot. A detailed
guide, including an alternative method, is available at:
https://wiki.postmarketos.org/wiki/Sony_Xperia_SP_(sony-huashan)

Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250623-msm8960-sdcard-v2-5-340a5e8f7df0@smankusors.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/Makefile
arch/arm/boot/dts/qcom/qcom-msm8960-sony-huashan.dts [new file with mode: 0644]