Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1516776pxu; Thu, 8 Oct 2020 13:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMQJnsACvE2jpqDhUhnt4l6vlYnmGPUMLXhkOP8DRztdxm2qDQbbWiCqskEPikUYVeqeua X-Received: by 2002:a17:906:d9c3:: with SMTP id qk3mr10592943ejb.207.1602189261070; Thu, 08 Oct 2020 13:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602189261; cv=none; d=google.com; s=arc-20160816; b=EmGqfGQEwjKXIeaxNeCdwDYPucw1ldTIdWCi80iC77cFjggfI72Gj/6jUKoYNQAfKy Gk6J9ayxOu9Xo/IS+NAlweMY4h3iHj0xTvFR6fRbMqCug3dcuEgBsqu0iALVqrTmDzKG aGSVHyqwRxIE7oogJchT5QGOSj+kS7rIQIPDTifLOuapKVrxBk9Zq7y2Sw8kLX/c4ssg KIyMt6TBQElbclzBdjSBM9tYGE1g8WQTF2wYjglsCTAevwy7G4pGSnTS93Ew2b5RIcnv a/N7wOOfF1Q5hPkhOicRtzCy6d8aSgJUB0rzVz6+gnULB9E5qon+DZb92bAWoXk3qXke KayQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2YLvCUXrjTOYrDRqLi+QFImHhWm8A6K5Fu1cSArDLzE=; b=hzxAhpOhOr9QPm8PoO+inN7L3aysnJwshd+exqRbrOurRYaY5Jdn+GW3n1WAglvPtz gPa1MaEdsWG0kieU6Su9kK17vMJSCyyIb2aa6/SzsNF39iVMXcnCzduzrl3tGDhst58F 4F8xYjRQoMvQ1/QT9lSnotriX70BRX85pMzS8i+/WSoukA4ET6tHhkBVE/59mj3ohB0w sG4csTk9WwhgBRb7h0UEP15GF27t1M/FFlgzoDiP9J+dwvppV5On32fCwCmQIBj6/GsJ 7q4N6omxwKJgaLtzM8reHn3prj/IsG2Nm1ZYAElx4kpS2VWrNkyidGrpKzjaiorMYMjo U5HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B6Z38E9a; 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 ds7si5223848ejc.648.2020.10.08.13.33.57; Thu, 08 Oct 2020 13:34: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=B6Z38E9a; 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 S1726022AbgJHSPV (ORCPT + 99 others); Thu, 8 Oct 2020 14:15:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgJHSPU (ORCPT ); Thu, 8 Oct 2020 14:15:20 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5928AC061755; Thu, 8 Oct 2020 11:15:20 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id n6so7342423wrm.13; Thu, 08 Oct 2020 11:15:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2YLvCUXrjTOYrDRqLi+QFImHhWm8A6K5Fu1cSArDLzE=; b=B6Z38E9aod5VJnr/QNztjoxZ9InxeEyVa/kHdYYVUhgMDxSaBVA2vtmK82uTZPNJoO BxC/cmY0GoBOoJxuBMznYOuo9wtXnyr3dpJEBhpQNENPZQt8gXvW1y+JOjoeDnyOjuYQ ha++7sPlZucAe+ose7gsJkTo+eO7hKMmdHdFArQV8blpdLxeq+Agk1RDNoIsKjHmf9jH PgVwWwwzddfFLCwYBQpBJSuGSRLsVxM3ow26gzYW62nA7dKB2WlDDBfbM2pwUIR1fvpO Of0QCDTwClNgXb/tfMbOU2gtmwCJRNXhtL7PdbaM5BHG2pk6M8ut9O+vt/q6Ats8gCNa lfMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2YLvCUXrjTOYrDRqLi+QFImHhWm8A6K5Fu1cSArDLzE=; b=bPoGuM5aZNs+kS0h7YxAD6thfVZwEn3Qdungs/oKK8w4eE+7JW3KVtYQbGOdvhcnr9 GwnUkyII6VdY63CxoVFWsjaMKFNDJ8SjceejlD63Awtgw8RByzH5UxaD/WUDGqDdY2oS HZf/kBoSEO7qGOwpEj6HnQEu7NF0QXg5eRF1uiQqDxzaljwBglcoZXGMHbJ9QEZFfAr2 BxY8ekx+VOy5lQhiBrJAY9pTVqW0gaVNbTFR8M3DwYNmnRw/WUWLlGr3Jsv8UmOwhFi6 IH7KON3/zj8rb67i5if3hPIsq7xANzfdMZwdfiV0WoeF92IrZavAPFXOA0l98DEFcTzk UKJA== X-Gm-Message-State: AOAM530nplwz2YayvYtrJ12FPpvEptmt8TaD8QASkjD5bDH5muZkugGF 6K6fwAmrPIfrbj8bNp6Frvo= X-Received: by 2002:adf:ec86:: with SMTP id z6mr10924969wrn.109.1602180918751; Thu, 08 Oct 2020 11:15:18 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu ([2.237.20.237]) by smtp.gmail.com with ESMTPSA id e7sm8897285wrm.6.2020.10.08.11.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 11:15:17 -0700 (PDT) From: kholk11@gmail.com To: dmitry.torokhov@gmail.com Cc: robh+dt@kernel.org, rydberg@bitmath.org, priv.luk@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kholk11@gmail.com, marijns95@gmail.com, konradybcio@gmail.com, martin.botka1@gmail.com, phone-devel@vger.kernel.org, devicetree@vger.kernel.org, krzk@kernel.org Subject: [PATCH v4 0/3] Add Novatek NT36xxx touchscreen driver Date: Thu, 8 Oct 2020 20:15:11 +0200 Message-Id: <20201008181514.668548-1-kholk11@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) 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 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 .../input/touchscreen/novatek,nt36xxx.yaml | 59 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/nt36xxx.c | 816 ++++++++++++++++++ 5 files changed, 890 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/novatek,nt36xxx.yaml create mode 100644 drivers/input/touchscreen/nt36xxx.c -- 2.28.0