Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1992467rdh; Sat, 25 Nov 2023 09:25:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcAyGwcRc9/iottt9LlL0v6eauotOGJ0otqBlgUi78lm7bfH6eHgXSHIYE87qBrZsqyyEx X-Received: by 2002:a17:90b:f07:b0:285:82f1:3c62 with SMTP id br7-20020a17090b0f0700b0028582f13c62mr10234564pjb.18.1700933130113; Sat, 25 Nov 2023 09:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700933130; cv=none; d=google.com; s=arc-20160816; b=JbXTookPd4T1mv9wcmaAtDusjKbOnHCaqCFnnVbXmMMV32UcVR7FBHWoRWnwfrXscy dtai8iqG3+n9XCwxIcy5Y1n8jcTSCzpOwE+mu1FfVPcdzScEm5TKSuVHT9RT9UmKI1JP B3Jn5AHz8D8phMkOzuswc6z1FpcvVkJ1ScggRkTUjaAQC4aNvvhfeUJX/o8VbKwPgLgJ qizJB76q6eCKSDU2wsQSlm2av9V4wwCO+CqVu/4N/9wl8yUUPgol2VqO5ScKADgmUarq HetJu8AZt+EKURztNc55t2rpF2g6mbrpqQMLFnsY6oSaINaySyT3DDEutt8JPZuRq/7V Pusw== 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=gIm/E5xC2Ch1tvi6uVs4CWv19wP9flnok0YCHzmHMSA=; fh=JUxMNot9KFQ4aApMNrwnSvef2Uph04Xgh2MX1G4Qffo=; b=WYNx4I+rCEgzGBBbYwUE8HlmvEscKDEdAjSDj16ZUwBDgHhdiicl8WOaQeEXT/TKRV SFpRoyyrMzl+n1F0T8aMHDocnHGnG4hNCS3EcUWaNb9yR6LDdF+/bb7m1IeJ0nwVAZr0 XxuMSeds/93oTCUgtjfN8DGkNN53i6Axh01GmlgPsPx5Clzdj8KHBdSfgHUK65EXf/z8 jS9SGxoWNZbKNi2o3iLyLGOwKOWssT4TWFiTsmlXGxHFOAAP8Ag1T9LT/scw21u18RDr 7RBC8nUptQ14ShcYPcFcrjfpoLNtODCBVKAoncN19/dnkvKDxfFWquXL6QvKng3oZtcB x4Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mAvZNSld; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p9-20020a17090adf8900b0028076ad83e0si6586838pjv.40.2023.11.25.09.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 09:25:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mAvZNSld; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B30118020921; Sat, 25 Nov 2023 09:25:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232014AbjKYRZN (ORCPT + 99 others); Sat, 25 Nov 2023 12:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231808AbjKYRZL (ORCPT ); Sat, 25 Nov 2023 12:25:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 628EA13E for ; Sat, 25 Nov 2023 09:25:18 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45585C433C7; Sat, 25 Nov 2023 17:25:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700933118; bh=htnaOPBl/Kab+ZpjJXrbvc1PC3mpuEB/13T1KfZ4C9w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mAvZNSld3bzLwX67volEbq3Gr9Ucpnw8Hqw7WKvu2R5Iv10FyWlo9EMF6LdlLHNis rYQ3JzskqJlvUybUSiaXjbhMj1YjnHtgOj+f+SF6II3oj21wHzF0PvlOxgdn13wViV 4B6RBmv1B3WwA8DV3IVHloyRNw7H+vVnzxc+Sb9VWvFF3sCEyR4xvjkLzCfjPATdPT GdfydhRR7RxCBYlG+A+v7Qok4QwF1BKCvSk8oaSNgiez/pVj6fz1DIsTJBH5zMYfi7 CkCCbxOyyCxxseJGe6q6n1h+cnA8JO+T+WfhvP+I4RZRBLoWTU0xar62ULpMd7Ou19 CPYdHUKxs+sZg== Date: Sat, 25 Nov 2023 17:25:08 +0000 From: Jonathan Cameron To: George Stark Cc: , , , , , , , , , , , , Subject: Re: [PATCH v2 1/1] iio: adc: meson: add separate config for axg SoC family Message-ID: <20231125172508.2a2242bf@jic23-huawei> In-Reply-To: <20231122074741.154228-1-gnstark@salutedevices.com> References: <20231122074741.154228-1-gnstark@salutedevices.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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 25 Nov 2023 09:25:27 -0800 (PST) On Wed, 22 Nov 2023 10:47:41 +0300 George Stark wrote: > According to Amlogic custom kernels ADC of axg SoC family has > vref_select and requires this setting to work nominally and thus > needs a separate config. > > Signed-off-by: George Stark > Reviewed-by: Neil Armstrong Is this a fix? If so, please provide a fixes tag. Or is it aligning with the vendor kernels and we don't know if it's strictly necessary or not? > --- > drivers/iio/adc/meson_saradc.c | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c > index db280da9edbf..34555a85f131 100644 > --- a/drivers/iio/adc/meson_saradc.c > +++ b/drivers/iio/adc/meson_saradc.c > @@ -1242,6 +1242,20 @@ static const struct meson_sar_adc_param meson_sar_adc_gxl_param = { > .cmv_select = 1, > }; > > +static const struct meson_sar_adc_param meson_sar_adc_axg_param = { > + .has_bl30_integration = true, > + .clock_rate = 1200000, > + .bandgap_reg = MESON_SAR_ADC_REG11, > + .regmap_config = &meson_sar_adc_regmap_config_gxbb, > + .resolution = 12, > + .disable_ring_counter = 1, > + .has_reg11 = true, > + .vref_volatge = 1, > + .has_vref_select = true, > + .vref_select = VREF_VDDA, > + .cmv_select = 1, > +}; > + > static const struct meson_sar_adc_param meson_sar_adc_g12a_param = { > .has_bl30_integration = false, > .clock_rate = 1200000, > @@ -1286,7 +1300,7 @@ static const struct meson_sar_adc_data meson_sar_adc_gxm_data = { > }; > > static const struct meson_sar_adc_data meson_sar_adc_axg_data = { > - .param = &meson_sar_adc_gxl_param, > + .param = &meson_sar_adc_axg_param, > .name = "meson-axg-saradc", > }; >