Commit bd7dd79c authored by satya priya's avatar satya priya Committed by Bjorn Andersson

arm64: dts: qcom: sc7280: Add volume up support for sc7280-idp

Add pm7325 PMIC gpio support for vol+ on sc7280-idp.
Signed-off-by: default avatarsatya priya <skakit@codeaurora.org>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1631877040-26587-1-git-send-email-skakit@codeaurora.org
parent 7a5fca95
......@@ -7,11 +7,32 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
#include <dt-bindings/input/linux-event-codes.h>
#include "sc7280.dtsi"
#include "pm7325.dtsi"
#include "pm8350c.dtsi"
#include "pmk8350.dtsi"
/ {
gpio-keys {
compatible = "gpio-keys";
label = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&key_vol_up_default>;
volume-up {
label = "volume_up";
gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEUP>;
gpio-key,wakeup;
debounce-interval = <15>;
linux,can-disable;
};
};
};
&apps_rsc {
pm7325-regulators {
compatible = "qcom,pm7325-rpmh-regulators";
......@@ -288,6 +309,17 @@ &usb_2_hsphy {
/* PINCTRL - additions to nodes defined in sc7280.dtsi */
&pm7325_gpios {
key_vol_up_default: key-vol-up-default {
pins = "gpio6";
function = "normal";
input-enable;
bias-pull-up;
power-source = <0>;
qcom,drive-strength = <3>;
};
};
&qup_uart5_default {
tx {
pins = "gpio46";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment