Skip to content

Commit

Permalink
dts: msm8952: Add support for Motorola Moto G6 Play (XT1922-9, "jeter")
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgigena committed Dec 16, 2024
1 parent 0867892 commit 0f46ba0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions lk2nd/device/dts/msm8952/msm8920-motorola-jeter.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// SPDX-License-Identifier: BSD-3-Clause

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

/ {
qcom,msm-id = <QCOM_ID_MSM8920 0x00>;
qcom,board-id = <0x43 0x8000>,
<0x43 0x83a0>;

/*
* model is required by bootloader to pick dtb.
* The bootloader also crashes if model isn't present in every dtb. (see lk2nd.dtsi for more info)
* Build with: make TOOLCHAIN_PREFIX=arm-none-eabi- SIGN_BOOTIMG=1 LK2ND_ADTBS="msm8920-motorola-jeter.dtb" LK2ND_DTBS="" lk2nd-msm8952
*/

model = "jeter";
};

&lk2nd {
model = "Motorola Moto G6 Play (jeter) (MSM8920)";
compatible = "motorola,jeter";
lk2nd,match-device = "jeter";

lk2nd,dtb-files = "msm8937-motorola-jeter";

gpio-keys {
compatible = "gpio-keys";

up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&tlmm 91 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};

down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic_pon GPIO_PMIC_RESIN 1>;
};

power {
lk2nd,code = <KEY_POWER>;
gpios = <&pmic_pon GPIO_PMIC_RESIN 0>;
};
};

};
2 changes: 1 addition & 1 deletion lk2nd/device/dts/msm8952/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ADTBS += \
$(LOCAL_DIR)/msm8917-mtp.dtb \
$(LOCAL_DIR)/msm8917-xiaomi-rolex.dtb \
$(LOCAL_DIR)/msm8917-xiaomi-riva.dtb \
$(LOCAL_DIR)/msm8920-motorola-jeter.dtb \
$(LOCAL_DIR)/msm8937-huawei-aum.dtb \
$(LOCAL_DIR)/msm8937-motorola-jeter.dtb \
$(LOCAL_DIR)/msm8937-mtp.dtb \
Expand All @@ -19,4 +20,3 @@ ADTBS += \

DTBS += \
$(LOCAL_DIR)/msm8917-huawei-agassi.dtb \

0 comments on commit 0f46ba0

Please sign in to comment.