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

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
......@@ -756,6 +756,19 @@ buck10_reg: BUCK10 {
};
};
&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 @@ initial_alive: initial-state {
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);
......
......@@ -76,3 +76,8 @@ &ldo38_reg {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
};
&stmfts {
touchscreen-size-x = <1439>;
touchscreen-size-y = <2559>;
};
......@@ -63,3 +63,10 @@ &ldo38_reg {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
&stmfts {
touchscreen-size-x = <1599>;
touchscreen-size-y = <2559>;
touch-key-connected;
ledvdd-supply = <&ldo33_reg>;
};
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