Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2480876pxb; Tue, 9 Mar 2021 03:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZEuD2M2LL6G0jKu5Ji2H67cVc4XAQs4eGlPv9UjuXjyJ/RZMfkIWKeFUEX/B+eypnNjAC X-Received: by 2002:a17:906:5607:: with SMTP id f7mr19327063ejq.262.1615290250242; Tue, 09 Mar 2021 03:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615290250; cv=none; d=google.com; s=arc-20160816; b=hocM2CBaBSi0HRPAWW2zgFEIMpcYTgQBIJ+oJXDGy2pyuE4KNNNU33XefC3+Itr6TP g+sKOX2fwY8c5nrSbgKbWJhHNVoFVg0vIkgYZEOuvUbkxEI28FawWrRo76EKABcJh9P4 /KQG1B1xp4lwMbcXwF3qUGkHpRXaKa4Kn5CPJn9tYYDR6IpxQ3fX0d/Nz81FC7nI+c/Q SZOvDFngR2OQSuRXUweFATnwnbsYUWu4or+2YhxjOCWqPmyOM6y2TrVdJ+DvpMN6BkRh 2oIVQRPOitlSSlu5vDkxL7FcNp5Qbf/mqrUZnnrW6Wb5NZqmIY4jSi8tlAWlHZ5luGiw 6uqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qtDFIGpF+HCleoDP3t7vVTQZf1RnIPlgfv8RbGyfFG8=; b=ErKHMc/XWSkdqUHOVeNaVjcEYhW7b/mV26ITZ6KRphURLEHax08NjuKRyF3/xC29Cp 91V3XGzT5Mg/22mNBKf8AJCd7A49Ef8oHZHv9rjA8ugfSkq2wdQ836vCHduW9U7E+FMH dqfyPvFwwwdheWJAV/9/9vJaPmgm38I/zKK1699m+DEj/M2phRaaKWaGS4GEsEEW8+rT bacvoh7qO805OnUduGwE8wQfuDdOxLh0vDaYtaBXpYsCxysFVZVy18gBri2WlIbVxXJr 1eVI7IJOc54mgrGDKySPJKMglqUo9FevgwayT4YcoNJOXILrmbV5St0kZBHLcQrgKygI r4AQ== 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 g3si2919177edw.592.2021.03.09.03.43.47; Tue, 09 Mar 2021 03:44:10 -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; 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 S230303AbhCILmX (ORCPT + 99 others); Tue, 9 Mar 2021 06:42:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230373AbhCILmC (ORCPT ); Tue, 9 Mar 2021 06:42:02 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADA4EC06174A for ; Tue, 9 Mar 2021 03:42:02 -0800 (PST) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJakJ-000179-Dx; Tue, 09 Mar 2021 12:41:51 +0100 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1lJakI-0006Xk-R7; Tue, 09 Mar 2021 12:41:50 +0100 Date: Tue, 9 Mar 2021 12:41:50 +0100 From: Oleksij Rempel To: Andy Shevchenko Cc: Jonathan Cameron , Rob Herring , Jonathan Cameron , devicetree , Linux Kernel Mailing List , Pengutronix Kernel Team , David Jander , Robin van der Gracht , linux-iio , Lars-Peter Clausen , Peter Meerwald-Stadler , Dmitry Torokhov Subject: Re: [PATCH v1 2/2] iio: adc: add ADC driver for the TI TSC2046 controller Message-ID: <20210309114150.lubvvtqblw2y5zlk@pengutronix.de> References: <20210305133813.27967-1-o.rempel@pengutronix.de> <20210305133813.27967-3-o.rempel@pengutronix.de> <20210305190239.000075fe@Huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 12:41:05 up 97 days, 1:47, 44 users, load average: 0.07, 0.06, 0.02 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 01:05:27PM +0200, Andy Shevchenko wrote: > On Fri, Mar 5, 2021 at 9:05 PM Jonathan Cameron > wrote: > > > > On Fri, 5 Mar 2021 14:38:13 +0100 > > Oleksij Rempel wrote: > > > > > Basically the TI TSC2046 touchscreen controller is 8 channel ADC optimized for > > > the touchscreen use case. By implementing it as IIO ADC device, we can > > > make use of resistive-adc-touch and iio-hwmon drivers. > > > > > > So far, this driver was tested with custom version of resistive-adc-touch driver, > > > since it need to be extended to make use of Z1 and Z2 channels. The X/Y > > > are working without additional changes. > > > > > > Signed-off-by: Oleksij Rempel > > > > Hi Oleksij, > > > > To consider this as a possible long term route instead of just making this > > a touchscreen driver, we'll want to see those mods to the resistive-adc-touch. > > Of course that doesn't stop review of this in the meantime. > > > > There are quite a few things in here that feel pretty specific to the touchscreen > > usecase. That makes me wonder if this is a sensible approach or not. > > I'm wondering if this has any similarities with existing drivers under > drivers/input/touchscreen. Yes, for example: drivers/input/touchscreen/ads7846.c Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |