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

Keys are working backwards #367

Open
applestr1x opened this issue Jun 20, 2024 · 2 comments
Open

Keys are working backwards #367

applestr1x opened this issue Jun 20, 2024 · 2 comments

Comments

@applestr1x
Copy link

Hello. I boot the image from fastboot mode, there is no problem, but after booting, I cannot start the process. I'm stuck on the start screen. When I press the volume up button it changes options. When I press the power button, it changes the option, but when I press the volume down button, it does not respond at all. Normally it should start when I press the power button. Can you fix the problem? Phone with MSM8939 chipset. Its brand is Vestel Venus v3 5570.

@TravMurav
Copy link
Member

Hi! This device probably have non-standard keys pins and it was never added to lk2nd, so lk2nd doesn't know how to handle it.
You will need to add a node for your device with the keys correctly defined, similar to this:

c50 {
model = "LG Leon LTE";
compatible = "lg,c50";
lk2nd,match-cmdline = "* model.name=LG-H34*";
lk2nd,dtb-files = "msm8916-lg-c50";
gpio-keys {
compatible = "gpio-keys";
vol-down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&tlmm 107 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
vol-up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&tlmm 108 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};

Note that gpio number values are device-specific, you may need to check downstream devicetree to find the correct ones.

You can find lk2nd specific dts documentation here: https://github.com/msm8916-mainline/lk2nd/blob/main/Documentation/dt-bindings.md

@wonderfulShrineMaidenOfParadise
Copy link
Contributor

Consider joining #msm8916-mainline:matrix.org for helps with porting.

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

No branches or pull requests

3 participants