From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796318297; b=ctu+VDzwntOh6yKlSUnjzc8UkIYhQNGe7NtIwfn1s6WIBiqhYtu9QplAvKSvv5M6rCgo v7/+lq6Es7kFq2/7BUcMttUCDTawnvb2pvoY1b3ljSGvFKjtDfYss0IBWevZey59P7U8d 4zKKpPkzXnhvO8pun1MMGSO8yTwATusBSvrHbdFip4zVJ6U0xTqOhHHj7yTP2Es4INqMk 3Mw5lSNHbg1oUDWhu4mliMnU/4mTYjq58Mp+rsKqlqqU/1apkqR7SCyl8oFozrFwRzFpv 0RyoEsYPoS+yru4fv92rhdK2XoYCE2Tp+uc/h+wknK1ufndz1g+pVrB0JleRLPJU1aA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796318297; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=rALhO8AcxUAmgHEpu/ksWa+unzBk97kCk3C7D294GCY=; b=n2plfNLovhFrMlqRnkkVPKmj1AFMbBs3HzO/+8/83PQf9LzPddfv+SiB0tOVSIvWL2XL KvTaLROiCY4oAr47CT8m5lCvh2FRnx0ahrBfOIVfGKzpgjLNmYbWoXvNGktdE6xsnMTAF 4QP5D0HoEwloAQ8uNuHGRqUS+I1jcvP2ZR2dxFf4YkZ3+Ux004KhvFAhdqMDd4TTun3cY cwMHQUAUqD/wJUOSiwukzEQBgSss/DCJY8YzPfsZ+yTtZnpixG1+Cr1hwfmADHl9465w3 5iS9S38fXhLVKJ2V80wkZjHcD5L0sB3SdSOLHevcxGSLecmgRh1kLM7nxUuLy+EzWWg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lPP+gxdT; arc=none smtp.remote-ip=192.198.163.7 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CEBD606A32F; Thu, 3 Dec 2026 17:18:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8CEBD606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lPP+gxdT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796318297; x=1827854297; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rALhO8AcxUAmgHEpu/ksWa+unzBk97kCk3C7D294GCY=; b=lPP+gxdTxqcsKfkjTvpy+ONtmBO/sBRccL96IE6edS8xmGs7RvLfEyqz 8CFjqbqCD7dF3TYmCXw++X7il355YLHRhedFAnb8UthTsk4v1nbYrQp9A inXynEQDQ76eBXjTeb/WG8t3m3n5EvtrAA8/FN1wfMuGGU61fkRH7zglx GONJVd29M4U+NVCa6mH6qkqvAHCfJWXddu2mb8lZ6P0Aa+AdVKESfp2Si 1R4mM2cVm+7qf3WhNJVy8We0vrXy2BuQ0nEtvvX4b3nZAZDxj+hAN5+JR 0fxhzydgcuCgau0aTAPBg4tWvTkqM1lj0Rzj2NSLAx6pWsTAKNv4svRLu A==; X-CSE-ConnectionGUID: W9s48pGJSwWCfDmc2dNiIw== X-CSE-MsgGUID: gx2klSZwQWK93LPgb0Qmfw== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5142996" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5142996" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:18:16 -0800 X-CSE-ConnectionGUID: QfyqgYCvRJyk7I7HFb1zfg== X-CSE-MsgGUID: aLdKdoXjRhSYKZeuI/eDGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="14106018" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:18:12 -0800 Date: Thu, 3 Dec 2026 19:18:10 +0200 From: Andy Shevchenko To: Janani Sunil Cc: Marcelo Schmitt , Nuno =?iso-8859-1?Q?S=E1?= , Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ana-Maria Cusco , Conor Dooley , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux@analog.com, devicetree@vger.kernel.org, Janani Sunil Subject: Re: [PATCH 00/18] iio: adc: ad4170-4: Fixes and AD4171-8/AD4190-8/AD4195-8 support Message-ID: References: <20261203-ad419x-release-v1-0-18578ab50524@analog.com> X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261203-ad419x-release-v1-0-18578ab50524@analog.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Thu, Dec 03, 2026 at 04:19:40PM +0100, Janani Sunil wrote: > This series fixes several issues in the existing AD4170-4 driver and > binding. The series also adds support for the eight differential input > AD4171-8, AD4190-8 and AD4195-8. > > Datasheets: > https://www.analog.com/media/en/technical-documentation/data-sheets/ad4171-8.pdf > https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-8.pdf > https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-8.pdf > > **Device Overview:** > The AD4171-8, AD4190-8 and AD4195-8 are 24-bit, low noise, multichannel > precision sigma-delta ADCs with an integrated PGA, sinc3/sinc5/sinc5+avg > digital filters, internal 16MHz oscillator, on-chip temperature sensor, > bias voltage generator, low-side power switches and four GPIOs. > > Compared to the 4 differential input parts, they double the analog front > end with 16 analog inputs, AIN0 to AIN15, plus a dedicated AINCOM pin, > configurable as 8 differential or 16 single-ended/pseudo-differential > inputs. > > **Patch Summary:** > Patches 1-15 are fixes and are placed first so they can be applied > independently of the new device support: > 1. Restrict DAC, crystal, extra excitation current and GPIO AC > excitation properties to AD4170-4 in the binding. > 2. Restrict single-channel, common-mode-channel and excitation pin > inputs to valid codes in the binding. > 3. Allow running from the internal oscillator only in the binding. > 4. Fix the voltage bias description in the binding. > 5. Fix out-of-bounds accesses to pins_fn[]. > 6. Fix voltage bias programming. > 7. Fix an overflow in the sample rate fractional part. > 8. Fix the output data rate on AD4190-4 and AD4195-4 (CLOCKDIV). > 9. Fix filter_fs adjustment on filter type change. > 10. Fix a lock order inversion between st->lock and IIO direct mode. > 11. Fix the sinc5 FILTER_FS range on AD4190-4 and AD4195-4. > 12. Do not drive XTAL2 (CLK on AD419x) when using the internal clock. > 13. Restrict current sources and GPIO AC excitation to the parts that > have them. > 14. Require equal chopped excitation currents. > 15. Fix the channel count with 15 external channels. > > Patches 16-18 add the new devices: > 16. Replace ad4170_iout_pin_tbl with range checks (no functional change). > 17. Add the AD4171-8, AD4190-8 and AD4195-8 binding. > 18. Add driver support for AD4171-8, AD4190-8 and AD4195-8. > > **Testing:** > The driver was hardware tested on a Raspberry Pi 4 using the > EVAL-AD4171-8ARDZ evaluation board, on a v6.12.y kernel with the AD4170-4 > driver and this series backported. In this series and in the future try to preserve reversed xmas tree order. Several patches in several places break that. -- With Best Regards, Andy Shevchenko