Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1124146pxk; Fri, 25 Sep 2020 06:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN4FPChoHyltcNXlpmxyIQ+UB0O01c/L1aHrLoOyzCmUK/0m08JFMNusrkcUHokBXyf8lH X-Received: by 2002:aa7:d6c4:: with SMTP id x4mr1443994edr.98.1601042145712; Fri, 25 Sep 2020 06:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601042145; cv=none; d=google.com; s=arc-20160816; b=f/sDzwu1jQ+/5MKRa3qnQp6/r4Y/5Jw/z3SrlSLuIYYY4DdOajO0cJB4NdGv6aQ3yq /lsJRHLZPtstihvwEMueizgefJdyBgMa6MgOzlnuFmEwLUTgIRZdT9hzRM5WUEOSFUBK IxTl022qCKGhkIO2VVjfLM1Ps38y4vZDP2oh4iYJEW2oua5ZkwFOKiQhQTEZ91KuBFNo /HnmV3FwMxA5j2H3Ir/3dDxG5eRVFNwBqCWfCizxHSbfVSFB6iyb9j19LaS1/QKWlmW1 Lkk5zJr7U2uAyWiJ+OcS6DW6n4xxATnTMdIJ7Q7f3xRR41S8RrETmJzE7wd/PqQ0MbA7 R4xA== 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=xstGnJhqbLyE9lwyDEfbSp4BIErqRXO/PbaaI4fm88g=; b=tVEUpaUCiK3f/fqkgpTv7naPirU4w04GRYENwE0aloWMCe1MGj1Mb+ClL4LkK1FAob eC5fc67rqKuRcyfKe5OlCltL64s5LlO0n6optWAqeFftvOzZ4vt2WCOkyyG9jz+cQ08+ qMkjl+w0PEwnaxm6Ts4IaWGoUn7fpMc09YtChlI5BHoWH5B+PZB8X1ydTTt3aSDlhunh ioYLUgfK0sbAXMybpU2r7kRO/THWl4LQoDekoq+WYlakpq2uRuoqTwd56HsOhBzS80yq bQxHm/owmTqYIAydgwT8kpUjstvqZLNyuVlh7UziyA/w1e2dB3I73Sk3It4ulqdfj+85 AArA== 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 b14si2006803edw.199.2020.09.25.06.55.22; Fri, 25 Sep 2020 06:55:45 -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 S1728842AbgIYNxD (ORCPT + 99 others); Fri, 25 Sep 2020 09:53:03 -0400 Received: from esa2.mentor.iphmx.com ([68.232.141.98]:19050 "EHLO esa2.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727290AbgIYNxD (ORCPT ); Fri, 25 Sep 2020 09:53:03 -0400 IronPort-SDR: c8wUFhdR6K6QGNG3SREYP8N0uOorI4VcCH0yVQrUMdbbqdDOcYoR+h4YMjqcTtMBcCmsvVsQDp UyJP5jVfbH8ZqnrAg4QwqxMmzEFeL2mA7P+dS/7nA8nkaeGcJnyNQJ2Ou/bj4FgMlAIu4Js5yD OW18WqJsaO0sGUDT7GcLINU45+0oI71yxWOmJcXk17MbN7xAs7nNMqPRUCI9C6DCTTcV8QfWBp D/IxTCtPSt2Yk6HJuqrmgJPJXpsnDA13gXZNzxskIaCNkLBowmCNI19BZ0lQH3zLvaNBAZdJ2F xSI= X-IronPort-AV: E=Sophos;i="5.77,302,1596528000"; d="scan'208";a="53316549" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 25 Sep 2020 05:53:02 -0800 IronPort-SDR: rdOEOuP9sZLVfj/gP4M2edaea4IT4kA/lU7bg7nEzuxt8UG6F/rnwDx4BOrYk84A8bzqUys1g7 x3yexRdtFo/W/eXzwA8zAhWrgEw/sY4MMTBfuLvoUXnOL/4ONQN2Tgy3bzQN3RWMHxOskva6Jq Jcq2gcixwfIBRYQnDqD9HsYexlgPWp3gfuc/10rWT5OjkaXLN0f29oewY1DFSsOFDfciNvBgmX G1rnT5yVWB7xUR7J9c1xbng3Eo7SSoQIztzVujCVdX7oPGlLLaW5FwdPHX5rXILlsxXKCubLO7 SB8= From: Jiada Wang To: , , , , CC: , , , , , , Subject: [PATCH v2 0/3] implement I2C retries for mXT1368 Date: Fri, 25 Sep 2020 22:52:54 +0900 Message-ID: <20200925135257.21138-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 --- 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