From cbf97d985a9a5cf773357ac68bc9ffad9b485708 Mon Sep 17 00:00:00 2001 From: bzy-080408 Date: Sun, 23 Apr 2023 02:49:46 +0800 Subject: [PATCH] dts: Add Huawei Maimang 5 / Nova (Plus) / G9 (Plus) Codename: milan --- README.md | 1 + dts/msm8953-huawei-milan.dts | 49 ++++++++++++++++++++++++++++++++++++ dts/rules.mk | 1 + 3 files changed, 51 insertions(+) create mode 100644 dts/msm8953-huawei-milan.dts diff --git a/README.md b/README.md index 140645385..1c0c7f532 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ and then loaded by lk2nd. - Xiaomi Mi A1 - tissot - XIaomi Mi A2 Lite - daisy - Samsung Galaxy Tab A2 XL WiFi (2018) - SM-T590 +- Huawei Maimang 5 / Nova (Plus) / G9 (Plus) - milan ## Installation 1. Download `lk2nd.img` (as of now there's no build available so you'll need to build it yourself.) diff --git a/dts/msm8953-huawei-milan.dts b/dts/msm8953-huawei-milan.dts new file mode 100644 index 000000000..c9a9db761 --- /dev/null +++ b/dts/msm8953-huawei-milan.dts @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Copyright (c) 2023, bzy-080408 + +/dts-v1/; + +/include/ "msm8953.dtsi" + +/ { + model = "Huawei Maimang 5 / Nova (Plus) / G9 (Plus)"; + compatible = "huawei,milan", "qcom,msm8953", "lk2nd,device"; + qcom,msm-id = <293 0x0>; + qcom,board-id = <8000 0>, <8001 0>, <8002 0>, <8003 0>, <8016 0>, + <8017 0>, <8018 0>, <8019 0>, <8032 0>, <8033 0>, + <8035 0>, <8048 0>, <8049 0>, <8050 0>, <8051 0>, + <8066 0>, <8064 0>, <8067 0>, <8080 0>, <8082 0>, + <8083 0>, <8098 0>, <8099 0>, <8114 0>, <8130 0>; + + panel { + compatible = "huawei,milan-panel"; + + qcom,mdss_dsi_boe_otm1906c_5p5_1080p_cmd { + compatible = "huawei,boe_otm1906c_5p5_1080p_cmd"; + }; + qcom,mdss_dsi_boe_td4322_5p5_1080p_cmd { + compatible = "huawei,boe_td4322_5p5_1080p_cmd"; + }; + qcom,mdss_dsi_boe_test1906c_5p5_1080p_cmd { + compatible = "huawei,boe_test1906c_5p5_1080p_cmd"; + }; + qcom,mdss_dsi_ctc_nt35596s_5p5_1080p_video { + compatible = "huawei,ctc_nt35596s_5p5_1080p_video"; + }; + qcom,mdss_dsi_ctc_otm1906c_5p5_1080p_cmd { + compatible = "huawei,ctc_otm1906c_5p5_1080p_cmd"; + }; + qcom,mdss_dsi_jdi_r63452_5p5_1080p_cmd { + compatible = "huawei,jdi_r63452_5p5_1080p_cmd"; + }; + qcom,mdss_dsi_tianma_fic8736_5p5_1080p_cmd { + compatible = "huawei,tianma_fic8736_5p5_1080p_cmd"; + }; + qcom,mdss_dsi_tianma_focal8716_5p5_1080p_video { + compatible = "huawei,tianma_focal8716_5p5_1080p_video"; + }; + qcom,mdss_dsi_tianma_otm1906c_5p5_1080p_cmd { + compatible = "huawei,tianma_otm1906c_5p5_1080p_cmd"; + }; + }; +}; diff --git a/dts/rules.mk b/dts/rules.mk index 36cc12420..06aaf357e 100644 --- a/dts/rules.mk +++ b/dts/rules.mk @@ -7,6 +7,7 @@ DTBS += \ endif ifeq ($(PROJECT), msm8953-secondary) DTBS += \ + $(LOCAL_DIR)/msm8953-huawei-milan.dtb \ $(LOCAL_DIR)/msm8953-meizu-m1721.dtb \ $(LOCAL_DIR)/msm8953-motorola-potter.dtb \ $(LOCAL_DIR)/msm8953-tenor-holland.dtb \