Skip to content

Commit

Permalink
Add support for Xiaomi Redmi 5 (rosy)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Vorvanin <[email protected]>
  • Loading branch information
Ivan Vorvanin authored and M0Rf30 committed Mar 15, 2024
1 parent d42b558 commit bbc9b74
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dts/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 13 additions & 11 deletions dts/sdm439-xiaomi-pine.dts
Original file line number Diff line number Diff line change
@@ -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__ {};
};
27 changes: 27 additions & 0 deletions dts/sdm450-xiaomi-rosy.dts
Original file line number Diff line number Diff line change
@@ -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";
};
};
};

0 comments on commit bbc9b74

Please sign in to comment.