Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4062286rwd; Sat, 17 Jun 2023 06:57:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BIKRludc9EWIs3fJsNp1cS/zaf0TFXoeEX27ex9I0nlKy/RQcvsCQ23mcXkjWHAJ2aqzg X-Received: by 2002:a17:903:1c2:b0:1b0:3d54:357d with SMTP id e2-20020a17090301c200b001b03d54357dmr4215989plh.24.1687010222897; Sat, 17 Jun 2023 06:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687010222; cv=none; d=google.com; s=arc-20160816; b=0rfT5S6mYqdn983GmPMeTR8OpA0H19SGo9M+aEYSHSFkpuGtHthGCYBcwQYVzAA5li wl0J/mDLylWwJVzFNMF1BISZkN3uPadYfLmTwudioA34QzhxqIFDYPN0xytk4URgIfvp nUbxQx0bCHbPx94rH/xYIX94zP6UnAu80OngHIqiQ4RXnE9NgZ3T4shkMhh3pfQYM9Bi QrIvtNYQjzC5LF20ii8ZJhzaZFv7UlszIHfZrq4LE4E4USk40kPsJm15tJXqqausIPao 0k+d56EuJhet3U4ofxxm+bXND7MOo5p+vzNpNmGkvQRJsIxHMmOm+/XOwqWFQwx/DFQA /GpQ== 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=9AXYjXykF4RhsKemAMXSL5Yut3Uw10u9iARii7qdulc=; b=srk7iV6lDNaw1xlPeebag4wjBj48GDi3G9e08ym5JMhTOrRUuXFD2sI7bkTWKXaj6B yBoXmfg+oErHWBKXyqLyFJJmgosZd+WFkYAEp1CRMydr+f8vyUiTG8D6uS1FejcX9KWy kVnVO2c6HyJirzpepJ5U85MPVnFg7UhII5bqhLi2mfFdkooPYUbiv5KqIr14kJk9UaDT 9pJE5GtBaLt0aiqY4JIXHXu+VFgKPZTYjDG1/TL2EmKW2DSKdhRZhw5rDGTOpF1N4+PG hVtYgOsKBm/W9tQDmEpj8CU1/kHvcQsmen2BgBzI+1Dbu/Ynm9w5AJq/S4969SChnEeg RrAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tjon9Vrm; 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 l4-20020a170903244400b001b00ffb44c5si19045844pls.229.2023.06.17.06.56.50; Sat, 17 Jun 2023 06:57:02 -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=tjon9Vrm; 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 S234975AbjFQNtP (ORCPT + 99 others); Sat, 17 Jun 2023 09:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjFQNtM (ORCPT ); Sat, 17 Jun 2023 09:49:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ECA7E4F; Sat, 17 Jun 2023 06:49:11 -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 1A7CC6122E; Sat, 17 Jun 2023 13:49:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A19BC433C8; Sat, 17 Jun 2023 13:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687009750; bh=504yc8iPPjU8NVzPNBErG7ipfm0t5oxlemyrrJViFX0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tjon9VrmDrWjBjdgLGkvf/8Fb+HKIMLZwjsReYzLHRZ8QGRpVntYczSD/rl+YMHHA Xjwx8Sgg8hmJjCMaC1wi+IgUQRXM0f0anVkTYddzchDDiV68bFQn+H27ye03DP9q2e UUL037fuM7skmcPqT56XRBVi9fzNfIdlyBT/b4LDwD6g+1Hjyr+BA4FA6HDnCupdYw Gkf9895nfE8jlylfQ0Xcop5SqbJDIKJIJOcubgWUe1U9lnaGwGr9mwM7Eo9/vzpMKA btKbwrIEWqNHfwEdpdjr0JjLNTqQ64y1Vtre6qzAtAKmRldzmXGLcMhLLYcPxUE5Fb E5l/44Ln30euQ== Date: Sat, 17 Jun 2023 14:48:55 +0100 From: Jonathan Cameron To: Maksim 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: <20230617144855.0388c4ff@jic23-huawei> In-Reply-To: <20230615205540.1803975-2-bigunclemax@gmail.com> References: <20230615205540.1803975-1-bigunclemax@gmail.com> <20230615205540.1803975-2-bigunclemax@gmail.com> 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=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Thu, 15 Jun 2023 23:55:20 +0300 Maksim Kiselev wrote: > 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 detection. > > 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" I applied this and started a build test before noticing that this Kconfig description is very vague and matches the one for the existing 4i driver... The 'Support for the' bit also isn't appropriate for what you see in make 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! It's now too late anyway for the 6.5 cycle, so no particular rush though I can queue this up for build testing whilst waiting for 6.5-rc1 to come along (I'll rebase my tree on that once available) and it will then end up in next etc. Jonathan > + depends on ARCH_SUNXI || COMPILE_TEST > + help > + Say yes here to build support for Allwinner (D1, T113, T507 and R329) > + SoCs GPADC. This ADC provides up to 16 channels. > + > + To compile this driver as a module, choose M here: the module will be > + called sun20i-gpadc-iio. > +