Skip to content

Commit

Permalink
dts: msm8226: add lg-madai
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Ogino <[email protected]>
  • Loading branch information
omasanori authored and TravMurav committed Aug 13, 2024
1 parent 356b3f9 commit dcb1795
Show file tree
Hide file tree
Showing 3 changed files with 30 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 @@ -121,6 +121,7 @@
- HTC One Mini 2 - memul (quirky - see comment in `lk2nd/device/dts/msm8226/msm8926-htc-memul.dts`)
- Huawei Ascend G6 4G - G6-L11 (quirky - see comment in `lk2nd/device/dts/msm8226/msm8926-huawei-g6-l11-vb.dts`)
- Huawei Watch - sturgeon
- LG Fx0 - madai
- LG G Watch R - lenok <!--(use `lk2nd-appended-dtb.img`)-->
- Motorola Moto G 2013 - falcon
- Motorola Moto G 4G 2013 - peregrine
Expand Down
28 changes: 28 additions & 0 deletions lk2nd/device/dts/msm8226/msm8926-lg-madai.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// SPDX-License-Identifier: BSD-3-Clause

#include <skeleton32.dtsi>
#include <lk2nd.dtsi>

/ {
qcom,msm-id = <QCOM_ID_MSM8926 0>;
qcom,board-id = <150 0>;
};

&lk2nd {
model = "LG Fx0";
compatible = "lg,madai";

// FIXME: lk2nd,dtb-files = "...";

gpio-keys {
compatible = "gpio-keys";
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&tlmm 106 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&tlmm 108 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};
1 change: 1 addition & 0 deletions lk2nd/device/dts/msm8226/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ QCDTBS += \
$(LOCAL_DIR)/msm8226-samsung.dtb \
$(LOCAL_DIR)/msm8926-htc-memul.dtb \
$(LOCAL_DIR)/msm8926-huawei-g6-l11-vb.dtb \
$(LOCAL_DIR)/msm8926-lg-madai.dtb \
$(LOCAL_DIR)/msm8926-samsung.dtb \
$(LOCAL_DIR)/msm8926-v2-720p-mtp.dtb \

Expand Down

0 comments on commit dcb1795

Please sign in to comment.