summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2017-05-19 13:44:51 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2017-05-26 07:37:56 +0200
commit5062940c8e5bbe08c56fb1ea9d073c7212223cbf (patch)
tree5ca194eedfb11d509faf6d95b4af4d3818b53230
parent7bc92a6e435576e41b1a78fa59e70213db789a98 (diff)
arm64: dts: puma: enable silead touchscreen
Enable the silead based touchscreen labeled EC080D107 Note that the coordinates still need to be scaled. This can be done by adding this into you xorg.conf: Section "InputClass" Identifier "touchscreen" MatchProduct "silead_ts" Option "TransformationMatrix" "1.5 0 0 0 0.7 0 0 0 1" EndSection Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-puma-mipidsi.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-mipidsi.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-mipidsi.dts
index 794839d81ba7..f30ff4d11c39 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-puma-mipidsi.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-mipidsi.dts
@@ -111,3 +111,24 @@
};
};
};
+
+&i2c1 {
+ gsl1680 {
+ compatible = "silead,gsl1680";
+ reg = <0x40>;
+ // GPIO2_B3 = CSI_MCLK = gpio2 23
+ interrupt-parent = <&gpio2>;
+ interrupts = <23 IRQ_TYPE_LEVEL_LOW>; // TODO THIS IS PROBABLY WRONG
+ // GPIO1_C7 = LVDS_BLEN = gpio1 23
+ power-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
+ touchscreen-size-x = <1720>;
+ touchscreen-size-y = <1150>;
+ touchscreen-swapped-x-y;
+ touchscreen-inverted-x;
+ touchscreen-inverted-y;
+
+ silead,max-fingers = <5>;
+ // Place into /lib/firmware/silead
+ firmware-name = "elcom-plain.fw";
+ };
+};