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

Commit 2b17d2f8 authored by Andi Shyti's avatar Andi Shyti Committed by Krzysztof Kozlowski
Browse files

arm64: dts: exynos: Add stmfts touchscreen node for TM2 and TM2E



TM2 and TM2E devices are provided with a ST-Microelectronics
Finger Tip S device with small differences:

 - screen size
 - TM2E uses the stmfts also as a touchkey for "back" and "menu"

In this commit the initial value of the interrupt line is set to
EXYNOS_PIN_PULL_UP as the interrupt is triggered when the line
goes down.

Signed-off-by: default avatarAndi Shyti <andi.shyti@samsung.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 0ed797f7
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -756,6 +756,19 @@
	};
};

&hsi2c_5 {
	status = "okay";

	stmfts: touchscreen@49 {
		compatible = "st,stmfts";
		reg = <0x49>;
		interrupt-parent = <&gpa1>;
		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
		avdd-supply = <&ldo30_reg>;
		vdd-supply = <&ldo31_reg>;
	};
};

&hsi2c_7 {
	status = "okay";

@@ -901,7 +914,7 @@
		PIN(INPUT, gpa0-7, NONE, FAST_SR1);

		PIN(INPUT, gpa1-0, UP, FAST_SR1);
		PIN(INPUT, gpa1-1, NONE, FAST_SR1);
		PIN(INPUT, gpa1-1, UP, FAST_SR1);
		PIN(INPUT, gpa1-2, NONE, FAST_SR1);
		PIN(INPUT, gpa1-3, DOWN, FAST_SR1);
		PIN(INPUT, gpa1-4, DOWN, FAST_SR1);
+5 −0
Original line number Diff line number Diff line
@@ -76,3 +76,8 @@
	regulator-min-microvolt = <3000000>;
	regulator-max-microvolt = <3000000>;
};

&stmfts {
	touchscreen-size-x = <1439>;
	touchscreen-size-y = <2559>;
};
+7 −0
Original line number Diff line number Diff line
@@ -63,3 +63,10 @@
	regulator-min-microvolt = <3300000>;
	regulator-max-microvolt = <3300000>;
};

&stmfts {
	touchscreen-size-x = <1599>;
	touchscreen-size-y = <2559>;
	touch-key-connected;
	ledvdd-supply = <&ldo33_reg>;
};