Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp717605pxu; Mon, 23 Nov 2020 02:15:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQejKkK6cjYCg0II03cNCs2dWoTdk4gjTLyyFyQ6m7NtIEZLxGffoTBGMlmAwb5tDHm6K2 X-Received: by 2002:a17:906:2806:: with SMTP id r6mr35759923ejc.130.1606126559433; Mon, 23 Nov 2020 02:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606126559; cv=none; d=google.com; s=arc-20160816; b=TCMkfkrCCplUNtYyXADPzxD0bg/sQaN1J0cSl0jyfAg8v6fHr5Icuow/HzrC5UPAh1 YrU1qhfe3N7bFZcm+mBbYw4gDksJjzsMhrw4CTiru8L18wt7dxy+zScHkfa+L7dyu4x4 +tGx29rOdCyDOkueKVQvXhy90bIv2aXxjDhurUgmT4p0qAyKXcazRGr7b77MbzCvXCtW 0ilo4Zd1nNyL/yDFjnB9a9NBJKbk421G4W8Hd88tqzFyiaC4mdONTby6dWUe08bXfGUS 6Wnsce4dwLaTd/qogOH9vS/xgh4NrXW6LSO2qLGV43gU3iP0d2wV5kYIM64CmgM66Cdz EdOg== 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=Lvn4+bjYbxxCbS7L/QCzyvRpE+ItUgyiLMioWuZNw0g=; b=na/oUGlx2CUV4hJseuoN1pNh9hlWxdgZqksTb5G1tCdgqvHd0oNKzJnj2eo4coaBcf x7CJh7wZnHeMBMdD5T72moXkKC8WR0LXPlH7yFf+4UBcI9bWk1UzY89x9HHNNSrqV9j0 whhROL19Y0bsYqcD2NfXh2pO4m4LlJTzDWV4414CWBwWj2VMgFlVDzeJ2yphgGl0ax96 ZuW137iDbKAboW6GjDkFAq1e49sLpcLixMcphzx7axEXMuteMeEyX6GA7pgoGmUjnnWU 9GoihPJhQAn0+wJIDm3dasLXHbN4We8XB8diHBal0ek+wZNF6oJ9tbO8AMjDvzqqfE3i 2TwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zPiVI/dQ"; 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 y2si5690355ejf.663.2020.11.23.02.15.35; Mon, 23 Nov 2020 02:15:59 -0800 (PST) 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="zPiVI/dQ"; 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 S1728460AbgKWKNJ (ORCPT + 99 others); Mon, 23 Nov 2020 05:13:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728144AbgKWKNJ (ORCPT ); Mon, 23 Nov 2020 05:13:09 -0500 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 193BBC0613CF for ; Mon, 23 Nov 2020 02:13:09 -0800 (PST) Received: by mail-yb1-xb41.google.com with SMTP id 10so15438868ybx.9 for ; Mon, 23 Nov 2020 02:13:09 -0800 (PST) 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=Lvn4+bjYbxxCbS7L/QCzyvRpE+ItUgyiLMioWuZNw0g=; b=zPiVI/dQ12Jth9bMBDSqmQOmWkH5ziZh0ycmMbl3yW9lANMDaBW/jc0DiVo/+1Mvtb QnWJWQ+IrlF4J6L3qvAPtw8EmiuOa2Ez2vx43FJeiIdL1dA4qnGHNPVCJ9xsHsSmEpMT eOiWC6867AktKIRRe+Rns4P22awgSl5t4FXtbH6TP98D/wiGPePxRw4JaqzwcV3j3onf xqEmszGQRlsBMTY6yBsxwzDLcXoIe8LD7oMWL2hAy+++ltg/x8aCBlQ3CqMJTa3cJJ6Z bK6O8vuUGEK5Pe7SgoSYTH44sHS1ABxvw2L0O1pMymtEOTzYttpkEA2wd6TZ8+B4xN0q jX+A== 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=Lvn4+bjYbxxCbS7L/QCzyvRpE+ItUgyiLMioWuZNw0g=; b=HWBrc9oeIRsG2ogBxU9q4wyjT+pBzkBtDfN7covYY1eULljye41bGmQLra+ugMLYWP LhZPDThWRLW5+xOWm/QjBsPJlZsaCZHC/d3ENyiJDFWvrq4a/pFqXZ5UwJzB2gIDeubF Qr3nVqsNRDRoYdISC4VTjP42nDe667/nBeLxo0i7qxpmHmDQcm2qYfT1ADw2xPZPOAqz 1Xm6QT6d1T/LFh95fX0hWPkA06su90SI42IQHAkPAW56evQaU5+qFHA54OP/pvKbj6JZ ep9PdZCLXorq4lc7uPlRQhrx1DPGt3DL0+vuSl7ctT1O3rQdyy96LVvHnybiDagpQG1v 0OlA== X-Gm-Message-State: AOAM5334/ZVTcWQ1hFwcmiNx2KYa0SviylCdj42ZdnIQ2LD38SIeTFBR 0EtgdC1GjcA1Y9jshposbgY9g/95qOBvAgMAe2gxNSjrhoOd9w== X-Received: by 2002:a25:c7c6:: with SMTP id w189mr32070799ybe.403.1606126387667; Mon, 23 Nov 2020 02:13:07 -0800 (PST) MIME-Version: 1.0 References: <20201028221302.66583-1-kholk11@gmail.com> In-Reply-To: <20201028221302.66583-1-kholk11@gmail.com> From: Amit Pundir Date: Mon, 23 Nov 2020 15:42:32 +0530 Message-ID: Subject: Re: [PATCH v9 0/3] Add Novatek NT36xxx touchscreen driver To: kholk11@gmail.com Cc: Dmitry Torokhov , 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, dt , krzk@kernel.org, andy.shevchenko@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, 29 Oct 2020 at 06:32, wrote: > > From: AngeloGioacchino Del Regno > > This patch series adds support for the Novatek NT36xxx Series' In-Cell > touchscreen (integrated into the DriverIC). > > This patch series has been tested against the following devices: > - Sony Xperia 10 (SDM630 Ganges Kirin) > - Sony Xperia 10 Plus (SDM636 Ganges Mermaid) Tested the patch series on Xiaomi Poco F1 (SDM845 Beryllium) using Novatek NT36672A IC. May I suggest adding "novatek,nt36672a" in the list of compatible of_device_id{} as well. Regards, Amit Pundir > > Changes in v2: > - Fixed sparse warnings from lkp kernel test robot > > Changes in v3 (as requested by Dmitry Torokhov): > - Using shorthand u16/u32 (sorry for the overlook!) > - Now using more input and touchscreen APIs > - Fixed useless workqueue involvements > - Removed useless locking > - Switched reads and writes to use regmap > - Moved header contents to nt36xxx.c > - Fixed reset gpio handling > - Other cleanups > - P.S.: Thanks, Dmitry! > > Changes in v4: > - Fixed regmap read length for CRC_ERR_FLAG final check > - Fixed YAML binding, as requested by Krzysztof Kozlowski > > Changes in v5: > - Replaced subsystem maintainer's name with .. mine, > usage of additionalProperties to unevaluatedProperties > and a typo fix for reset-gpios as per Rob Herring's review > - Changed compatible string as per Krzysztof K. request > - Renamed the novatek,nt36xxx.yaml file to just nt36xxx.yaml > in order to now reflect the driver name instead of the DT > compatible > - Fixed blank line at EOF > > Changes in v6: > - Removed include of_gpio.h, added mod_devicetable.h and > gpio/consumer.h > - Added kerneldoc to relevant functions/enum > - Used traditional patterns for error checking where possible > - Documented calls to usleep/msleep > - Using be16_to_cpu / get_unaligned_be16 where possible > - Added helper for CRC error check on retrieved buffer > - Decreased indentation in the CRC reboot recovery function > - Removed instances of error code sum > - Dropped all likely/unlikely optimization as per request > - Removed redundant reset_gpio checks > - Dropped of_match_ptr and ifdefs for CONFIG_OF > > Changes in v7: > - Fixed typo in nt36xxx.c > > Changes in v8: > - Fixed typo reset-gpio -> reset-gpios in dt-bindings > > Changes in v9: > - Includes are now sorted > - Used proposed sizeof variable instead of sizeof type > - Fixed a return value check for common pattern > - Added NULL check to devm_kasprintf call > - Returning ret on probe function to be consistent > > AngeloGioacchino Del Regno (3): > dt-bindings: Add vendor prefix for Novatek Microelectronics Corp. > Input: Add Novatek NT36xxx touchscreen driver > dt-bindings: touchscreen: Add binding for Novatek NT36xxx series > driver > > .../bindings/input/touchscreen/nt36xxx.yaml | 59 ++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > drivers/input/touchscreen/Kconfig | 12 + > drivers/input/touchscreen/Makefile | 1 + > drivers/input/touchscreen/nt36xxx.c | 894 ++++++++++++++++++ > drivers/input/touchscreen/nt36xxx.h | 122 +++ > 6 files changed, 1090 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml > create mode 100644 drivers/input/touchscreen/nt36xxx.c > create mode 100644 drivers/input/touchscreen/nt36xxx.h > > -- > 2.28.0 >