Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2622195rdb; Mon, 4 Dec 2023 02:58:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHxsVeYVHmDUOBqVHXNvRgUyaVxCi+Muox/7pGtZVZqsB9mKYnOYnDFM0kJuh6IAYCKNc4 X-Received: by 2002:a05:6359:2d42:b0:170:17eb:9c55 with SMTP id rm2-20020a0563592d4200b0017017eb9c55mr3429284rwb.54.1701687511176; Mon, 04 Dec 2023 02:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701687511; cv=none; d=google.com; s=arc-20160816; b=wRYx2ycfzf0zoYaHdW5o3yr2TdSzi2NmgMmbyj9ezxa5HwUklDphCDeXsCfx2IVKHT r/HOWp+2lj7d1yaFvipA4aJD2LNnaezRRvVHo+3Yu9hEVQziA2AMFTjQkpxrhrgf0xWP oUsi2Dlsa4t0b/r0XdQZnYJp/YFVhg9ucpYOFvipFCGm4IST1oYvDAVx9Jz6mlVcA56A aZsVpM76kFlUhFQEd34787Z4VBX2CpEG/nBb3xTqJVMzRmsPu8dycg2mBwiEKDZivJfN ULSn8A9vNahlYCvEJhPi3O0vMGXvGcTxj8MvE5C4ny/V/wyS40odSvWVgh5aZxF51oGZ soVA== 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=9rcAsyLbAbFTtcRaoYWZdawlMMxXpZEsAJk2LvgtCA4=; fh=JUxMNot9KFQ4aApMNrwnSvef2Uph04Xgh2MX1G4Qffo=; b=vdOTfyDIdq7Jaw1c+lcjFFIyMMvolwPrsYKQdQ8qFjkFesM5nYSa38qgq7C1mOd2fA ugQFfgVML7wdY12pCufOP8OfqP2d0FHSIgGrrfl/iTbGFro+rQNvCZ1FTdRd/IcTF3Su t9gsgu1TVK2ByngR/X/yhrxF0rEftz84FYKrw8wu3xgS4+Xaewj+PTvf/6VaoHEyb8G/ ttuCvVGFSpyNpnX3fWJZZAs6PNJo/WHswmVGqZPqDg7Z5rOUHgTJ9Xydciuil8hpnf5P +MLzIFev54/oInvgsmEO244ExmF2YUSOr97y05CsjXVqUVhvH0V+JxkLimTxNK9RdQ9t zN3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ESX7vJif; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u8-20020a056a00098800b006ce515fc4f3si1555520pfg.226.2023.12.04.02.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:58:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ESX7vJif; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id C52B88092CB1; Mon, 4 Dec 2023 02:58:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235386AbjLDK56 (ORCPT + 99 others); Mon, 4 Dec 2023 05:57:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235537AbjLDK5n (ORCPT ); Mon, 4 Dec 2023 05:57:43 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5F818D for ; Mon, 4 Dec 2023 02:57:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37F22C433C8; Mon, 4 Dec 2023 10:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701687459; bh=I8qqFwU/CNFBFB1RbaJ0Hz5lP25JM/DystuP6KB/gqw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ESX7vJifVGf9HThVts8MfAnPbTBy7uX0FPUy4zk3R9O4JSLCtEhVnr77mwNbTaa90 B29/HPII4ljy0fbh9Tm/30J7v6lQBV9eZx2+5TNGZfRf+2kuC51tqxg471FFh7Rl1k as2/BNdKxjtFtE5VWZvz/AxPlm/uZY+F4xMg0C8j6nS8USfZ+ZHLqnkR0g5zkXuJRy MqOXTSKDjQBQ8E294Dmfd/R1Nr/etEKVcx/2t6mqYD7Jfc/YSi0xxre3ggKCBsvEmc EpGBGG9LkoH8RfrsRWWQlVls4Kr2IlAJAFQ3YOVtFzU5FWPxuw/kH+cXsTQ+700YZk IbirFw/vFBO7g== Date: Mon, 4 Dec 2023 10:57:30 +0000 From: Jonathan Cameron To: George Stark Cc: , , , , , , , , , , , , Subject: Re: [PATCH v3 1/1] iio: adc: meson: add separate config for axg SoC family Message-ID: <20231204105730.49623b12@jic23-huawei> In-Reply-To: <20231127235558.71995-1-gnstark@salutedevices.com> References: <20231127235558.71995-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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 02:58:29 -0800 (PST) On Tue, 28 Nov 2023 02:55:58 +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. > > Fixes: 90c6241860bf ("iio: adc: meson: init voltage control bits") > Signed-off-by: George Stark > Reviewed-by: Neil Armstrong Applied to the fixes-togreg branch of iio.git and marked for stable. Thanks, jonathan > --- > 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", > }; >