Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Documentation/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
- HMD Global Nokia 4.2 (panther)
- HMD Global Nokia 5 (nd1)
- HMD Global Nokia 6 (ple)
- Huawei Honor 7C (aum-l41) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8937-huawei-aum.dts`)
- Huawei Honor 7A Pro (autumn-l29) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8937-huawei-autumn-l29.dts`)
- Huawei Honor 7C (autumn-l41) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8937-huawei-autumn-l41.dts`)
- Huawei MediaPad T3 10 (ags- l09/l03/w09) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8917-huawei-agassi.dts`)
- Leeco s2
- Lenovo K5 Play (l38011)
Expand Down
67 changes: 67 additions & 0 deletions lk2nd/device/dts/msm8952/msm8937-huawei-autumn-l29.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// SPDX-License-Identifier: BSD-3-Clause

#include <skeleton64.dtsi>
#include <lk2nd.dtsi>

/*
* To flash lk2nd onto the device, you need to flash lk2nd as the
* kernel and flash an empty image in place of the ramdisk.
* To create an empty image use the following command:
* mkbootimg --kernel /dev/null --ramdisk /dev/null --base 0x80000000 --kernel_offset 0x00008000 --ramdisk_offset 0x02000000 --second_offset 0x00f00000 --tags_offset 0x00000100 --pagesize 2048 --header_version 0 -o ramdisk.img"
*
* As this device has no boot partition, you'll have to create
* one yourself.
* To create the partition follow these steps:
* ./parted /dev/block/mmcblk0
* unit kB
* resizepart 55 31209799kB
* mkpart boot ext2 31209799kB 100%
* quit
* dd if=/dev/block/mmcblk0p41 of=/dev/block/mmcblk0p56 bs=1 seek=446 count=64
*/

/ {
qcom,msm-id = <QCOM_ID_MSM8937 0x00>;
qcom,board-id = <8319 0>;
};

&lk2nd {
autumn-l29 {
model = "Huawei Honor 7A Pro (autumn-l29)";
compatible = "huawei,autumn-l29";
lk2nd,match-panel;

lk2nd,dtb-files = "msm8937-huawei-autumn-l29";

gpio-keys {
compatible = "gpio-keys";
up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&tlmm 91 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};

panel {
compatible = "huawei,autumn-l29-panel", "lk2nd,panel";

lcdkit_aum_l29_va_djn_cpt_ili9881c_5p7_hd_video {
compatible = "huawei,autumn-ili9881c";
};
lcdkit_aum_l29_va_djn_inx_ili9881c_5p7_hd_video {
compatible = "huawei,autumn-ili9881c";
};
lcdkit_aum_l29_va_ofilm_inx_ili9881c_5p7_hd_video {
compatible = "huawei,autumn-ili9881c";
};
lcdkit_aum_l29_va_tcl_csot_ft8613_5p7_hd_video {
compatible = "huawei,autumn-ft8613";
};
lcdkit_aum_l29_va_txd_hsd_hx8394f_5p7_hd_video {
compatible = "huawei,autumn-hx8394f";
};
lcdkit_aum_l29_va_txd_inx_hx8394f_5p7_hd_video {
compatible = "huawei,autumn-hx8394f";
};
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
*/

/ {
qcom,msm-id = <QCOM_ID_MSM8937 0x8192>;
qcom,msm-id = <QCOM_ID_MSM8937 0x00>;
qcom,board-id = <8331 0>;
};

&lk2nd {
aum {
model = "Huawei Honor 7C (aum-l41)";
compatible = "huawei,aum";
autumn-l41 {
model = "Huawei Honor 7C (autumn-l41)";
compatible = "huawei,autumn-l41";
lk2nd,match-panel;

lk2nd,dtb-files = "msm8937-huawei-aum";
lk2nd,dtb-files = "msm8937-huawei-autumn-l41";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide the link to where this device tree is, which explains why you have changed this line?

Copy link
Author

@artempeshkov artempeshkov Nov 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no such device tree in mainline yet, but, I changed it because there are two models with different hardware with the codename "autumn": AUM-L29 and AUM-L41, so they will need to have different mainline dtbs, and because aum is not the actual codename of these models.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mainline device trees matters, so I am afraid that splitting them is not much point there to do so.

Single msm8937-huawei-autumn should be all we need at the moment.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing an existing dtb hint may break someone's booting device, if they use a close-to-mainline fork with that dtb name and/or panel compatibles below. You should avoid that whenever possible and align with whoever maintains the other device to make sure there is no breakage.

+CC @FrostI7Alex

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that there should be only one msm8937-huawei-autumn, and at the moment there are no published device trees for them in the mainline msm89x7 fork. I didn't consider other models back then, so changing a dtb hint should be the case here.
Also, not exactly sure where you got "autumn" from, but I haven't dug deep enough for its codename, so maybe it is.

Copy link
Contributor

@barni2000 barni2000 Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aum is abbrevation for autumn https://phonedb.net/index.php?m=device&id=14016&c=huawei_honor_7a_pro_dual_sim_lte_emea_aum-l29__huawei_autumn

All huawei codname abbrevation have a full name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the two board is different i would still prefer to split the dt msm8937-huawei-autumn-l29 and msm8937-huawei-autumn-l41 would be better.


gpio-keys {
compatible = "gpio-keys";
Expand All @@ -42,25 +42,25 @@
};

panel {
compatible = "huawei,aum-panel", "lk2nd,panel";
compatible = "huawei,autumn-l41-panel", "lk2nd,panel";

lcdkit_aum_l41_va_djn_cpt_ili9881c_5p7_hd_video {
compatible = "huawei,aum-ili9881c";
compatible = "huawei,autumn-ili9881c";
};
lcdkit_aum_l41_va_djn_inx_ili9881c_5p7_hd_video {
compatible = "huawei,aum-ili9881c";
compatible = "huawei,autumn-ili9881c";
};
lcdkit_aum_l41_va_ofilm_inx_ili9881c_5p7_hd_video {
compatible = "huawei,aum-ili9881c";
compatible = "huawei,autumn-ili9881c";
};
lcdkit_aum_l41_va_tcl_csot_ft8613_5p7_hd_video {
compatible = "huawei,aum-ft8613";
compatible = "huawei,autumn-ft8613";
};
lcdkit_aum_l41_va_txd_hsd_hx8394f_5p7_hd_video {
compatible = "huawei,aum-hx8394f";
compatible = "huawei,autumn-hx8394f";
};
lcdkit_aum_l41_va_txd_inx_hx8394f_5p7_hd_video {
compatible = "huawei,aum-hx8394f";
compatible = "huawei,autumn-hx8394f";
};
};
};
Expand Down
3 changes: 2 additions & 1 deletion lk2nd/device/dts/msm8952/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ADTBS += \
$(LOCAL_DIR)/msm8917-xiaomi-riva.dtb \
$(LOCAL_DIR)/msm8920-motorola-jeter.dtb \
$(LOCAL_DIR)/msm8920-mtp.dtb \
$(LOCAL_DIR)/msm8937-huawei-aum.dtb \
$(LOCAL_DIR)/msm8937-huawei-autumn-l29.dtb \
$(LOCAL_DIR)/msm8937-huawei-autumn-l41.dtb \
$(LOCAL_DIR)/msm8937-motorola-jeter.dtb \
$(LOCAL_DIR)/msm8937-mtp.dtb \
$(LOCAL_DIR)/msm8937-nokia-nd1.dtb \
Expand Down