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

Commit b16b2a53 authored by Mayank Chopra's avatar Mayank Chopra Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Move volume up/down configuration to apq8053-lite-som



Remove volume up and down configuration from base apq8053-lite-dragon
based devices and add into apq8053-lite-som based device for supporting
in dev console. This way volume up/down functionality gets enabled for
developers while apq8053-lite-dragon based device variants can expose
the gpio for other purposes using pio hal.

SPMI RESIN interrupt line is responsible for triggering the fastboot
command and doubles as a VOLUME_DOWN pin. For apq8053-lite-dragon based
device variants, in certain use-cases, these keyevents need to be
suppressed and instead, is directly read the line state (high/low)
from user-space. In order to support this, set the `resin-gpiobase`
entry to expose this interrupt line as a virtual GPIO.

Change-Id: I97720d1c0ce376a3fa620d1fe5d54d37c51f0988
Signed-off-by: default avatarMayank Chopra <mak.chopra@codeaurora.org>
parent 44bdb591
Loading
Loading
Loading
Loading
+8 −16
Original line number Diff line number Diff line
@@ -104,22 +104,6 @@
		pinctrl-1 = <&sec_tlmm_lines_sus &ext_amp_ctrl_sleep>;
	};

	gpio_keys {
		compatible = "gpio-keys";
		input-name = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&gpio_key_active>;
		vol_up {
			label = "volume_up";
			gpios = <&tlmm 85 0x1>;
			linux,input-type = <1>;
			linux,code = <115>;
			debounce-interval = <15>;
			linux,can-disable;
			gpio-key,wakeup;
		};
	};

	qcom,rmnet-ipa {
		status = "disabled";
	};
@@ -408,6 +392,14 @@
};

&spmi_bus {
	qcom,pm8953@0 {
		qcom,power-on@800 {
			qcom,resin-gpiobase = <1019>;
			qcom,pon_2 {
				/delete-property/ linux,code;
			};
		};
	};
	qcom,pmi8950@2 {
		qcom,leds@a100 {
			compatible = "qcom,leds-qpnp";
+17 −8
Original line number Diff line number Diff line
@@ -108,6 +108,23 @@
		pinctrl-0 = <&sec_tlmm_lines_act &ext_amp_ctrl_active>;
		pinctrl-1 = <&sec_tlmm_lines_sus &ext_amp_ctrl_sleep>;
	};

	gpio_keys {
		compatible = "gpio-keys";
		input-name = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&gpio_key_active>;
		vol_up {
			label = "volume_up";
			gpios = <&tlmm 85 0x1>;
			linux,input-type = <1>;
			linux,code = <115>;
			debounce-interval = <15>;
			linux,can-disable;
			gpio-key,wakeup;
		};
	};

};

&cdc_pdm_comp_lines_act {
@@ -304,14 +321,6 @@
};

&spmi_bus {
	qcom,pm8953@0 {
		qcom,power-on@800 {
			qcom,resin-gpiobase = <1019>;
			qcom,pon_2 {
				/delete-property/ linux,code;
			};
		};
	};
	qcom,pmi8950@2 {
		qcom,leds@a100 {
			compatible = "qcom,leds-qpnp";