mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iio: dac: ad5686: update of_match_table
@ 2026-05-20 17:57 Alexander A. Klimov
  2026-05-21  8:18 ` Rodrigo Alencar
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander A. Klimov @ 2026-05-20 17:57 UTC (permalink / raw)
  To: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron,
	David Lechner, Nuno Sá,
	Andy Shevchenko, Alexandru Ardelean, Mircea Caprioru,
	open list:IIO SUBSYSTEM AND DRIVERS, open list
  Cc: Alexander A. Klimov

When AD5673R/AD5677R support was added, of_match_table wasn't updated,
so these two devices couldn't be probed based on device tree contents
until now. I fixed this.

Fixes: 477bd010c20e ("iio: dac: ad5686: Add support for AD5673R/AD5677R")
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
---
 drivers/iio/dac/ad5696-i2c.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c
index d3327bca0e07..fb118a02f76e 100644
--- a/drivers/iio/dac/ad5696-i2c.c
+++ b/drivers/iio/dac/ad5696-i2c.c
@@ -91,7 +91,9 @@ static const struct of_device_id ad5686_of_match[] = {
 	{ .compatible = "adi,ad5337r" },
 	{ .compatible = "adi,ad5338r" },
 	{ .compatible = "adi,ad5671r" },
+	{ .compatible = "adi,ad5673r" },
 	{ .compatible = "adi,ad5675r" },
+	{ .compatible = "adi,ad5677r" },
 	{ .compatible = "adi,ad5691r" },
 	{ .compatible = "adi,ad5692r" },
 	{ .compatible = "adi,ad5693" },
-- 
2.54.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: dac: ad5686: update of_match_table
  2026-05-20 17:57 [PATCH] iio: dac: ad5686: update of_match_table Alexander A. Klimov
@ 2026-05-21  8:18 ` Rodrigo Alencar
  2026-05-22 15:05   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Alencar @ 2026-05-21  8:18 UTC (permalink / raw)
  To: Alexander A. Klimov, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, Alexandru Ardelean, Mircea Caprioru,
	open list:IIO SUBSYSTEM AND DRIVERS, open list

On 26/05/20 07:57PM, Alexander A. Klimov wrote:
> When AD5673R/AD5677R support was added, of_match_table wasn't updated,
> so these two devices couldn't be probed based on device tree contents
> until now. I fixed this.
> 
> Fixes: 477bd010c20e ("iio: dac: ad5686: Add support for AD5673R/AD5677R")
> Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
> ---
>  drivers/iio/dac/ad5696-i2c.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c
> index d3327bca0e07..fb118a02f76e 100644
> --- a/drivers/iio/dac/ad5696-i2c.c
> +++ b/drivers/iio/dac/ad5696-i2c.c
> @@ -91,7 +91,9 @@ static const struct of_device_id ad5686_of_match[] = {
>  	{ .compatible = "adi,ad5337r" },
>  	{ .compatible = "adi,ad5338r" },
>  	{ .compatible = "adi,ad5671r" },
> +	{ .compatible = "adi,ad5673r" },
>  	{ .compatible = "adi,ad5675r" },
> +	{ .compatible = "adi,ad5677r" },
>  	{ .compatible = "adi,ad5691r" },
>  	{ .compatible = "adi,ad5692r" },
>  	{ .compatible = "adi,ad5693" },
> -- 
> 2.54.0
> 

I am aware of this, but it is going to conflict with:
https://lore.kernel.org/linux-iio/20260505-ad5686-fixes-v6-0-c2d5f7be32be@analog.com/

This is also to be handled by follow up work:
https://lore.kernel.org/all/20260422-ad5313r-iio-support-v1-1-ed7dca001d1b@analog.com/
https://lore.kernel.org/all/20260422-ad5313r-iio-support-v1-9-ed7dca001d1b@analog.com/

checkpatch would complain about this, once the dt-binding needs to come first.

-- 
Kind regards,

Rodrigo Alencar

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: dac: ad5686: update of_match_table
  2026-05-21  8:18 ` Rodrigo Alencar
@ 2026-05-22 15:05   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2026-05-22 15:05 UTC (permalink / raw)
  To: Rodrigo Alencar
  Cc: Alexander A. Klimov, Lars-Peter Clausen, Michael Hennerich,
	David Lechner, Nuno Sá,
	Andy Shevchenko, Alexandru Ardelean, Mircea Caprioru,
	open list:IIO SUBSYSTEM AND DRIVERS, open list

On Thu, 21 May 2026 09:18:24 +0100
Rodrigo Alencar <455.rodrigo.alencar@gmail.com> wrote:

> On 26/05/20 07:57PM, Alexander A. Klimov wrote:
> > When AD5673R/AD5677R support was added, of_match_table wasn't updated,
> > so these two devices couldn't be probed based on device tree contents
> > until now. I fixed this.
> > 
> > Fixes: 477bd010c20e ("iio: dac: ad5686: Add support for AD5673R/AD5677R")
> > Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
> > ---
> >  drivers/iio/dac/ad5696-i2c.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c
> > index d3327bca0e07..fb118a02f76e 100644
> > --- a/drivers/iio/dac/ad5696-i2c.c
> > +++ b/drivers/iio/dac/ad5696-i2c.c
> > @@ -91,7 +91,9 @@ static const struct of_device_id ad5686_of_match[] = {
> >  	{ .compatible = "adi,ad5337r" },
> >  	{ .compatible = "adi,ad5338r" },
> >  	{ .compatible = "adi,ad5671r" },
> > +	{ .compatible = "adi,ad5673r" },
> >  	{ .compatible = "adi,ad5675r" },
> > +	{ .compatible = "adi,ad5677r" },
> >  	{ .compatible = "adi,ad5691r" },
> >  	{ .compatible = "adi,ad5692r" },
> >  	{ .compatible = "adi,ad5693" },
> > -- 
> > 2.54.0
> >   
> 
> I am aware of this, but it is going to conflict with:
> https://lore.kernel.org/linux-iio/20260505-ad5686-fixes-v6-0-c2d5f7be32be@analog.com/
> 
> This is also to be handled by follow up work:
> https://lore.kernel.org/all/20260422-ad5313r-iio-support-v1-1-ed7dca001d1b@analog.com/
> https://lore.kernel.org/all/20260422-ad5313r-iio-support-v1-9-ed7dca001d1b@analog.com/
> 
> checkpatch would complain about this, once the dt-binding needs to come first.
> 

I'll assume for now the fix will show up as part of Rodrigo's work.

Thanks

Jonathan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-22 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-20 17:57 [PATCH] iio: dac: ad5686: update of_match_table Alexander A. Klimov
2026-05-21  8:18 ` Rodrigo Alencar
2026-05-22 15:05   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®