Skip to content

Commit

Permalink
dts: msm8226: Add HTC One Mini 2 (memul)
Browse files Browse the repository at this point in the history
In the current code the display is not drawn correctly, this is fixed
through PR #299.
  • Loading branch information
z3ntu committed Sep 15, 2023
1 parent e13be68 commit 42ef3f1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ page on the EFIDroid wiki for an exact mapping of LK targets to SoCs.
### lk2nd-msm8226
- ASUS ZenWatch 2 - sparrow
- Coolpad 8730L - 8730l
- HTC One Mini 2 - memul (quirky - see comment in `dts/msm8226/msm8926-htc-memul.dts`)
- Huawei Ascend G6 4G - G6-L11 (quirky - see comment in `dts/msm8226/msm8926-huawei-g6-l11-vb.dts`)
- Huawei Watch - sturgeon
- LG G Watch R - lenok (use `lk2nd-appended-dtb.img`)
Expand Down
32 changes: 32 additions & 0 deletions dts/msm8226/msm8926-htc-memul.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

/*
* Compile lk2nd with the following flags so that various lk2nd functionality
* works fine, e.g. fastboot oem lk_log && fastboot get_staged /dev/stdout
*
* SCRATCH_ADDR=0x20000000 SCRATCH_ADDR_512MAP=0x20000000 SCRATCH_SIZE_512MAP=0x10000000
*
* On this device the memory at 0x10000000 (default scratch memory address)
* allows writes but any read just returns zeroes. From Linux perspective this
* is reserved memory so we need to choose a different memory address.
*/

#include <skeleton.dtsi>
#include <lk2nd.h>

/ {
/* Actually htc,project-id */
qcom,msm-id = <293 0 0>;

memul {
model = "HTC One Mini 2";
compatible = "htc,memul", "qcom,msm8926", "lk2nd,device";
lk2nd,match-cmdline = "* mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_mem_lg_novatek_35521_720p_video *";

lk2nd,keys =
<KEY_VOLUMEDOWN 107 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>,
<KEY_VOLUMEUP 108 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};
1 change: 1 addition & 0 deletions dts/msm8226/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DTBS += \
$(LOCAL_DIR)/apq8026-samsung-r03.dtb \
$(LOCAL_DIR)/msm8226-motorola-falcon.dtb \
$(LOCAL_DIR)/msm8226-samsung-ms013g.dtb \
$(LOCAL_DIR)/msm8926-htc-memul.dtb \
$(LOCAL_DIR)/msm8926-huawei-g6-l11-vb.dtb \
$(LOCAL_DIR)/msm8926-samsung-r02.dtb \
$(LOCAL_DIR)/msm8926-v2-720p-mtp.dtb

0 comments on commit 42ef3f1

Please sign in to comment.