From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A1AAC4167B for ; Mon, 4 Dec 2023 10:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4W6U5+3073qPGaDNA543uKmgs+w3jP9r9eGZSe5TeNg=; b=Vv7T1WuVgI9MNc 9U4vsD8MibSQihWssS7hUnqtu3rU9iVwq9uhFMv6/fLbpAGeRbweEDZbWa0RDndVEK6IEsT+UKWOn K5OlL6J/vPbbXjZdyfdFC3P68X5ClCArSt3aT9enIxvnj/3L3T98kEdpYk9QY11qWOOuuT9F9LXWg X53Rup8V4eCLlLsmwHvlmNUzGQziPfsRpqZd8xIhFBjALRIf6mSXk0MNgRxNc8D5SNMDxjRjo/kqM WLkDQFU9obMUqoigVS7g89vs1pZ5bMsHTAjrC/VuSM1rqJ8FppEpz5v6RJgAgvk3qANDeAQc0f/tj erRcD1oOCSpfywqCb3ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rA6e6-003bob-2g; Mon, 04 Dec 2023 10:57:51 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rA6e1-003bmz-10; Mon, 04 Dec 2023 10:57:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 8289CB80D9F; Mon, 4 Dec 2023 10:57:40 +0000 (UTC) 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231204_025745_508472_E1DCCCDA X-CRM114-Status: GOOD ( 15.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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", > }; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel