Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4429238rwd; Sat, 17 Jun 2023 13:37:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58HM+0jruFyTYPkfIqSNoeL+z+aJ9B6nI4wD1JXM+hX3sdlF+kqPoktX+kTNQFEUMjg5/J X-Received: by 2002:a05:6870:499a:b0:1a6:b74e:afd9 with SMTP id ho26-20020a056870499a00b001a6b74eafd9mr3966514oab.35.1687034265426; Sat, 17 Jun 2023 13:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687034265; cv=none; d=google.com; s=arc-20160816; b=UtrL1Dn6BKBiV2eQKp/IkgimPL8I/YephKQ/qx1IoDWOTNanM7uTn+986qpD+R33ZB frDoXfegRuOEP44JplA0ZGN2VEwZ+3lagOrISoB2Ls540csDL050m16GoRnuzCO7SJSW +4fAXr2AyzzSTfEb7roeeaQ34c7b358K8vnw5RljN4NYpgWNqWIuKS0Zi4Cl54CQEphX pFLmqeSN6TRSESxrZNIstIJuw2HcUuWoV6VLbaQSvew3yH99mnnwShFaJNpGwToM+oT0 dOrtZkb4KtAVNzmt+WA1nkmxuDPR3+vW7/e1Zx+9wUc8v0zqLWd7gjoc45V/EGGWpgSX /now== 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 :dkim-signature; bh=w0LH0GFy3/UMbdw8aQ2Eukp20iL2TDEGi01agD6xLSQ=; b=WYrSFSciGKMBkYXSrv6FnTHGUJpn1MXupO6DTNjWDjK+t8m6mAdygxZ6mT2VhsrIai oaQn9DPbI/4ry+E9AXi5WR+xc0a6KxJxs7oGQJKJJpQ0bCE85lp4KVj8uYu/cyjoLph8 HobRGs2k47wBMDtjZT1+SDr9wineMo/srILUMSTkI7QyELPQqxe8hSUUxzRLWCLBEF2B lgiL/7PO+LvBuwvaQqp8jzAvEVP8yxe+Oagl9stJPaP1knfGaoKAXIMeQrCINd0Txt4r SxZPRmQPzBCWVSzIxWixA6u7wmNiar3s8vvf7I6EFp8ciKBazfLoblv51ZD8Pyj5P2i3 8vxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bAxpYRUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i63-20020a636d42000000b0055383dd0c76si3402691pgc.736.2023.06.17.13.37.31; Sat, 17 Jun 2023 13:37:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bAxpYRUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237977AbjFQUHO (ORCPT + 99 others); Sat, 17 Jun 2023 16:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231379AbjFQUHN (ORCPT ); Sat, 17 Jun 2023 16:07:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6796BB2; Sat, 17 Jun 2023 13:07:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0028E60B2C; Sat, 17 Jun 2023 20:07:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF954C433C8; Sat, 17 Jun 2023 20:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687032431; bh=akUaIhagBcheMMLkG/7LBKRbSkqRUijdxyGkrwPVDr0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bAxpYRUC4lZprbJCp81S5RRf0u2D0S1f/fMGvnVAB+zygd2WT7pmA6APGe1teSDqt XKPOD1zUbhMFLrLZanvb8Anbj367cMyHZ92M+00ps0ejbMK1adQl1ov6Y9blEfAI/T vvR0WL0vy8HYnoeb0pwaeeGtxSA3kgRViMzYuoR2BK9LBjTryJ8wOdQSPIsBhhJXCu G5NbyXdphy1Af85mGhOKuk7Y82Iw8kzxVtJzP64Jh3PdNn4Qj3HZYmaxH2mXMDVHxL oCalc+H6WNnnLieSWTcbsmgexXfq33St9mvgv4/4MnEu6zQ80N0bX6RXJTSAvWkwd0 Z0q7ZwLgz7CFA== Date: Sat, 17 Jun 2023 21:06:58 +0100 From: Jonathan Cameron To: Maxim Kiselev Cc: linux-iio@vger.kernel.org, Andy Shevchenko , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Cristian Ciocaltea , Heiko Stuebner , Cosmin Tanislav , Haibo Chen , Leonard =?UTF-8?B?R8O2aHJz?= , Caleb Connolly , Hugo Villeneuve , Mike Looijmans , ChiYuan Huang , Ramona Bolboaca , Ibrahim Tilki , William Breathitt Gray , Arnd Bergmann , ChiaEn Wu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v7 1/3] iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC Message-ID: <20230617210658.43d5b787@jic23-huawei> In-Reply-To: References: <20230615205540.1803975-1-bigunclemax@gmail.com> <20230615205540.1803975-2-bigunclemax@gmail.com> <20230617144855.0388c4ff@jic23-huawei> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 17 Jun 2023 21:52:12 +0300 Maxim Kiselev wrote: > =D1=81=D0=B1, 17 =D0=B8=D1=8E=D0=BD. 2023=E2=80=AF=D0=B3. =D0=B2 16:49, J= onathan Cameron : > > > > On Thu, 15 Jun 2023 23:55:20 +0300 > > Maksim Kiselev wrote: > > =20 > > > The General Purpose ADC (GPADC) can convert the external signal into > > > a certain proportion of digital value, to realize the measurement of > > > analog signal, which can be applied to power detection and key detect= ion. > > > > > > Theoretically, this ADC can support up to 16 channels. All SoCs below > > > contain this GPADC IP. The only difference between them is the number > > > of available channels: > > > > > > T113 - 1 channel > > > D1 - 2 channels > > > R329 - 4 channels > > > T507 - 4 channels > > > > > > Reviewed-by: Andy Shevchenko > > > Signed-off-by: Maksim Kiselev > > > --- > > > drivers/iio/adc/Kconfig | 10 ++ > > > drivers/iio/adc/Makefile | 1 + > > > drivers/iio/adc/sun20i-gpadc-iio.c | 276 +++++++++++++++++++++++++++= ++ > > > 3 files changed, 287 insertions(+) > > > create mode 100644 drivers/iio/adc/sun20i-gpadc-iio.c > > > > > > diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig > > > index eb2b09ef5d5b..deff7ae704ce 100644 > > > --- a/drivers/iio/adc/Kconfig > > > +++ b/drivers/iio/adc/Kconfig > > > @@ -1123,6 +1123,16 @@ config SUN4I_GPADC > > > To compile this driver as a module, choose M here: the module= will be > > > called sun4i-gpadc-iio. > > > > > > +config SUN20I_GPADC > > > + tristate "Support for the Allwinner SoCs GPADC" =20 > > I applied this and started a build test before noticing that this Kconf= ig description > > is very vague and matches the one for the existing 4i driver... =20 >=20 > Indeed. I must have forgotten to change this line when copying from sun4i= ... >=20 > > The 'Support for the' bit also isn't appropriate for what you see in ma= ke menuconfig > > menu etc. Please come up with something descriptive. Maybe > > "sun20i and similar SoC GPADC"? > > > > Bonus points if you change the text for the 4i at the same time to be > > more meaningful. I clearly missed that in review a long time ago! =20 >=20 > Should I do this in a separate patch? Yes please. Thanks, Jonathan