Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b16b2ef4 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: qcom: enable volmeup key on scuba"

parents 82a21a16 8e1a475b
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1015,5 +1015,19 @@
				output-low;
			};
		};

		gpio_vol_up: gpio_vol_up {
			mux {
				pins = "gpio96";
				function = "gpio";
			};

			config {
				pins = "gpio96";
				drive-strength = <2>;
				bias-pull-up;
				input-enable;
			};
		};
	};
};
+19 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
#include <dt-bindings/msm/msm-bus-ids.h>
#include <dt-bindings/gpio/gpio.h>

#define MHZ_TO_MBPS(mhz, w) ((mhz * 1000000 * w) / (1024 * 1024))
#define BW_OPP_ENTRY(mhz, w) opp-mhz {opp-hz = /bits/ 64 <MHZ_TO_MBPS(mhz, w)>;}
@@ -1978,6 +1979,24 @@
	status = "ok";
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&gpio_vol_up>;

		vol_up {
			label = "vol_up";
			gpios = <&tlmm 96 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <KEY_VOLUMEUP>;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};

#include "scuba-pm.dtsi"
#include "scuba-sde.dtsi"
#include "scuba-sde-pll.dtsi"