diff mbox series

iio: adc: imx93: add four channels for imx93 adc

Message ID 20231116071026.611269-1-haibo.chen@nxp.com (mailing list archive)
State Accepted
Headers show
Series iio: adc: imx93: add four channels for imx93 adc | expand

Commit Message

Bough Chen Nov. 16, 2023, 7:10 a.m. UTC
From: Haibo Chen <haibo.chen@nxp.com>

According to the spec, this ADC totally support 8 channels.
i.MX93 contain this ADC with 4 channels connected to pins in
the package. i.MX95 contain this ADC with 8 channels connected
to pins in the package.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
 drivers/iio/adc/imx93_adc.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jonathan Cameron Nov. 26, 2023, 4:03 p.m. UTC | #1
On Thu, 16 Nov 2023 15:10:26 +0800
haibo.chen@nxp.com wrote:

> From: Haibo Chen <haibo.chen@nxp.com>
> 
> According to the spec, this ADC totally support 8 channels.
> i.MX93 contain this ADC with 4 channels connected to pins in
> the package. i.MX95 contain this ADC with 8 channels connected
> to pins in the package.
> 
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Should I treat this as a fix?

If so could you reply with a fixes tag please

Thanks,

Jonathan

> ---
>  drivers/iio/adc/imx93_adc.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/iio/adc/imx93_adc.c b/drivers/iio/adc/imx93_adc.c
> index 9bb1e4ba1aee..4ccf4819f1f1 100644
> --- a/drivers/iio/adc/imx93_adc.c
> +++ b/drivers/iio/adc/imx93_adc.c
> @@ -93,6 +93,10 @@ static const struct iio_chan_spec imx93_adc_iio_channels[] = {
>  	IMX93_ADC_CHAN(1),
>  	IMX93_ADC_CHAN(2),
>  	IMX93_ADC_CHAN(3),
> +	IMX93_ADC_CHAN(4),
> +	IMX93_ADC_CHAN(5),
> +	IMX93_ADC_CHAN(6),
> +	IMX93_ADC_CHAN(7),
>  };
>  
>  static void imx93_adc_power_down(struct imx93_adc *adc)
Bough Chen Nov. 27, 2023, 2:47 a.m. UTC | #2
> -----Original Message-----
> From: Jonathan Cameron <jic23@kernel.org>
> Sent: 2023年11月27日 0:03
> To: Bough Chen <haibo.chen@nxp.com>
> Cc: lars@metafoo.de; shawnguo@kernel.org; s.hauer@pengutronix.de;
> kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> <linux-imx@nxp.com>; linux-iio@vger.kernel.org
> Subject: Re: [PATCH] iio: adc: imx93: add four channels for imx93 adc
> 
> On Thu, 16 Nov 2023 15:10:26 +0800
> haibo.chen@nxp.com wrote:
> 
> > From: Haibo Chen <haibo.chen@nxp.com>
> >
> > According to the spec, this ADC totally support 8 channels.
> > i.MX93 contain this ADC with 4 channels connected to pins in the
> > package. i.MX95 contain this ADC with 8 channels connected to pins in
> > the package.
> >
> > Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> Should I treat this as a fix?
> 
> If so could you reply with a fixes tag please

Yes, please help add:
Fixes: 7d02296ac8b8 ("iio: adc: add imx93 adc support")

