-
Notifications
You must be signed in to change notification settings - Fork 405
Add support for Galaxy S5 Active (SM-G870x) #569
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
base: main
Are you sure you want to change the base?
Conversation
lk2nd/device/dts/msm8974/samsung.dts
Outdated
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)>; | ||
}; | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
lk2nd/device/dts/msm8974/samsung.dts
Outdated
}; | ||
}; | ||
|
||
/* rev 01 */ |
There was a problem hiding this comment.
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
lk2nd/device/dts/msm8974/samsung.dts
Outdated
}; | ||
}; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lk2nd/device/dts/msm8974/samsung.dts
Outdated
}; | ||
|
||
&lk2nd { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kltecanactive { | ||
model = "Samsung Galaxy S5 Active (SM-G870x)"; | ||
compatible = "samsung,klteactivexx", "samsung,klte"; | ||
lk2nd,match-bootloader = "G870*"; |
There was a problem hiding this comment.
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.
#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 toqcom,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 :)