Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3405655pxk; Mon, 28 Sep 2020 17:20:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUYIEEqV+cMg3fV4kj468edXHrH5ZIdIDkHZ1V6fEnrW/VWQGLYPru52XzYeEZ3+ruF1La X-Received: by 2002:a50:eb0a:: with SMTP id y10mr558139edp.89.1601338821378; Mon, 28 Sep 2020 17:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601338821; cv=none; d=google.com; s=arc-20160816; b=0kbH6l8TvjfHa0X2zfNZPun4gNi94OgDjJx8fbUqYDP+W1MjlbF/p3xtH3ckP2JdRa VM/MrC3ZzGNQ+q+UcwVSI5rIZoALwN2hR7Al80WFx0uQyYASnx3+Zj/KYDLMliIiNtrt 0hGNLo5JKw5CGtzxjMH5DxIiySbieQ7N2KjUK7xV7cbBK7xarHmYrfn7JXfIAqEfGI3s KOhvyNr2E/+7/yoY5oLRpuw+J4UvT6Fu744yo4sF2Wjnn2yTYxulS74ObPZ4+yxLcBBY ka5f6O3YaeC/5TijuaqJTpdVimi1MI/QEESWpE04VXcGg8XwDC8PTHdyN19jNEzxCXoK NorQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0zcKXkjr+0WW7s5I933AoHmUfCo7GOg25DnlE1wAEnc=; b=gC/JK/yoJreNlOsxfDSAIXTa+Wm7S9uhCaJ9dIMBJsq8OSwFIy1BbJeV8BT5XDLPac WVLnUBtlfAvHvRvEZ0OhmoeQt8/2E66mbV2K8Zg+z8euLflkcErofNQFSeN2ggHg64CL txK1KT8lHevPtb/n106Q9lNzLFMue3VDniB9rl5pn9/GcLNSLauoZ0vouCKx4uQTF0yW IL7xuXHbEt0/nTMYeAzVufAFqE3P5tvMTmcjoVPUmQ9ux94r1hbhwuCZH6JazvReHHpd 4/aknw64j1NFmonFqE0vpnvqRuR+ZFMN/s8lybHAsxZgdUx/VIToSfRhZ/DygTl3vSH3 77Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j7KoV1sH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si1593701ejc.703.2020.09.28.17.19.53; Mon, 28 Sep 2020 17:20:21 -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=@gmail.com header.s=20161025 header.b=j7KoV1sH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727188AbgI2ASn (ORCPT + 99 others); Mon, 28 Sep 2020 20:18:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727041AbgI2ASm (ORCPT ); Mon, 28 Sep 2020 20:18:42 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF3A1C0613CF; Mon, 28 Sep 2020 14:51:23 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id kk9so1482404pjb.2; Mon, 28 Sep 2020 14:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0zcKXkjr+0WW7s5I933AoHmUfCo7GOg25DnlE1wAEnc=; b=j7KoV1sH0gyPAAZxDitobFESpxddpo52tCXiKgjnF559nA+AXW5T5BxRFMGqxJ92JF T2rFKkx2yV9iPDnrRg+KY8oQlFen/xxlBWl+RDo5CBpN5F1lInb6ddujhFLsZ8klctx/ IuYOvpYvqsJLGKPzqSKS+DDltNpqrVcRdjioxn1+t4qVozYpR7lXgVhtpTZCyjttlVjl /23aAmkTvnGnn2VZMrhEDavPMDkFV8s25FJV7xTey7jD6sY078QmjbDgia5dciYyXSxP TxlFub2eRSfnKGyWSiNP3gC4QGhrhWDC7FOQnxuhyWLNwQCOhCWWmWFaBQeBHS2Wv1gk rnRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0zcKXkjr+0WW7s5I933AoHmUfCo7GOg25DnlE1wAEnc=; b=oVX1TupVDMkzvksZJpNHaQg0VSQ9PzfMsIMsiGFNF9yQD7tMaYxPjeAiqq+k1pKMxy mDhSLO6DD5G2jCwk2/F3TFhJKTS3pkXbVt1iiDg/qvxqEfqBPnhpakiFqS6/LX/pSkMr iLg+C92OibvtSkO23kUQRAdUJ8E/LYXnV3mhW/NVpKu1O+h02KoprjyxLMyKNmBwSbN3 oDSYBMOem/SBRzGpl/8TQ5g61zErWd8kBpM5VZjh6aPQYPfhYfw4nMqz1NIvUgMg9fa8 gSes1DDPtY8yU74/tA/ZvDQmphgGdel7KOoAxEX4ADya58MLbBHAGNgFWrxRp7gYM512 MXdQ== X-Gm-Message-State: AOAM5318oglMMEjm3PfSuLn8Z3lt8Hl57TgGiy3ICwJ2EarAP3HeXDy3 XcDqR2GT3SuwMTgZS8LFaqE= X-Received: by 2002:a17:90a:ca03:: with SMTP id x3mr1101033pjt.92.1601329883155; Mon, 28 Sep 2020 14:51:23 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id x3sm2492248pjf.42.2020.09.28.14.51.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 14:51:22 -0700 (PDT) Date: Mon, 28 Sep 2020 14:51:20 -0700 From: Dmitry Torokhov To: Amit Pundir 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 Subject: Re: [PATCH v2 2/3] Input: Add Novatek NT36xxx touchscreen driver Message-ID: <20200928215120.GP1681290@dtor-ws> References: <20200927123542.553852-1-kholk11@gmail.com> <20200927123542.553852-3-kholk11@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks. -- Dmitry