Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B1B72C9D for ; Mon, 17 Mar 2025 16:01:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742227284; cv=none; b=hTlOLhJBKgE6Ei9gvYpsJnSKZm3OXConmhueBWbTE00u3ewiH/7iMUO3XHn7WJGpg9DTIYJKtsvyGevf4ozwtKNeHvy8wZYsrlLb71xDq4CDjSM2gRXnuIC0w007wGgJESbfZU54gC/Z0rV0nFDNOiQbL+iQfym/TAS7f9d/IPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742227284; c=relaxed/simple; bh=rJe8kVKyH077ow1Mw00nxnv3bgj5DDeZ/UYwSoiFKZk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W15atWwsgw0GzaHCxonaS3FlSpQk8rwgESScebUnKMI3Ur5eEql0gL89QwaHUsPZntTNGMBfCcuSBJMm7MLsrJ6HgyLMxGJknWeEM40kuAnHJwX/nwe+Ibb6GJkorsNPJDvG5FK4p729Quupb+vL4zIzUKzLxj/np1j8YwWD7L0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dcluKTUO; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dcluKTUO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1742227283; x=1773763283; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rJe8kVKyH077ow1Mw00nxnv3bgj5DDeZ/UYwSoiFKZk=; b=dcluKTUO+i0gRH/ZqQv3uTLBFwH1GcKVHWr4GcA48ogt/kJQbRHeSjKu fazB0j78M4aaDbhX2X3azhTuw9iXXZasj2NmoZxocJu+xBuDUIxp3zSU/ UqyK9ibTOi/QlXNAbEPqp1v3D6I3odfbqzfKF+5jSAsHfqH6MGkDxx/M3 Va1F1LqdSq/1AhNd1eatTI1zri78yz5XHW2rFzXC111DSBT9sy4e1g2FK LYmfEDLLfPYMRIRChmHIEKbuufR7nviqzBCjUxuiEtziehCgZJJWlULQo Xxw0rgPwF7yhLEQckIpjGpyvGl/NsD0gwfFdIkY6MizvU5A+ylnZESDWx A==; X-CSE-ConnectionGUID: u/NmNe2oS7u8HLk5vbzscw== X-CSE-MsgGUID: UzHRjdF5TkSV4N2ipgai1w== X-IronPort-AV: E=McAfee;i="6700,10204,11376"; a="54703323" X-IronPort-AV: E=Sophos;i="6.14,254,1736841600"; d="scan'208";a="54703323" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2025 09:01:14 -0700 X-CSE-ConnectionGUID: 63yQND79Scmjk8NuLdValg== X-CSE-MsgGUID: DHM8kifPQZSKZYZM2QSPpA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,254,1736841600"; d="scan'208";a="122479989" Received: from smile.fi.intel.com ([10.237.72.58]) by fmviesa010.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2025 09:01:08 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1tuCtk-00000003Lvv-0VD0; Mon, 17 Mar 2025 18:01:04 +0200 Date: Mon, 17 Mar 2025 18:01:03 +0200 From: Andy Shevchenko To: Matti Vaittinen Cc: Matti Vaittinen , Jonathan Cameron , Lars-Peter Clausen , Lad Prabhakar , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hugo Villeneuve , Nuno Sa , David Lechner , Javier Carrasco , Guillaume Stols , Dumitru Ceclan , Trevor Gamblin , Matteo Martelli , Alisa-Dariana Roman , Ramona Alexandra Nechita , AngeloGioacchino Del Regno , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH v8 03/10] iio: adc: add helpers for parsing ADC nodes Message-ID: References: Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Mar 17, 2025 at 05:50:49PM +0200, Matti Vaittinen wrote: > There are ADC ICs which may have some of the AIN pins usable for other > functions. These ICs may have some of the AIN pins wired so that they > should not be used for ADC. > > (Preferred?) way for marking pins which can be used as ADC inputs is to > add corresponding channels@N nodes in the device tree as described in > the ADC binding yaml. > > Add couple of helper functions which can be used to retrieve the channel > information from the device node. LGTM now, thanks! Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko