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

Commit 4949eb10 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

ARM: dts: msm: add gpio_key devices for buttons on Kona MTP, CDP and QRD



Add pinctrl configurations for home and volume up buttons which utilize
PM8150 GPIOs 1 and 6 respectively. Add gpio_key devices for these
buttons on Kona MTP, CDP and QRD targets.

Change-Id: Ia05625ddc4948130ce96e49ac20d53446c1259f4
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 5f23998b
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -59,6 +59,37 @@
	status = "ok";
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";

		pinctrl-names = "default";
		pinctrl-0 = <&key_home_default
			     &key_vol_up_default>;

		home {
			label = "home";
			gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <KEY_HOME>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};

		vol_up {
			label = "volume_up";
			gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <KEY_VOLUMEUP>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};

&vendor {
	bluetooth: bt_qca6390 {
		compatible = "qca,qca6390";
+20 −0
Original line number Diff line number Diff line
@@ -59,6 +59,26 @@
	status = "ok";
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";

		pinctrl-names = "default";
		pinctrl-0 = <&key_vol_up_default>;

		vol_up {
			label = "volume_up";
			gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <KEY_VOLUMEUP>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};

&vendor {
	bluetooth: bt_qca6390 {
		compatible = "qca,qca6390";
+22 −0
Original line number Diff line number Diff line
@@ -36,6 +36,28 @@
	};
};

&pm8150_gpios {
	key_home {
		key_home_default: key_home_default {
			pins = "gpio1";
			function = "normal";
			input-enable;
			bias-pull-up;
			power-source = <0>;
		};
	};

	key_vol_up {
		key_vol_up_default: key_vol_up_default {
			pins = "gpio6";
			function = "normal";
			input-enable;
			bias-pull-up;
			power-source = <1>;
		};
	};
};

&pm8150b_charger {
	smb5_vconn: qcom,smb5-vconn {
		regulator-name = "smb5-vconn";
+20 −0
Original line number Diff line number Diff line
@@ -91,6 +91,26 @@
	status = "ok";
};

&soc {
	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";

		pinctrl-names = "default";
		pinctrl-0 = <&key_vol_up_default>;

		vol_up {
			label = "volume_up";
			gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <KEY_VOLUMEUP>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};

&pm8150b_vadc {
	#address-cells = <1>;
	#size-cells = <0>;