From patchwork Fri Dec 5 08:15:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jeffrey.lin" X-Patchwork-Id: 5442651 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7CE329F1D4 for ; Fri, 5 Dec 2014 08:15:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8BF9220374 for ; Fri, 5 Dec 2014 08:15:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8DF9B2035C for ; Fri, 5 Dec 2014 08:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751232AbaLEIPZ (ORCPT ); Fri, 5 Dec 2014 03:15:25 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33666 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751205AbaLEIPY (ORCPT ); Fri, 5 Dec 2014 03:15:24 -0500 Received: by mail-pa0-f44.google.com with SMTP id et14so257228pad.3 for ; Fri, 05 Dec 2014 00:15:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=vk6uTr4i/KjGqW/grkkSbHj03fbhAQJaHlt4szKlZoo=; b=uYNONyN6n2cU3gtBKJ7NGwVEnaM79qVz+1p3/Z3hjxPlRchaeSQ9jOKbUa6giE5jxz Jnlwuntv1bwjhzB2xeP/p4fq2Egkjtuo4sD1r8/stORc/Mcl2bJE8SvDjvHTvuBlBjSh oZ95jQsTGPcUYfhgbDDuWvfRE0hXMw5IiVCM2SozS3wPHFY1spZjcvZjue84yO/t25Ft VknFfVIzxlIdimcbQB4Tny5c85CG2oCEQn+wH/GgjtHnvutQckxRsIVjmeH+CkC2fojc aHjsy2LU5DF232bI3Ex8OIosCHbcrBnVz5Ftl4Vo3LtYYtMhM2idGypi3nb54l7hkUwl MG8A== X-Received: by 10.70.35.207 with SMTP id k15mr3102690pdj.166.1417767324398; Fri, 05 Dec 2014 00:15:24 -0800 (PST) Received: from localhost.localdomain ([27.52.42.120]) by mx.google.com with ESMTPSA id kb16sm28110177pbb.34.2014.12.05.00.15.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Dec 2014 00:15:23 -0800 (PST) From: "jeffrey.lin" X-Google-Original-From: "jeffrey.lin" To: dmitry.torokhov@gmail.com, shc_work@mail.ru, bleung@chromium.org, lee.jones@linaro.org, charliemooney@chromium.org Cc: KP.li@rad-ic.com, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, "jeffrey.lin" Subject: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver Date: Fri, 5 Dec 2014 16:15:01 +0800 Message-Id: <1417767301-20141-1-git-send-email-jeffrey.lin@rad-ic.com> X-Mailer: git-send-email 1.7.9.5 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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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: "jeffrey.lin" This patch is porting Raydium I2C touch driver. Developer can enable raydium touch driver by modifying define "CONFIG_TOUCHSCREEN_RM_TS". Signed-off-by: jeffrey.lin@rad-ic.com --- drivers/input/touchscreen/Kconfig | 12 ++++++++++++ drivers/input/touchscreen/Makefile | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig index 3ce9181..d0324d2 100644 --- a/drivers/input/touchscreen/Kconfig +++ b/drivers/input/touchscreen/Kconfig @@ -955,4 +955,16 @@ config TOUCHSCREEN_ZFORCE To compile this driver as a module, choose M here: the module will be called zforce_ts. +config TOUCHSCREEN_RM_TS + tristate "Raydium I2C Touchscreen" + depends on I2C + help + Say Y here if you have Raydium series I2C touchscreen, + such as RM31100 , connected to your system. + + If unsure, say N. + + To compile this driver as a module, choose M here: the + module will be called rm31100_ts. + endif diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile index 687d5a7..3220f66 100644 --- a/drivers/input/touchscreen/Makefile +++ b/drivers/input/touchscreen/Makefile @@ -78,3 +78,4 @@ obj-$(CONFIG_TOUCHSCREEN_WM97XX_ZYLONITE) += zylonite-wm97xx.o obj-$(CONFIG_TOUCHSCREEN_W90X900) += w90p910_ts.o obj-$(CONFIG_TOUCHSCREEN_TPS6507X) += tps6507x-ts.o obj-$(CONFIG_TOUCHSCREEN_ZFORCE) += zforce_ts.o +obj-$(CONFIG_TOUCHSCREEN_RM_TS) += rm31100_ts.o