diff --git a/Documentation/devices.md b/Documentation/devices.md index e8332dd6a..ec5e77f38 100644 --- a/Documentation/devices.md +++ b/Documentation/devices.md @@ -94,6 +94,7 @@ - Sony Xperia X - Sony Xperia X Compact - Wileyfox Swift 2 +- Xiaomi Mi Max (hydrogen) ### lk2nd-msm8953 diff --git a/lk2nd/device/dts/msm8952/msm8956-xiaomi-hydrogen.dts b/lk2nd/device/dts/msm8952/msm8956-xiaomi-hydrogen.dts new file mode 100644 index 000000000..fa8ab447f --- /dev/null +++ b/lk2nd/device/dts/msm8952/msm8956-xiaomi-hydrogen.dts @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + qcom,msm-id = ; + qcom,board-id = <25 0>; + + /* Bootloader requires those cpu nodes, or shuts device down */ + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@100 { + device_type = "cpu"; + reg = <0x100>; + }; + + cpu@101 { + device_type = "cpu"; + reg = <0x101>; + }; + + cpu@102 { + device_type = "cpu"; + reg = <0x102>; + }; + }; +}; + +&lk2nd { + model = "Mi Max (hydrogen)"; + compatible = "xiaomi,hydrogen"; + lk2nd,match-panel; + + lk2nd,dtb-files = "msm8956-xiaomi-hydrogen"; + + panel { + compatible = "xiaomi,hydrogen-panel", "lk2nd,panel"; + + qcom,mdss_dsi_auo_r61322_1080p_video { + compatible = "xiaomi,hydrogen-r61322-auo"; + }; + qcom,mdss_dsi_tianma_r63350_1080p_video { + compatible = "xiaomi,hydrogen-r63350-tianma"; + }; + }; +}; diff --git a/lk2nd/device/dts/msm8952/rules.mk b/lk2nd/device/dts/msm8952/rules.mk index ada946e33..b5275efea 100644 --- a/lk2nd/device/dts/msm8952/rules.mk +++ b/lk2nd/device/dts/msm8952/rules.mk @@ -16,6 +16,7 @@ ADTBS += \ $(LOCAL_DIR)/msm8940-oppo-a57.dtb \ $(LOCAL_DIR)/msm8940-xiaomi-santoni.dtb \ $(LOCAL_DIR)/msm8956-mtp.dtb \ + $(LOCAL_DIR)/msm8956-xiaomi-hydrogen.dtb \ $(LOCAL_DIR)/msm8976-qrd.dtb \ DTBS += \