Skip to content

Commit 8003f27

Browse files
committed
dts: msm8952: Add support for Huawei Honor 7A Pro
1 parent 979f138 commit 8003f27

File tree

4 files changed

+74
-5
lines changed

4 files changed

+74
-5
lines changed

Documentation/devices.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
- HMD Global Nokia 4.2 (panther)
8989
- HMD Global Nokia 5 (nd1)
9090
- HMD Global Nokia 6 (ple)
91-
- Huawei Honor 7C (aum-l41) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8937-huawei-aum.dts`)
91+
- Huawei Honor 7A Pro (aum-l29) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8937-huawei-aum-l29.dts`)
92+
- Huawei Honor 7C (aum-l41) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8937-huawei-aum-l41.dts`)
9293
- Huawei MediaPad T3 10 (ags- l09/l03/w09) (quirky - see comment in `lk2nd/device/dts/msm8952/msm8917-huawei-agassi.dts`)
9394
- Leeco s2
9495
- Lenovo K5 Play (l38011)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
3+
#include <skeleton64.dtsi>
4+
#include <lk2nd.dtsi>
5+
6+
/*
7+
* To flash lk2nd onto the device, you need to flash lk2nd as the
8+
* kernel and flash an empty image in place of the ramdisk.
9+
* To create an empty image use the following command:
10+
* 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"
11+
*
12+
* As this device has no boot partition, you'll have to create
13+
* one yourself.
14+
* To create the partition follow these steps:
15+
* ./parted /dev/block/mmcblk0
16+
* unit kB
17+
* resizepart 55 31209799kB
18+
* mkpart boot ext2 31209799kB 100%
19+
* quit
20+
* dd if=/dev/block/mmcblk0p41 of=/dev/block/mmcblk0p56 bs=1 seek=446 count=64
21+
*/
22+
23+
/ {
24+
qcom,msm-id = <QCOM_ID_MSM8937 0x00>;
25+
qcom,board-id = <8319 0>;
26+
};
27+
28+
&lk2nd {
29+
aum {
30+
model = "Huawei Honor 7A Pro (aum-l29)";
31+
compatible = "huawei,aum-l29";
32+
lk2nd,match-panel;
33+
34+
lk2nd,dtb-files = "msm8937-huawei-aum-l29";
35+
36+
gpio-keys {
37+
compatible = "gpio-keys";
38+
up {
39+
lk2nd,code = <KEY_VOLUMEUP>;
40+
gpios = <&tlmm 91 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
41+
};
42+
};
43+
44+
panel {
45+
compatible = "huawei,aum-l29-panel", "lk2nd,panel";
46+
47+
lcdkit_aum_l29_va_djn_cpt_ili9881c_5p7_hd_video {
48+
compatible = "huawei,aum-ili9881c";
49+
};
50+
lcdkit_aum_l29_va_djn_inx_ili9881c_5p7_hd_video {
51+
compatible = "huawei,aum-ili9881c";
52+
};
53+
lcdkit_aum_l29_va_ofilm_inx_ili9881c_5p7_hd_video {
54+
compatible = "huawei,aum-ili9881c";
55+
};
56+
lcdkit_aum_l29_va_tcl_csot_ft8613_5p7_hd_video {
57+
compatible = "huawei,aum-ft8613";
58+
};
59+
lcdkit_aum_l29_va_txd_hsd_hx8394f_5p7_hd_video {
60+
compatible = "huawei,aum-hx8394f";
61+
};
62+
lcdkit_aum_l29_va_txd_inx_hx8394f_5p7_hd_video {
63+
compatible = "huawei,aum-hx8394f";
64+
};
65+
};
66+
};
67+
};

lk2nd/device/dts/msm8952/msm8937-huawei-aum.dts renamed to lk2nd/device/dts/msm8952/msm8937-huawei-aum-l41.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
&lk2nd {
2929
aum {
3030
model = "Huawei Honor 7C (aum-l41)";
31-
compatible = "huawei,aum";
31+
compatible = "huawei,aum-l41";
3232
lk2nd,match-panel;
3333

34-
lk2nd,dtb-files = "msm8937-huawei-aum";
34+
lk2nd,dtb-files = "msm8937-huawei-aum-l41";
3535

3636
gpio-keys {
3737
compatible = "gpio-keys";
@@ -42,7 +42,7 @@
4242
};
4343

4444
panel {
45-
compatible = "huawei,aum-panel", "lk2nd,panel";
45+
compatible = "huawei,aum-l41-panel", "lk2nd,panel";
4646

4747
lcdkit_aum_l41_va_djn_cpt_ili9881c_5p7_hd_video {
4848
compatible = "huawei,aum-ili9881c";

lk2nd/device/dts/msm8952/rules.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ ADTBS += \
77
$(LOCAL_DIR)/msm8917-xiaomi-riva.dtb \
88
$(LOCAL_DIR)/msm8920-motorola-jeter.dtb \
99
$(LOCAL_DIR)/msm8920-mtp.dtb \
10-
$(LOCAL_DIR)/msm8937-huawei-aum.dtb \
10+
$(LOCAL_DIR)/msm8937-huawei-aum-l29.dtb \
11+
$(LOCAL_DIR)/msm8937-huawei-aum-l41.dtb \
1112
$(LOCAL_DIR)/msm8937-motorola-jeter.dtb \
1213
$(LOCAL_DIR)/msm8937-mtp.dtb \
1314
$(LOCAL_DIR)/msm8937-nokia-nd1.dtb \

0 commit comments

Comments
 (0)