Skip to content

Conversation

DavPow16
Copy link

#55 (comment)

Hello,
Thanks to this comment I was able to get lk2nd working on my Canadian Galaxy S5 Active (SM-G870W).
I guess it should work on other variants of the S5 Active but I have no way of testing.

SoC revision of my particular unit was 1 so adding this to qcom,msm-id got it working.

This is literally my first time forking/pulling anything on GitHub and I am also not a programmer so please let me know if I did anything wrong or if you need more info :)

IMG_20250810_142056

Comment on lines 155 to 175
model = "Samsung Galaxy S5 Active (SM-G870x)";
compatible = "samsung,klteactivexx", "samsung,klte";
lk2nd,match-bootloader = "G870*";
lk2nd,dtb-files = "msm8974pro-samsung-klte";

gpio-keys {
compatible = "gpio-keys";
home {
lk2nd,code = <KEY_HOME>;
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&pmic 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};
Copy link
Contributor

@wonderfulShrineMaidenOfParadise wonderfulShrineMaidenOfParadise Aug 22, 2025

Choose a reason for hiding this comment

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

Suggested change
model = "Samsung Galaxy S5 Active (SM-G870x)";
compatible = "samsung,klteactivexx", "samsung,klte";
lk2nd,match-bootloader = "G870*";
lk2nd,dtb-files = "msm8974pro-samsung-klte";
gpio-keys {
compatible = "gpio-keys";
home {
lk2nd,code = <KEY_HOME>;
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&pmic 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};
model = "Samsung Galaxy S5 Active (SM-G870x)";
compatible = "samsung,klteactivexx", "samsung,klte";
lk2nd,match-bootloader = "G870*";
lk2nd,dtb-files = "msm8974pro-samsung-klte";
gpio-keys {
compatible = "gpio-keys";
home {
lk2nd,code = <KEY_HOME>;
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&pmic 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};

Use tabs for indents.

};
};

/* rev 01 */

Choose a reason for hiding this comment

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

rev 01 is supposed to be put before rev 10 and rev 14

};
};
};

Choose a reason for hiding this comment

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

Suggested change

};

&lk2nd {

Choose a reason for hiding this comment

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

Suggested change

kltecanactive {
model = "Samsung Galaxy S5 Active (SM-G870x)";
compatible = "samsung,klteactivexx", "samsung,klte";
lk2nd,match-bootloader = "G870*";
Copy link
Member

Choose a reason for hiding this comment

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

The indentation is a bit broken here.. I'd appreciate if you could tab the contents of the node out and correct the last closing bracket accordingly.

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.

3 participants