Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2633685pxy; Mon, 3 May 2021 04:49:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTSNePIHAkdfMqzH5IXg5MqGD9074bqdoG+LbaOmFrxT1Uh2t8TjtyMBykqhFgs2Ir5wB4 X-Received: by 2002:a05:6402:254c:: with SMTP id l12mr19171534edb.278.1620042553008; Mon, 03 May 2021 04:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620042553; cv=none; d=google.com; s=arc-20160816; b=YbcMb2Hx1Kivw1GecBCX21K18xnRv0emeuiVD2050M/7DEZxyqT2F1sSfq05/DzhLs HQN/Tyh5f0gUZpY1yaRQ/ghK2unqA088sXv+AD7vNSB5a5BcoAtZ6gN474tP6vZW+YYB Z1V8s691z1bz+l4iUL7n5p36XqJd4voLJhWTn8dPiuZgnqYfp+2hXFV2QZ6OUzGpZQ9j Hr8IG5k/pHoFYNaFCGLCAj4aJGV+TjijcVbJ/7GT4K/ypahEF94O6nB2wRrzPlehdqNe LDBxObV39LLiMHnR8YqOGYUgSXT37Z0lO69TvzJUxGqDAWEM70Ot+kOXKLCkMORK84kM JbVg== 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=sRia0jUDr9uBau1prkDjmHF15huBqmuRF36b7vuKef4=; b=ywW1Uh+CleXNq/2gGgqzxIDsEfYgVZYAKjP9jgdgQlwhuxYkockhBJPRGcx6D10rbI IZlZrYgc9PlEy7xX/ibWBOLhF2jNZnHmlfzErtsY4zRsAoL41MrGKjtpw/kFbqBmZN1c CXgj+VNpNi8Q1tbUzg6RrCetOiLRqb3xGIhU5mveIAXtb18tqAVTdv8bwkVwM5dMDg16 aE2Rxb6nUtx1o6D6Ga2SuzhV5TYHQjJ4DB+AuZ4VzNtDZpTcxudoQFNY9cqZ3OoIHxgJ MrhTaE4P2sj373gOK2MUzghUeAyCuvZwyoULXc6/7iLODxqQcLrsz/1UphpyKQHIo62I q/dQ== 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 m1si11816444ejj.42.2021.05.03.04.48.47; Mon, 03 May 2021 04:49:12 -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 S233467AbhECL2Z (ORCPT + 99 others); Mon, 3 May 2021 07:28:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:48404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233460AbhECL2Y (ORCPT ); Mon, 3 May 2021 07:28:24 -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 A22B3610E6; Mon, 3 May 2021 11:27:27 +0000 (UTC) Date: Mon, 3 May 2021 12:28:18 +0100 From: Jonathan Cameron To: Oleksij Rempel Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , David Jander , Robin van der Gracht , linux-iio@vger.kernel.org, Lars-Peter Clausen , Peter Meerwald-Stadler , Dmitry Torokhov Subject: Re: [PATCH v6 0/3] mainline ti tsc2046 adc driver Message-ID: <20210503122818.59f50e45@jic23-huawei> In-Reply-To: <20210428073208.19570-1-o.rempel@pengutronix.de> References: <20210428073208.19570-1-o.rempel@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 Wed, 28 Apr 2021 09:32:05 +0200 Oleksij Rempel wrote: Hi Oleksij, Series applied with the tweaks as per review to patch 3. Please check I didn't mess those up though. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at it. Thanks, Jonathan > changes v6: > - get blessing from Dmitry Torokhov > - rebase against latest iio/testing > - use simple name for iio_dev->name > - use Jonathan's version for oversampling-ratio description > > changes v5: > - remove type for the settling-time-us property > > changes v4: > - spell fixes > - add more comments > - make code more readable > - move scan_buf to the priv > - use FIELD_GET to extract ADC data > - make some multi line code as one line > - do not use atomic API for trig_more_count > - fix build warning on 64bit system > - add NULL check for the devm_kasprintf() > - use return devm_iio_device_register(), without additional error > printing. > > changes v3: > - different spell fixes > - add some notes about driver structure > - rename the trigger to point on the touchscreen nature of it > - rename DT binding to oversampling-ratio > - make sure we have some defaults in case no DT property is set > > changes v2: > - rework and extend DT binding properties > - remove touchscreen related code from the IIO ADC driver > - make trigger be active longer then IRQ is requesting. This is needed > to get "inactive" samples > - make oversampling and settle time configurable > > TI TSC2046 is a touchscreen controller based on 8 channel ADC. Since most of > this ADC based touchscreen controller share same set of challenges, it > is better keep then as simple IIO ADC devices attached to a generic > resistive-adc-touch driver. > > This driver can replace drivers/input/touchscreen/ads7846.c and has > following advantages over it: > - less code to maintain > - shared code paths (resistive-adc-touch, iio-hwmon, etc) > - can be used as plain IIO ADC to investigate signaling issues or test > real capacity of the plates and attached low-pass filters > (or use the touchscreen as a microphone if you like ;) ) > > Oleksij Rempel (3): > dt-bindings:iio:adc: add generic settling-time-us and > oversampling-ratio channel properties > dt-bindings:iio:adc: add documentation for TI TSC2046 controller > iio: adc: add ADC driver for the TI TSC2046 controller > > .../devicetree/bindings/iio/adc/adc.yaml | 12 + > .../bindings/iio/adc/ti,tsc2046.yaml | 115 +++ > MAINTAINERS | 8 + > drivers/iio/adc/Kconfig | 12 + > drivers/iio/adc/Makefile | 1 + > drivers/iio/adc/ti-tsc2046.c | 720 ++++++++++++++++++ > 6 files changed, 868 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,tsc2046.yaml > create mode 100644 drivers/iio/adc/ti-tsc2046.c >