From patchwork Wed Jul 25 07:34:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Myl=C3=A8ne_Josserand?= X-Patchwork-Id: 10543645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D6DA14BC for ; Wed, 25 Jul 2018 07:37:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 285E72965A for ; Wed, 25 Jul 2018 07:37:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C96E29844; Wed, 25 Jul 2018 07:37:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C08172965A for ; Wed, 25 Jul 2018 07:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fuxwJBg7OiZRiFLlLnyurNi+/uVwzbERPsJI8edPOys=; b=PSvbs64VP28Xnu 3dMz/A8ocsBB4SNGt/gxpnI99x6pZvorvvhOPjQvubze5nCnuprNbG1fyz42ZiRN4ksEB5xueog2K hu5QIs7jcNonCSHYaA/d+kC0DG9b5ojFJWfDfcab2Yd7CUC7phdz0EAqoI+nKipnJTl84nECnrwyq 2WdkTZzcDcL/xpLU6HoKMTZEwoDr8pvoP+l3Yzg+9rLPvy9yp77pAfICV3i45pXojpor0ZDSFFh6v PIDee71QhRIOiu0G8FRO4v6LL31HR/ZxqYrz3UIloxron0eJAmlCTrnXd2ESdqE4EoiHxVohqiUcM Lbf/fAszvkE7iI8mbtTg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiEMN-0006v3-Hs; Wed, 25 Jul 2018 07:37:23 +0000 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiELb-0006F8-7B for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2018 07:36:38 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id 736ED207A8; Wed, 25 Jul 2018 09:36:23 +0200 (CEST) Received: from dell-desktop.home (AAubervilliers-681-1-78-122.w90-88.abo.wanadoo.fr [90.88.20.122]) by mail.bootlin.com (Postfix) with ESMTPSA id 2BAA020618; Wed, 25 Jul 2018 09:36:23 +0200 (CEST) From: =?utf-8?q?Myl=C3=A8ne_Josserand?= To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH v4 0/3] sun8i-a83t: Add touchscreen support on TBS A711 Date: Wed, 25 Jul 2018 09:34:07 +0200 Message-Id: <20180725073410.730-1-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180725_003635_447938_AA3FE5DE X-CRM114-Status: GOOD ( 13.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, linux-input@vger.kernel.org, mylene.josserand@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello everyone, This is a V4 of the patch series that adds touchscreen support (FocalTech EDT-FT5x06 Polytouch) for TBS A711 (Allwinner sun8i-a83t SoC) and add regulator support for this touchscreen. Based on last master of linux-input tree. Changes since v3: - Created a new function to disable regulator via devm_add_action_or_reset (Dmitry Torokhov's review) - Moved regulator_enable/disable functions in device_may_wakeup guard (Ondřej Jirman and Dmitry Torokhov's reviews) - Added Rob Herring Reviewed-by on patch 01 (sorry again) Changes since v2: - Removed the check if regulator is NULL (Dmitry Torokhov's review) - Added EPROBE_DEFER error not to print a error message (Lothar Waßmann's review) - Added set wake/reset on suspend/resume. Changes since v1: - Removed patches 01 and 02 as Chen-Yu Tsai sent a similar patch: https://patchwork.kernel.org/patch/10111431/ and it is merged on last next-20171222. (See commit f066f46ce5a5 "ARM: dts: sun8i: a83t: Add I2C device nodes and pinmux settings") - Updated regulator according to Dmitry Torokhov's review: removed "optional" suffix while retrieving the regulator, renamed it into "vcc" instead of "power" and added bindings documentation. - Updated device tree according to Maxime Ripard's review: remove the label and rename the node. - Squashed patch 03 with patch 05 to add I2C0 and touchscreen's node in one patch (see patch 02). Patch 01: Add support for regulator in the FocalTech touchscreen driver because A711 tablet is using a regulator to power-up the touchscreen. Patch 02: Add a set wake/reset values on resume and suspend. Patch 03: Add i2c0 and touchscreen's node for A711 TBS tablet. Thank you in advance for any review. Best regards, Mylène Mylène Josserand (3): Input: edt-ft5x06 - Add support for regulator Input: edt-ft5x06 - Set wake/reset values on resume/suspend arm: dts: sun8i: a83t: a711: Add touchscreen node .../bindings/input/touchscreen/edt-ft5x06.txt | 1 + arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 16 +++++++ drivers/input/touchscreen/edt-ft5x06.c | 55 ++++++++++++++++++++++ 3 files changed, 72 insertions(+)