arm64: dts: qcom: sm6350: Add device tree for Sony Xperia 10 III
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Thu, 23 Sep 2021 16:22:02 +0000 (18:22 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 27 Sep 2021 22:21:29 +0000 (17:21 -0500)
commited1648d52a375e606a0c88f5bf65282686ae6541
treec02afbde1e993ecd55c738b4e2b0a7fa8b247fca
parent4ef13f7fe4cd9e29118e09597b4fdd721fd24c11
arm64: dts: qcom: sm6350: Add device tree for Sony Xperia 10 III

Add initial SM6350 SoC and Sony Xperia 10 III (PDX213, Lena platform) device
trees. There is no sign of another Lena devices on the horizon, so a common
DTSI is not created for now. 10 III features a Full HD OLED display and 5G
support, among other nice things like USB3.

The bootloader is VERY unpleasant, to get a bootable setup you have to run:

mkbootimg --kernel arch/arm64/boot/Image.gz --ramdisk [some initrd] \
--dtb arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dtb \
--cmdline "[some cmdline]" --base 0 --kernel_offset 0x8000 \
--ramdisk_offset 0x1000000 --dtb_offset 0x1f00000 --os_version 11 \
--os_patch_level "2021-08" --tags_offset 0x100 --pagesize 4096 \
--header_version 2 -o mainline.img

adb reboot bootloader

// You have to either pull vbmeta{"","_system"} from
// /dev/block/bootdevice/by-name/ or build one as a part of AOSP build process
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system \
vbmeta_system.img

fastboot flash boot mainline.img
fastboot erase dtbo // This will take approx 70s...
fastboot reboot

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210923162204.21752-16-konrad.dybcio@somainline.org
arch/arm64/boot/dts/qcom/Makefile
arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts [new file with mode: 0644]