Thanks
Haibo Chen
> 
> Thanks,
> 
> Jonathan
> 
> > ---
> >  drivers/iio/adc/imx93_adc.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/drivers/iio/adc/imx93_adc.c b/drivers/iio/adc/imx93_adc.c
> > index 9bb1e4ba1aee..4ccf4819f1f1 100644
> > --- a/drivers/iio/adc/imx93_adc.c
> > +++ b/drivers/iio/adc/imx93_adc.c
> > @@ -93,6 +93,10 @@ static const struct iio_chan_spec
> imx93_adc_iio_channels[] = {
> >  	IMX93_ADC_CHAN(1),
> >  	IMX93_ADC_CHAN(2),
> >  	IMX93_ADC_CHAN(3),
> > +	IMX93_ADC_CHAN(4),
> > +	IMX93_ADC_CHAN(5),
> > +	IMX93_ADC_CHAN(6),
> > +	IMX93_ADC_CHAN(7),
> >  };
> >
> >  static void imx93_adc_power_down(struct imx93_adc *adc)
Jonathan Cameron Dec. 4, 2023, 9:58 a.m. UTC | #3
On Mon, 27 Nov 2023 02:47:31 +0000
Bough Chen <haibo.chen@nxp.com> wrote:

> > -----Original Message-----
> > From: Jonathan Cameron <jic23@kernel.org>
> > Sent: 2023年11月27日 0:03
> > To: Bough Chen <haibo.chen@nxp.com>
> > Cc: lars@metafoo.de; shawnguo@kernel.org; s.hauer@pengutronix.de;
> > kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx
> > <linux-imx@nxp.com>; linux-iio@vger.kernel.org
> > Subject: Re: [PATCH] iio: adc: imx93: add four channels for imx93 adc
> > 
> > On Thu, 16 Nov 2023 15:10:26 +0800
> > haibo.chen@nxp.com wrote:
> >   
> > > From: Haibo Chen <haibo.chen@nxp.com>
> > >
> > > According to the spec, this ADC totally support 8 channels.
> > > i.MX93 contain this ADC with 4 channels connected to pins in the
> > > package. i.MX95 contain this ADC with 8 channels connected to pins in
> > > the package.
> > >
> > > Signed-off-by: Haibo Chen <haibo.chen@nxp.com>  
> > Should I treat this as a fix?
> > 
> > If so could you reply with a fixes tag please  
> 
> Yes, please help add:
> Fixes: 7d02296ac8b8 ("iio: adc: add imx93 adc support")
Applied.  Thanks,

Jonathan

> 
> Thanks
> Haibo Chen
> > 
> > Thanks,
> > 
> > Jonathan
> >   
> > > ---
> > >  drivers/iio/adc/imx93_adc.c | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > >
> > > diff --git a/drivers/iio/adc/imx93_adc.c b/drivers/iio/adc/imx93_adc.c
> > > index 9bb1e4ba1aee..4ccf4819f1f1 100644
> > > --- a/drivers/iio/adc/imx93_adc.c
> > > +++ b/drivers/iio/adc/imx93_adc.c
> > > @@ -93,6 +93,10 @@ static const struct iio_chan_spec  
> > imx93_adc_iio_channels[] = {  
> > >  	IMX93_ADC_CHAN(1),
> > >  	IMX93_ADC_CHAN(2),
> > >  	IMX93_ADC_CHAN(3),
> > > +	IMX93_ADC_CHAN(4),
> > > +	IMX93_ADC_CHAN(5),
> > > +	IMX93_ADC_CHAN(6),
> > > +	IMX93_ADC_CHAN(7),
> > >  };
> > >
> > >  static void imx93_adc_power_down(struct imx93_adc *adc)  
>
diff mbox series

Patch

diff --git a/drivers/iio/adc/imx93_adc.c b/drivers/iio/adc/imx93_adc.c
index 9bb1e4ba1aee..4ccf4819f1f1 100644
--- a/drivers/iio/adc/imx93_adc.c
+++ b/drivers/iio/adc/imx93_adc.c
@@ -93,6 +93,10 @@  static const struct iio_chan_spec imx93_adc_iio_channels[] = {
 	IMX93_ADC_CHAN(1),
 	IMX93_ADC_CHAN(2),
 	IMX93_ADC_CHAN(3),
+	IMX93_ADC_CHAN(4),
+	IMX93_ADC_CHAN(5),
+	IMX93_ADC_CHAN(6),
+	IMX93_ADC_CHAN(7),
 };
 
 static void imx93_adc_power_down(struct imx93_adc *adc)