Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3065166pxb; Sun, 26 Sep 2021 04:26:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIMWGbOPgWVEpOnEpWeM0mRILp4UA4qZwEWAo4oPJYas5FYArTek3xxhBx6JdbVAHi+Cqw X-Received: by 2002:a17:906:5586:: with SMTP id y6mr21416743ejp.189.1632655586558; Sun, 26 Sep 2021 04:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632655586; cv=none; d=google.com; s=arc-20160816; b=bYKkQB66jU6t0CXAlYiBoqdd7W9PuUgPcK3A5uIuCjSRlagCy0YpIfsBqDLbyrie4M Qi7KI6KlF+Hiqibn/g35mh820UqtDWak8jvTfEJiPpEJQaf+yIWFH9YpFjfwR/a40Mtx gxsU3ZTC/X2jZgLzSdVY1Gd6W7K0WgfJAm5XDupho5Rswg26Cv/Kzwm95yqquSYgQ5jV +7YUSMOnqvnqKYk5ZhO4+ANsNrbJxu8DgwhA60pfv6YnxEf8ANFzAnKi6o3wkMj6FkWG C+S+Zh7UwVID7jOpshEiy9P1Pi1ifRhmJtPxn/fcy9coWGjE41uBtvL/s0isDnr2SgmR SJTQ== 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=cxagxYK99y17ZpFbbx/JEG7Q/Xwd2dKYcV8FT3k9C4Q=; b=u3krDyrzwInUczm+atu0ls6peVws8ZP4rS44BWfBrWRWpjmCG6y+1If8lAViCAjlp9 ohk/z0jDGlameex54APMHQA9yz/kMBGgLjjunKqJbqOEKD+ozQyGKn2YPzS9+6guq9QC RoNbVmSt2yJeaBTEDFklp/0CDA0Qn0Vy4VeKSkB0J1QHVJFSukUkxKQfM+WS3m3unIKj xpbvMRgbI+s7ebHpSHSiRui/FlIj8jsIfZ3F1IHslFpULUMYenG0rkbtqsDm7CN5vIBZ sPPmFThWDj+AUIF4+pL9WpHBmAOh9STLotVFaLvGH/Zc8idBH744ub+NAPccU1SVYm9+ 3z1A== 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 t2si14980228edj.148.2021.09.26.04.26.03; Sun, 26 Sep 2021 04:26:26 -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 S230499AbhIZLZ0 (ORCPT + 99 others); Sun, 26 Sep 2021 07:25:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:59494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbhIZLZ0 (ORCPT ); Sun, 26 Sep 2021 07:25:26 -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 56EA360F9B; Sun, 26 Sep 2021 11:23:46 +0000 (UTC) Date: Sun, 26 Sep 2021 12:27:34 +0100 From: Jonathan Cameron To: Billy Tsai Cc: , , , , , , , , , , , , , Subject: Re: [v7 00/11] Add support for ast2600 ADC Message-ID: <20210926122734.2fccf55a@jic23-huawei> In-Reply-To: <20210922081520.30580-1-billy_tsai@aspeedtech.com> References: <20210922081520.30580-1-billy_tsai@aspeedtech.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; 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, 22 Sep 2021 16:15:09 +0800 Billy Tsai wrote: > This patch serials make aspeed_adc.c can support ast2600 and backward > compatible. Hi Billy, Series applied to the togreg branch of iio.git and pushed out as testing for 0-day to poke at it. Note the fix for platform_set_drvdata() is in the fixes branch so there will be a bit of mess around context for patch 1 but that should all resolve in a trivial fashion. Thanks, Jonathan > > Change since v6: > aspeed_adc.c: > - Fix the parameter error for aspeed_adc_unregister_fixed_divider. > > Change since v5: > aspeed_adc.c: > - Use devm_clk_hw_register_divider() > - Enabling and setting the ADC to normal mode is a necessary flow, so > take it out of the condition. > > Change since v4: > dt-bindings: > - Add clocks maxItems. > - Rename the property to meet the property-units.yaml. > - Add the description for the difference between adc0 and adc1. > aspeed_adc.c: > - Use new property name to get internal reference voltage: units from mv > to uv. > - Fix -Wnonnull warning caused by snprintf parameters. > - Add suffix mv to the vref parameters. > - Use ARRAY_SIZE instead of 32. > - Add a reset action for ADC power down and Use devm_iio_device_register. > - Fix typo error. > - Separate the offset interface of ch7 when battery sensing enable > > Change since v3: > dt-bindings: > - Fix properties:aspeed,int_vref_mv type error. > > Change since v2: > dt-bindings: > - Create a new dt-bindings for ast2600 adc > aspeed_adc.c: > - Splits the patch for more details > - Remove version enum and use the flags in model data to distinguish > hardware feature > - Support trimming data get and set. > - Use devm_add_action_or_reset to simplify probe error handling. > > Changes since v1: > dt-bindings: > - Fix the aspeed,adc.yaml check error. > - Add battery-sensing property. > aspeed_adc.c: > - Change the init flow: > Clock and reference voltage setting should be completed before adc > engine enable. > - Change the default sampling rate to meet most user case. > - Add patch #8 to suppoert battery sensing mode. > > Billy Tsai (11): > iio: adc: aspeed: Keep model data to driver data. > iio: adc: aspeed: Restructure the model data > iio: adc: aspeed: Add vref config function > iio: adc: aspeed: Use model_data to set clk scaler. > iio: adc: aspeed: Use devm_add_action_or_reset. > iio: adc: aspeed: Support ast2600 adc. > iio: adc: aspeed: Fix the calculate error of clock. > iio: adc: aspeed: Add func to set sampling rate. > iio: adc: aspeed: Add compensation phase. > iio: adc: aspeed: Support battery sensing. > iio: adc: aspeed: Get and set trimming data. > > drivers/iio/adc/aspeed_adc.c | 554 +++++++++++++++++++++++++++++------ > 1 file changed, 459 insertions(+), 95 deletions(-) >