From patchwork Fri Dec 11 19:47:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 7832521 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 152E49F1C2 for ; Fri, 11 Dec 2015 19:48:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 366A6204A0 for ; Fri, 11 Dec 2015 19:48:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54AED20499 for ; Fri, 11 Dec 2015 19:48:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbbLKTru (ORCPT ); Fri, 11 Dec 2015 14:47:50 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:35918 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752625AbbLKTrt (ORCPT ); Fri, 11 Dec 2015 14:47:49 -0500 Received: by mail-wm0-f44.google.com with SMTP id n186so44713578wmn.1 for ; Fri, 11 Dec 2015 11:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=IQyGK0/6+jDkZxIe7UroVl4u3aaGlX0lhwpNYcMILsc=; b=hQSj8WBdpi8lac1c20b1UVxPFQ4m3fQQsulymryAlBaskBqDFPArmsmFQtbNvt6Sqy /S3l6MVtVbBSMSdbfwwXtBsA58stUOJUUVWvjSzXxL4qedHlJJEHSmv96aSheSCJWfnJ 6xnXN3CF3wYW0XZ2c8nZLQgjpSCSZjPcWFEsmsP+6nGWSWDL4k4QezknsmPH0/Pal5G1 tuAYbGw2CdUUF0hsV3qAvaKc6RGdQZAohLURltttGR1desQYuCwakZbKmplXxzzJk0mN nXV25P4LRQMz5+owsTZN57VZU6pgt15S8/AUN9sCE4xu1ksjLfAWIYoqYyVoxQYEcHyH Psow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IQyGK0/6+jDkZxIe7UroVl4u3aaGlX0lhwpNYcMILsc=; b=egG3V48Ea5focRKjOnlj2hXF0g2Kuw7rz3qjuNO0og67sZVZnuve7029GmSuo1RfWD iE+ELIHdQXCTqb/0rOX67OQNFY7s46hgo+uBGGAiurebmmXJD9WCSRi5C+igwJ/n9xnR +8gaRqGy/PM+bgX1C4QyUIKrWFH/dVbr1NZoLatfbia9jTguRTNRB3lxqE/S3pZKtVeP he+n9ZtKTONK/c88V4YG77phpFcV1abcT6djhhr5ikt3tThLi+iDAm9gY7UH0GeQr+bU wM+LKcsL7fblwKgAE78xHIOoqqesAAW+v9/XfpuwDq3Td9/0drtHhPsDlKKQj/piShvw EZuw== X-Gm-Message-State: ALoCoQnUFTF9Q2ingEvjNXwilbm1Zs444CEbG8579y4h96zo8QrQZMJ9xpdON9VJDhzKqr7dCr1dDno7q7ypOOtgEJ4XoZBenQ== X-Received: by 10.28.186.67 with SMTP id k64mr8509415wmf.56.1449863268679; Fri, 11 Dec 2015 11:47:48 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id m190sm1614575wma.5.2015.12.11.11.47.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Dec 2015 11:47:47 -0800 (PST) From: Srinivas Kandagatla To: Jiri Kosina Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Kiran Rudramuni , Nicolas Dechesne Subject: [PATCH] hid: add support for Lilliput touchscreen Date: Fri, 11 Dec 2015 19:47:44 +0000 Message-Id: <1449863264-14184-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kiran Rudramuni This patch adds support to Liliput capacitive touchscreeen. Signed-off-by: Kiran Rudramuni Signed-off-by: Nicolas Dechesne --- Hi This patch has been in my local tree for long time, tested in various Hackathons. Could you please take this for v4.5. thanks, srini drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 4 ++++ drivers/hid/hid-multitouch.c | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index c6f7a69..4350376 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2051,6 +2051,7 @@ static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0005) }, { HID_USB_DEVICE(USB_VENDOR_ID_ZEROPLUS, 0x0030) }, { HID_USB_DEVICE(USB_VENDOR_ID_ZYDACRON, USB_DEVICE_ID_ZYDACRON_REMOTE_CONTROL) }, + { HID_USB_DEVICE(USB_VENDOR_ID_LILLIPUT, USB_PROD_ID_LILLIPUT) }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_PRESENTER_8K_BT) }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_WIIMOTE) }, diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 9024a3d..f87993f 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1055,4 +1055,8 @@ #define USB_DEVICE_ID_RAPHNET_2NES2SNES 0x0002 #define USB_DEVICE_ID_RAPHNET_4NES4SNES 0x0003 +/* Lilliput Capacitive TouchScreen */ +#define USB_VENDOR_ID_LILLIPUT 0x1391 +#define USB_PROD_ID_LILLIPUT 0x2112 + #endif diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 3d664d0..580749e 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1209,6 +1209,11 @@ static const struct hid_device_id mt_devices[] = { MT_USB_DEVICE(USB_VENDOR_ID_CJTOUCH, USB_DEVICE_ID_CJTOUCH_MULTI_TOUCH_0040) }, + /* Lilliput multitouch panels */ + { .driver_data = MT_CLS_DEFAULT, + HID_USB_DEVICE(USB_VENDOR_ID_LILLIPUT, + USB_PROD_ID_LILLIPUT) }, + /* CVTouch panels */ { .driver_data = MT_CLS_NSMU, MT_USB_DEVICE(USB_VENDOR_ID_CVTOUCH,