mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 20:31:34 +07:00
3a52153975
This patch adds support to volume-up key found on the board. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
28 lines
507 B
Plaintext
28 lines
507 B
Plaintext
|
|
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
|
&pm8994_gpios {
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&ls_exp_gpio_f>;
|
|
|
|
ls_exp_gpio_f: pm8994_gpio5 {
|
|
pinconf {
|
|
pins = "gpio5";
|
|
output-low;
|
|
power-source = <2>; // PM8994_GPIO_S4, 1.8V
|
|
};
|
|
};
|
|
|
|
volume_up_gpio: pm8996_gpio2 {
|
|
pinconf {
|
|
pins = "gpio2";
|
|
function = "normal";
|
|
input-enable;
|
|
drive-push-pull;
|
|
bias-pull-up;
|
|
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
|
|
power-source = <PM8994_GPIO_S4>; // 1.8V
|
|
};
|
|
};
|
|
};
|