]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: dts: exynos: Add stmfts touchscreen node for TM2 and TM2E
authorAndi Shyti <andi.shyti@samsung.com>
Fri, 10 Feb 2017 02:17:21 +0000 (11:17 +0900)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 7 Mar 2017 19:53:59 +0000 (21:53 +0200)
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: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi
arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts

index 4df6b57a0a6831f2d8c3a4622f27d22e6cd3db93..fef0ba77f7f7179b635f0001bb482a9a69e4b82b 100644 (file)
        };
 };
 
+&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";
 
                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);
index dea0a6f5bc18f048b30fa6d543e19623cc18ca4c..75274b3afbd3e6cb6241fb23694e80a3acc4bfe8 100644 (file)
@@ -76,3 +76,8 @@
        regulator-min-microvolt = <3000000>;
        regulator-max-microvolt = <3000000>;
 };
+
+&stmfts {
+       touchscreen-size-x = <1439>;
+       touchscreen-size-y = <2559>;
+};
index 7891a31adc17594112a8edf1a9ad4914f3446718..694717ade927b5c95022d5393e01efd78eacad2b 100644 (file)
        regulator-min-microvolt = <3300000>;
        regulator-max-microvolt = <3300000>;
 };
+
+&stmfts {
+       touchscreen-size-x = <1599>;
+       touchscreen-size-y = <2559>;
+       touch-key-connected;
+       ledvdd-supply = <&ldo33_reg>;
+};