diff --git a/lk2nd/device/dts/msm8952/msm8920-motorola-jeter.dts b/lk2nd/device/dts/msm8952/msm8920-motorola-jeter.dts new file mode 100644 index 000000000..afe46b34c --- /dev/null +++ b/lk2nd/device/dts/msm8952/msm8920-motorola-jeter.dts @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + qcom,msm-id = ; + 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 = ; + gpios = <&tlmm 91 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + + down { + lk2nd,code = ; + gpios = <&pmic_pon GPIO_PMIC_RESIN 1>; + }; + + power { + lk2nd,code = ; + gpios = <&pmic_pon GPIO_PMIC_RESIN 0>; + }; + }; + +}; diff --git a/lk2nd/device/dts/msm8952/rules.mk b/lk2nd/device/dts/msm8952/rules.mk index c5e73a85a..3f77e5bdf 100644 --- a/lk2nd/device/dts/msm8952/rules.mk +++ b/lk2nd/device/dts/msm8952/rules.mk @@ -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 \ @@ -19,4 +20,3 @@ ADTBS += \ DTBS += \ $(LOCAL_DIR)/msm8917-huawei-agassi.dtb \ -