Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3478453pxf; Mon, 29 Mar 2021 03:25:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFn/NxrwUk0rbiPWmfbRb6bICu7EgI5bDx+1hr3spHL6oQDp29tLufZvqn8xs+wewzMtEj X-Received: by 2002:a17:906:26d4:: with SMTP id u20mr23508267ejc.114.1617013519832; Mon, 29 Mar 2021 03:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617013519; cv=none; d=google.com; s=arc-20160816; b=gPT/5p7KIp4jqoZmi2NPb4NjKf4y0vrzSjkFdE2ycmI9Ea5jhGYqfn53/qIJk22idE lZQnwOS2HOVQ6lqBv3nlCojsh/ryvTI/C4qBVjrga0FqM0WGU18fP2hn0PMzveenD2Fu /vaXyOdhKBv59H4vENv6+mrgIQlEv4W1bcqrDHch8zL2ynkX76I5t7j/bD4GJ4E2janh f9BWMUV+xHFGVB1pBkpT5QQdxFR6gCV01UJI8lbpvGksKTX6jwid8KLf6P19sgeSJTec odOIcJ8haJmljXwf9W8A9BHyAKUy/8bGgQkz7V2sY0NcmYs8aia83aqls5eSVuI2Sen3 gSoA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=UUYmL2Ad0dh7EgYLYmeZFR0vU3TFCDkpLGSNXPmVcv8=; b=0ha56QGRa9sOYEU1tSzlWCHsfuiuyMAxZEHuIx0AQbPXbXrThUqi+r1VT6eyczMm64 GwYTHu9d6GRAxrmYLq682+qt5YMaB00biizjRW0HB37dyFe2wON1I+JwjeGWROfuN8HJ 7cLjOhUayef5BSa/Olpr6UBpqHXcT9z/D/PIAa7DYNkkXvemnAxzsi0YdP6g/W9SCzHw x+lqf69JSTvTpdC90FZV16zDzG96zRd+9ra1i7RBdb+UWXeGnG1H/JYS2AS+LLHbIL65 ZTRdNqsHBVrfqu8tqxDeZgQ4pNnXVA42zHW5spKre7C5z5fcr5N9+BCKh/LeSEh7Lgao Sw8A== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x12si11958659edd.423.2021.03.29.03.24.56; Mon, 29 Mar 2021 03:25:19 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231659AbhC2KYA (ORCPT + 99 others); Mon, 29 Mar 2021 06:24:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:41890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbhC2KXq (ORCPT ); Mon, 29 Mar 2021 06:23:46 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A2FD61584; Mon, 29 Mar 2021 10:23:41 +0000 (UTC) Date: Mon, 29 Mar 2021 11:23:47 +0100 From: Jonathan Cameron To: Oleksij Rempel Cc: Jonathan Cameron , devicetree@vger.kernel.org, Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, Robin van der Gracht , Dmitry Torokhov , linux-kernel@vger.kernel.org, Andy Shevchenko , Rob Herring , Pengutronix Kernel Team , David Jander Subject: Re: [PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller Message-ID: <20210329112347.6a42628f@jic23-huawei> In-Reply-To: <20210329073838.uneltwujt26dhrnl@pengutronix.de> References: <20210319144509.7627-1-o.rempel@pengutronix.de> <20210319144509.7627-4-o.rempel@pengutronix.de> <20210320154601.0131805d@jic23-huawei> <20210322115635.GA14791@pengutronix.de> <20210322142722.000053a6@Huawei.com> <20210329073838.uneltwujt26dhrnl@pengutronix.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Mar 2021 09:38:38 +0200 Oleksij Rempel wrote: > On Mon, Mar 22, 2021 at 02:27:22PM +0000, Jonathan Cameron wrote: > > > > > +static DECLARE_TI_TSC2046_8_CHANNELS(tsc2046_adc, 12); > > > > > + > > > > > +static const struct tsc2046_adc_dcfg tsc2046_adc_dcfg_tsc2046e = { > > > > > + .channels = tsc2046_adc_channels, > > > > > + .num_channels = ARRAY_SIZE(tsc2046_adc_channels), > > > > > +}; > > > > > + > > > > > > > > Hmm. Flexibility that isn't yet used. Normally I'm pretty resistant > > > > to this going in, unless I'm reassured that there is support for additional > > > > devices already in the pipeline. Is that true here? Otherwise > > > > this is basically unneeded complexity. > > > > > > In the long term this driver should replace > > > drivers/input/touchscreen/ads7846.c > > > > > > This driver supports ti,ads7843, ti,ads7845, ti,ads7846.. at least with > > > following number of supported channels: > > > ti,ads7843 - 4 channels: x, y, aux0, aux1 > > > ti,ads7845 - 3 channels: x, y, aux0 > > > ti,ads7846 - 8 channels... > > > > > > Currently I don't have this HW for testing and there a subtle > > > differences that have to be taken care of and tested. > > > > > > > Note that I'm only going to merge this driver with an explicit statement > > from Dmitry as input maintainer that he is fine with this approach. > > Since there is still no Dmitry's feedback please take a look to the > ti,ads7843 datasheet: > https://www.ti.com/lit/ds/symlink/ads7843.pdf > > On the page 1 you can see, that this device has two general purpose ADC > inputs IN3, IN4. If some one will decide to mainline support for this > pins, will end with IIO ADC driver any way :) Understood, but I'm still going to want Dmitry to give an opinion on this. That might take a little while though as he may well be busy! Jonathan > > Regards, > Oleksij