Skip to content

Commit

Permalink
Merge pull request #50 from barni2000/main
Browse files Browse the repository at this point in the history
xiaomi-ysl: Add Xiaomi Redmi S2/Y2 (ysl) support
  • Loading branch information
ultra-azu authored Jun 26, 2023
2 parents b869a44 + 556f3cf commit edd9058
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and then loaded by lk2nd.
- Xiaomi Redmi Note 4X Snapdragon - mido
- Xiaomi Redmi 4 Prime - markw
- Xiaomi Redmi Note 5 / 5 Plus Snapdragon - vince
- Xiaomi Redmi S2 / Y2 - ysl
- Meizu M6 Note - m1721
- Motorola Moto G7 Power - ocean
- Xiaomi Mi A2 Lite - daisy
Expand Down
29 changes: 29 additions & 0 deletions dts/msm8953-xiaomi-ysl.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

/include/ "msm8953.dtsi"

/ {
// This is used by the bootloader to find the correct DTB
qcom,msm-id = <293 0>;
qcom,board-id = <8 0>;

model = "Xiaomi Redmi S2/Y2 (ysl)";
compatible = "xiaomi,ysl", "qcom,msm8953", "lk2nd,device";
lk2nd,pstore = <0x9ff00000 0x00100000>;

panel {
compatible = "xiaomi,ysl-panel";

qcom,mdss_dsi_auo_hd720_video {
compatible = "xiaomi,ysl-ili7807d";
};
qcom,mdss_dsi_sc_ili9881c_hd720_video {
compatible = "xiaomi,ysl-ili9881c";
};
qcom,mdss_dsi_truly_hd720_video {
compatible = "xiaomi,ysl-hx8394f";
};
};
};
1 change: 1 addition & 0 deletions dts/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ DTBS += \
$(LOCAL_DIR)/msm8953-xiaomi-daisy.dtb \
$(LOCAL_DIR)/msm8953-xiaomi-vince.dtb \
$(LOCAL_DIR)/msm8953-xiaomi-markw.dtb \
$(LOCAL_DIR)/msm8953-xiaomi-ysl.dtb \
$(LOCAL_DIR)/msm8953-meizu-m1721.dtb \
$(LOCAL_DIR)/msm8953-motorola-potter.dtb \
$(LOCAL_DIR)/msm8953-tenor-holland.dtb \
Expand Down

0 comments on commit edd9058

Please sign in to comment.