diff --git a/README.md b/README.md index cb583ce73..d144b04e8 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ and then loaded by lk2nd. - Xiaomi Redmi 4X - santoni - Xiaomi Redmi Note 4X Snapdragon - mido - Xiaomi Redmi 4 Prime - markw +- Xiaomi Redmi 5 - rosy - Xiaomi Redmi Note 5 / 5 Plus Snapdragon - vince - Xiaomi Redmi S2 / Y2 - ysl - Xiaomi Redmi 6 Pro - sakura diff --git a/dts/rules.mk b/dts/rules.mk index c36d90af9..fbe2eb37e 100644 --- a/dts/rules.mk +++ b/dts/rules.mk @@ -19,6 +19,7 @@ DTBS += \ $(LOCAL_DIR)/msm8953-xiaomi-ysl.dtb \ $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ $(LOCAL_DIR)/sdm450-samsung-r05.dtb \ + $(LOCAL_DIR)/sdm450-xiaomi-rosy.dtb \ $(LOCAL_DIR)/sdm632-fairphone-fp3.dtb \ $(LOCAL_DIR)/sdm632-motorola-ocean.dtb \ $(LOCAL_DIR)/sdm632-xiaomi-onclite.dtb diff --git a/dts/sdm439-xiaomi-pine.dts b/dts/sdm439-xiaomi-pine.dts index 40dc158de..141cbfd16 100644 --- a/dts/sdm439-xiaomi-pine.dts +++ b/dts/sdm439-xiaomi-pine.dts @@ -1,19 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0-only + /dts-v1/; /include/ "msm8952.dtsi" / { - compatible = "qcom,sdm439", "xiaomi,pine", "lk2nd,device"; - model = "Xiaomi Redmi 7A"; - qcom,msm-id = <353 0x00>; - qcom,board-id = <0xb 2>; + compatible = "qcom,sdm439", "xiaomi,pine", "lk2nd,device"; + model = "Xiaomi Redmi 7A"; + qcom,msm-id = <353 0x00>; + qcom,board-id = <0xb 2>; - // Bootloader won't continue if it can't delete some nodes from below - soc { - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x0 0x0 0x0 0xffffffff>; - }; + // Bootloader won't continue if it can't delete some nodes from below + soc { + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x0 0xffffffff>; + }; - __symbols__ {}; + __symbols__ {}; }; diff --git a/dts/sdm450-xiaomi-rosy.dts b/dts/sdm450-xiaomi-rosy.dts new file mode 100644 index 000000000..2228f779a --- /dev/null +++ b/dts/sdm450-xiaomi-rosy.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +/include/ "msm8953.dtsi" + +/ { + qcom,board-id = <0x1000b 1>; + qcom,msm-id = <338 0x0>; + + model = "Xiaomi Redmi 5 (rosy)"; + compatible = "xiaomi,rosy", "qcom,msm8953", "lk2nd,device"; + + panel { + compatible = "xiaomi,rosy-panel"; + + qcom,mdss_dsi_ft8613_ebbg_5p7_720p_video { + compatible = "xiaomi,rosy-ft8613-ebbg"; + }; + qcom,mdss_dsi_ft8613_csot_5p7_720p_video { + compatible = "xiaomi,rosy-ft8613-csot"; + }; + qcom,mdss_dsi_ft8606m_boe_5p7_720p_video { + compatible = "xiaomi,rosy-ft8006m-boe"; + }; + }; +};