Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4647692pxk; Wed, 30 Sep 2020 08:14:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ86XjZGIgT2BETbxQ/zkigdFUZG9WaP7Z47eZdsXErmexEsTjiftbz+4s5UjktoQWwv8m X-Received: by 2002:aa7:cf98:: with SMTP id z24mr3154789edx.241.1601478873807; Wed, 30 Sep 2020 08:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601478873; cv=none; d=google.com; s=arc-20160816; b=OGlLKRBaxcfW4c6QSbxUmTa2TBqsjK25NW8j6Y/sxixd2F1g869Li+pzoYyxRv8ZKJ xZIBZTLlg8lzItZB2eBd6EcQxppHGXpxf4wSfzDQzAGkaEIfpclcPkZgIDhXbc20bt1+ 4BQo/3N6p5BrqkxK0bSLdQ/qwnLIjsPeDSWW4pzGLS1eZt15hh8r+sH75yFcM7sVExGg t+v17A2UA60JeDZl4W15m6ivIA4hF0x+Aht3P9KlHHEU3Tf/k0kt+aTbKzpZHwS7VMW6 1nzxe2nXQy/Xd70/7OTgUq4S8CtJZQqkOCptzT+WPyTidDnfTBF0vXCW+8Pwo9ZtktmW +KAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=VMAmuy1x86J+qIBuibYwlckr3103XZyXilQyAi4zJnA=; b=nR+5pPSgvAS0SXW6jxCkKSP2kzQUIRyRakWzNgSs3ZVzSXgFU5e5F8RM3kWqKK69dE eEFmVIBezcl+KGh9hoYWTAteeqR+I3XJ21MYcpBQkWQQ5ckYyUVk2Jm9HDCaAUuXs5O9 ohqr0JPc9p9uu8jHmNpwjThnRXhDX8GnRx2QHNGDN1mmSR8GVuPTL97S81Vk/7c6TyQm Pw0K7ROm2Wp6MyTaEeugm/7n3UUgiHeYvoRtPwOjsAHj7/FRjxr9jVP7fdcaxnT7EiwM QPPuEWLeo/H8iQRtYcCOu6H7COCI+uMbHjBCXKea8RocMVBI3OSdrbrE3FktX6rszhnk LKcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si1389254edp.40.2020.09.30.08.14.10; Wed, 30 Sep 2020 08:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730427AbgI3PNH (ORCPT + 99 others); Wed, 30 Sep 2020 11:13:07 -0400 Received: from esa2.mentor.iphmx.com ([68.232.141.98]:9476 "EHLO esa2.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgI3PNE (ORCPT ); Wed, 30 Sep 2020 11:13:04 -0400 IronPort-SDR: 6Anc4nr5oU8XvQrGJJniItZuZKLBgVjp9y8pQsOOXIhcz3X96H0iqamr7kiuuHwXErsx22z5fO UUnSvCjMNewlzRS/Zx3hHQkbrAP3Ev46pNhfglEZoXpAZhMw18IDUMoV4VNWKRTK+WBHB41HEj Ts+yuwBZlfgu1Wot8VeuSsBfPAHYwoVaceF7sZzlW7NwWRpxbgNcKrEr3Dz0kgL46BoHQN4B0p vYqn+jBgKSkbNy/sHII7419GL+m0FiWE4/3EvQNF2QPa+ZG/3+6OU9KvzzuHE/vp/hBIOv6dZM 5LU= X-IronPort-AV: E=Sophos;i="5.77,322,1596528000"; d="scan'208";a="53484658" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 30 Sep 2020 07:13:04 -0800 IronPort-SDR: 6IY6l9bHcwso4ZDr9MYtr+cFNKFn7ryaW26lQzqGIP6ASGpVymFV1EBcrR0J03wYz64Qiir+uL OPWaBI3XB+j5JlzPZ35mwqoR9KV1uIBnxRhruzptSbZuqWEnTertrCaUqlMp7PkKlnhR7+0FGq fZ4zwiYx5T2h9C8iAch/46SuXOZ0I7Nf4+AaYRHJzCxRt8eDr9UhfIgPxwiS0Vm45t+sEltX7L UcpmSl/K2BOUVLYPY1smNK8NtzWzz5ukIrFX0jCUBKMeCzdEx61ZIDbvg694MFsI2jCRc88h+D R4w= From: Jiada Wang To: , , , , CC: , , , , , , Subject: [PATCH v3 0/3] implement I2C retries for mXT1368 Date: Thu, 1 Oct 2020 00:12:56 +0900 Message-ID: <20200930151259.18119-1-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to datasheet, mXT1386 chip has a WAKE line, it is used to wake the chip up from deep sleep mode before communicating with it via the I2C-compatible interface. if the WAKE line is connected to a GPIO line, the line must be asserted 25 ms before the host attempts to communicate with the mXT1386. If the WAKE line is connected to the SCL pin, the mXT1386 will send a NACK on the first attempt to address it, the host must then retry 25 ms later. This patch adds compatible string "atmel,mXT1386" for mXT1386 controller, when I2C transfer on mXT1386 fails, retry the transfer once after a 25 ms sleep. Jiada Wang (3): dt-bindings: input: atmel: add compatible for mXT1386 Input: atmel_mxt_ts - implement I2C retries for mXT1368 ARM: tegra: add mXT1386 compatible --- v3: change compatible string to lowercase v2: add bool retry_i2c_transfers to struct mxt_data, to indicate whether retry is needed when i2c transfer fails v1: initial version --- .../bindings/input/atmel,maxtouch.txt | 1 + .../boot/dts/tegra20-acer-a500-picasso.dts | 2 +- drivers/input/touchscreen/atmel_mxt_ts.c | 62 +++++++++++++++---- 3 files changed, 52 insertions(+), 13 deletions(-) -- 2.17.1