Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dts: msm8952: Add support for Motorola Moto G6 Play (XT1922-9, "jeter") #464

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions lk2nd/device/dts/msm8952/msm8920-motorola-jeter.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update the devices.md file to note this one is quirky?

*/

model = "jeter";
};

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

lk2nd,dtb-files = "msm8920-motorola-jeter";
};
6 changes: 4 additions & 2 deletions lk2nd/device/dts/msm8952/msm8937-motorola-jeter.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@
/ {
qcom,msm-id = <QCOM_ID_MSM8937 0x00>;
qcom,board-id = <0x4A 0x8100>,
<0x4A 0x8000>;
<0x4A 0x8000>,
<0x4B 0x8000>;

/*
* 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="msm8937-motorola-jeter.dtb" LK2ND_DTBS="" lk2nd-msm8952
*/

model = "jeter";
};

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

Expand Down
1 change: 1 addition & 0 deletions 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 Down
Loading