From 5062940c8e5bbe08c56fb1ea9d073c7212223cbf Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 19 May 2017 13:44:51 +0200 Subject: 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 --- .../arm64/boot/dts/rockchip/rk3399-puma-mipidsi.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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"; + }; +}; -- cgit v1.2.3