Skip to content

Commit

Permalink
dts: msm8952: Add Xiaomi Mi Max (hydrogen)
Browse files Browse the repository at this point in the history
Add msm8956 based xiaomi-hydrogen support.
  • Loading branch information
barni2000 authored and TravMurav committed Jan 3, 2025
1 parent 376edf6 commit 2422c80
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
- Sony Xperia X
- Sony Xperia X Compact
- Wileyfox Swift 2
- Xiaomi Mi Max (hydrogen)

### lk2nd-msm8953

Expand Down
49 changes: 49 additions & 0 deletions lk2nd/device/dts/msm8952/msm8956-xiaomi-hydrogen.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// SPDX-License-Identifier: BSD-3-Clause

#include <skeleton64.dtsi>
#include <lk2nd.dtsi>

/ {
qcom,msm-id = <QCOM_ID_MSM8956 0>;
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";
};
};
};
1 change: 1 addition & 0 deletions lk2nd/device/dts/msm8952/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 += \
Expand Down

0 comments on commit 2422c80

Please sign in to comment.