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

Conversation

andrewgigena
Copy link
Contributor

Hello everyone, this pull request introduces device tree support for the Motorola Moto G6 Play (codenamed "jeter") on the MSM8952 platform, which utilizes the MSM8920 CPU (Snapdragon 427).

The DTS was handwritten based on downstream DTS extracted from unofficial TWRP images found on XDA and the official TWRP of G6 (non-play variant). Its functionality was tested and verified by @pryzhak, the device owner, via the Matrix community. The gpio-keys were explicitly set exactly as the downstream DTS, maybe we can strip down "down" and "power" keys after some more testing with @pryzhak.

Build command (needs bootsignature.py dependencies installed):

make TOOLCHAIN_PREFIX=arm-none-eabi- SIGN_BOOTIMG=1 LK2ND_ADTBS="msm8920-motorola-jeter.dtb" LK2ND_DTBS="" lk2nd-msm8952  

Below is a reference image for the device:
image

lk2nd/device/dts/msm8952/msm8920-motorola-jeter.dts Outdated Show resolved Hide resolved
gpios = <&pmic_pon GPIO_PMIC_RESIN 0>;
};
};

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

lk2nd/device/dts/msm8952/msm8937-motorola-jeter.dts Outdated Show resolved Hide resolved
lk2nd/device/dts/msm8952/rules.mk Outdated Show resolved Hide resolved
@andrewgigena andrewgigena force-pushed the msm8920-motorola-jeter branch from 0f46ba0 to fa3f72b Compare December 16, 2024 15:50
@andrewgigena andrewgigena force-pushed the msm8920-motorola-jeter branch from fa3f72b to 905ced4 Compare December 16, 2024 15:52
@andrewgigena andrewgigena marked this pull request as ready for review December 16, 2024 16:26
@andrewgigena
Copy link
Contributor Author

@TravMurav,

I have unchecked the draft option, so the PR is now ready to merge following the reviews. I have implemented the changes you suggested, and @pryzhak has tested it thoroughly. Everything appears to be functioning correctly across all menu options. However, the recovery option is still buggy—it returns to lk2nd instead of entering recovery mode as expected.

We verified the regulators, and the SD card's LDO11 is enabled, allowing booting from it (although this has not been tested). The buttons are functioning as intended.

Regarding the next v21, do you know if there are plans to autobuild for these devices? I am concerned it might not boot on his device due to the signing and single DTB option.

Copy link
Member

@TravMurav TravMurav left a comment

Choose a reason for hiding this comment

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

Regarding the next v21, do you know if there are plans to autobuild for these devices? I am concerned it might not boot on his device due to the signing and single DTB option.

For those cases my ""policy"" is to let the user to build quirky devices. Unfortunately, if you look at the devices.md file and the amount of "quirky" notes, if we were to build a custom image for each of those, it would be even bigger nightmare than letting user to run a command on their own.

Considering the thing was added without the quirky note, perhaps there is some configuration in which signing/single dtb is not needed? Could you confirm again that it doesn't boot with either signing or single-dtb disabled?

/*
* 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants