diff --git a/Documentation/devices.md b/Documentation/devices.md index 6683243a0..840792bc7 100644 --- a/Documentation/devices.md +++ b/Documentation/devices.md @@ -77,6 +77,7 @@ - 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 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) - Motorola Moto G5 (cedric) diff --git a/lk2nd/device/dts/msm8952/msm8917-huawei-agassi.dts b/lk2nd/device/dts/msm8952/msm8917-huawei-agassi.dts new file mode 100644 index 000000000..86ef5fe2e --- /dev/null +++ b/lk2nd/device/dts/msm8952/msm8917-huawei-agassi.dts @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/dts-v1/; + +#include +#include + + +/* + * This device is quirky. It excluded from generic build. + * To run lk2nd on this device you need to flash custom bootloader and unlock it. + * Read more https://wiki.postmarketos.org/wiki/Huawei_Mediapad_T3_10_(huawei-agassi)#Bootloader_unlocking + * + * Compile lk2nd with the following flags to run on this device + * LK2ND_ADTBS="msm8917-huawei-agassi.dtb" + * LK2ND_COMPATIBLE="huawei,agassi" + */ + +/ { + qcom,msm-id = ; + qcom,board-id = ; +}; + +&lk2nd { + /* + * There are 3 versions: + * - L-09 (Global) + * - L-03 (USA) + * - W-09 (WiFi only) + */ + + huawei-agassi { + model = "Huawei MediaPad T3 10 (agassi)"; + compatible = "huawei,agassi"; + lk2nd,dtb-files = "msm8917-huawei-agassi"; + }; +}; diff --git a/lk2nd/device/dts/msm8952/rules.mk b/lk2nd/device/dts/msm8952/rules.mk index 974f8e368..c5e73a85a 100644 --- a/lk2nd/device/dts/msm8952/rules.mk +++ b/lk2nd/device/dts/msm8952/rules.mk @@ -16,3 +16,7 @@ ADTBS += \ $(LOCAL_DIR)/msm8940-xiaomi-santoni.dtb \ $(LOCAL_DIR)/msm8956-mtp.dtb \ $(LOCAL_DIR)/msm8976-qrd.dtb \ + +DTBS += \ + $(LOCAL_DIR)/msm8917-huawei-agassi.dtb \ +