Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3603882pxk; Tue, 29 Sep 2020 01:00:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf3IZWRGc3lhUmV/6rK6MYz8IStFXVFjnik1iD8Su40idMKeP3wxRzpg1gNcj6tdFXr58w X-Received: by 2002:aa7:d981:: with SMTP id u1mr1863649eds.250.1601366455012; Tue, 29 Sep 2020 01:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601366455; cv=none; d=google.com; s=arc-20160816; b=FmciXySK7vvU8qbdaGZVWj7lmo0DkUT3Rxr/Lj0kD0xc43m4DgidPl+0q988J51x2r O0uH1BvkokphbZFafTP3p641wGEyuEolWfKK2wbtBx/rDUElu53rZbd/JK9lQqkbjOgp jgY3AYsK5i+Z1fkIvHGstkxdCmOgbofyRrX+NrXzdhbzUZMIXPIFwujF2hTFMQOgLyhD kUSXvknhHHSVs/EPozdDn2ddb54gxhYkV0LN4qL19oeBCbR6LxasrMy5QWAODH8EZCT6 hM+GTKO5J2WBRxTsWsgwffJwWiu801uMfRfmlqACRGAlu8eILusSO8yxgAc8OXc5eYIb TCYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=z44OCwOHJFAg70e5aEAiWS8XZCl9H96J8tZarWdkMhw=; b=HcHPJ/CntWuzJhT6oMBCUiCv7UEs4fi+cTMbHSvLXOUit5Co5CkcRyzaSc6TmlG81W 7jHAWP8fJ+B2vccu3ngxLMkuM277s/ZYRM7BvQ1YiggQc8rdEdsF7NKL2pMVIIEJGFAP JZu4PXgnJGvV9hg61gyEIqGb/VMC/okqCYDI7NUC/5WGOxx/hHb7g6THCW1fCJvYUI+n yHCQKwKgHsuPjYNysxqzcsOJyCvIedshV6d7UvL0+rBYQ4QC5m+mnVUotYmONCXY2Kme 1IVCt5xAsTCs+tosWzB69sMkUaHqSIFKMaPF1PeV0LcJwmP2wnAu74rPW5Umloyy0GwP UGTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Z/FVuhB6"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si2232143ejc.349.2020.09.29.01.00.32; Tue, 29 Sep 2020 01:00:54 -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; dkim=pass header.i=@linaro.org header.s=google header.b="Z/FVuhB6"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727654AbgI2H70 (ORCPT + 99 others); Tue, 29 Sep 2020 03:59:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgI2H70 (ORCPT ); Tue, 29 Sep 2020 03:59:26 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF04C0613D0 for ; Tue, 29 Sep 2020 00:59:25 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id y15so3770751wmi.0 for ; Tue, 29 Sep 2020 00:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z44OCwOHJFAg70e5aEAiWS8XZCl9H96J8tZarWdkMhw=; b=Z/FVuhB6HuycrwymG80hUaxXIvXS6rU4TG69hlvG+ssusxVSVTJLh0ht4r3+WubNj5 pr1etCcepdla4i8XyhR+EHVnudUFAyVS4HcImrMUtW9/KE3fnqZPwX8gQkq3+Z7JUvne vhS3cq8/T0ve4f8JXT20BKpX7ZLj7xxHy3YTKepUFmJXieFECi1RrRyKCNXx8MMkfmna T7CA0BYn55VTGYB0MlioT8P1EiFkPRtaK21hPFWzIK3k0oCZSytZC3lOzUugRSolw25C x9FMzJeshW7diTqn154NjByRse9ZCJlSwLzXOGDNHYUSAD5sY2ZaWGZTCyIEsyocTbbP XpWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z44OCwOHJFAg70e5aEAiWS8XZCl9H96J8tZarWdkMhw=; b=Xqvi4ZUzPxmFT2VTrBtgv9VrO8jCzlcN/l4DjH4Xzy2aFAsWB9GM5hl+Zrn7rdOFrI nqu7Xyj602/SSSZkhb9cwxC2Ql3PLLdDC71yg19zcKnnDA3jbgq0CrD2zPg3Aii+tpRl yRcDPidxvTj2XEFCI3yfjva9akqmEWzdjB4CpWe/zn4RlQGXM9syZOqsMCo/qtam68UJ BizOXrPIUhhG9Wx5m819uxugbZWUeHgT/li8Ewq5Fvu4+4CzpZbhfof5tyufrAWebfOe MOcjErxAXv70hUWVLMGFp28sr+tCx5k+cSwM2sxkcgo0byPThwAJfD3J5y4lCq2jT1nm vQfQ== X-Gm-Message-State: AOAM530W/FezeigCPlUoX9UJa0ALVvufunl95VbG1zmpjUaUIRmpjwUn /1LcckyFx45S0qQkJIcBz8B3rMm+df/Q1O+blYdW3Q== X-Received: by 2002:a7b:c750:: with SMTP id w16mr727455wmk.16.1601366364393; Tue, 29 Sep 2020 00:59:24 -0700 (PDT) MIME-Version: 1.0 References: <20200927123542.553852-1-kholk11@gmail.com> <20200927123542.553852-3-kholk11@gmail.com> <20200928215120.GP1681290@dtor-ws> In-Reply-To: <20200928215120.GP1681290@dtor-ws> From: Amit Pundir Date: Tue, 29 Sep 2020 13:28:48 +0530 Message-ID: Subject: Re: [PATCH v2 2/3] Input: Add Novatek NT36xxx touchscreen driver To: Dmitry Torokhov Cc: kholk11@gmail.com, Rob Herring , rydberg@bitmath.org, priv.luk@gmail.com, linux-input@vger.kernel.org, lkml , marijns95@gmail.com, Konrad Dybcio , martin.botka1@gmail.com, phone-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Sep 2020 at 03:21, Dmitry Torokhov wrote: > > On Mon, Sep 28, 2020 at 03:18:18PM +0530, Amit Pundir wrote: > > On Sun, 27 Sep 2020 at 18:06, wrote: > > > > > > From: AngeloGioacchino Del Regno > > > > > > This is a driver for the Novatek in-cell touch controller and > > > supports various chips from the NT36xxx family, currently > > > including NT36525, NT36672A, NT36676F, NT36772 and NT36870. > > > > > > Functionality like wake gestures and firmware flashing is not > > > included: I am not aware of any of these DrIC+Touch combo > > > chips not including a non-volatile memory and it should be > > > highly unlikely to find one, since the touch firmware is > > > embedded into the DriverIC one, which is obviously necessary > > > to drive the display unit. > > > > > > However, the necessary address for the firmware update > > > procedure was included into the address table in this driver > > > so, in the event that someone finds the need to implement it > > > for a reason or another, it will be pretty straightforward to. > > > > > > This driver is lightly based on the downstream implementation [1]. > > > [1] https://github.com/Rasenkai/caf-tsoft-Novatek-nt36xxx > > > > > > > This is so cool! > > > > Xiaomi PocoF1 phone uses same family touchscreen IC and I could > > test this series on that phone as well. > > > > However I do have to make a minor change to get it working. The > > downstream driver and even the github code you linked above use > > GPIO mapped IRQ, and I had to switch to that to get touchscreen > > working with your driver > > https://github.com/pundiramit/linux/commit/0a73eb656c1e80787dc195641ce7b0076fddb38e. > > I wonder if I'm missing any devicetree property other than interrupts? > > Simply specifying GPIO controller/pin as interrupt property should work, > there should be no need to parse custom GPIO property and convert it to > IRQ in the driver. > Indeed. I don't know what was tripping me off yesterday, but I got it working today with interrupt properties. Thank you. Regards, Amit Pundir > Thanks. > > -- > Dmitry