Linux-Hwmon Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x
@ 2020-07-03 15:37 Daniel M. Weeks
  2020-07-03 21:59 ` Guenter Roeck
  2020-07-15 21:39 ` Rob Herring
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel M. Weeks @ 2020-07-03 15:37 UTC (permalink / raw)
  To: jdelvare, linux, robh+dt; +Cc: linux-hwmon, devicetree, linux-kernel

Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
---
 Documentation/devicetree/bindings/hwmon/lm75.txt | 2 +-
 drivers/hwmon/lm75.c                             | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
index 273616702c51..e5bb554cd2c3 100644
--- a/Documentation/devicetree/bindings/hwmon/lm75.txt
+++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
@@ -14,10 +14,10 @@ Required properties:
 		"maxim,max6626",
 		"maxim,max31725",
 		"maxim,max31726",
-		"maxim,mcp980x",
 		"nxp,pct2075",
 		"st,stds75",
 		"st,stlm75",
+		"microchip,mcp980x",
 		"microchip,tcn75",
 		"ti,tmp100",
 		"ti,tmp101",
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index ba0be48aeadd..a8cfc7e4a685 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -690,10 +690,6 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
 		.compatible = "maxim,max31726",
 		.data = (void *)max31725
 	},
-	{
-		.compatible = "maxim,mcp980x",
-		.data = (void *)mcp980x
-	},
 	{
 		.compatible = "nxp,pct2075",
 		.data = (void *)pct2075
@@ -706,6 +702,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
 		.compatible = "st,stlm75",
 		.data = (void *)stlm75
 	},
+	{
+		.compatible = "microchip,mcp980x",
+		.data = (void *)mcp980x
+	},
 	{
 		.compatible = "microchip,tcn75",
 		.data = (void *)tcn75
-- 
Daniel M. Weeks

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

* Re: [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x
  2020-07-03 15:37 [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x Daniel M. Weeks
@ 2020-07-03 21:59 ` Guenter Roeck
  2020-07-15 21:41   ` Rob Herring
  2020-07-15 21:39 ` Rob Herring
  1 sibling, 1 reply; 6+ messages in thread
From: Guenter Roeck @ 2020-07-03 21:59 UTC (permalink / raw)
  To: Daniel M. Weeks, jdelvare, robh+dt; +Cc: linux-hwmon, devicetree, linux-kernel

On 7/3/20 8:37 AM, Daniel M. Weeks wrote:
> Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
> ---
>  Documentation/devicetree/bindings/hwmon/lm75.txt | 2 +-
>  drivers/hwmon/lm75.c                             | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
> index 273616702c51..e5bb554cd2c3 100644
> --- a/Documentation/devicetree/bindings/hwmon/lm75.txt
> +++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
> @@ -14,10 +14,10 @@ Required properties:
>  		"maxim,max6626",
>  		"maxim,max31725",
>  		"maxim,max31726",
> -		"maxim,mcp980x",
>  		"nxp,pct2075",
>  		"st,stds75",
>  		"st,stlm75",
> +		"microchip,mcp980x",
>  		"microchip,tcn75",
>  		"ti,tmp100",
>  		"ti,tmp101",
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index ba0be48aeadd..a8cfc7e4a685 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -690,10 +690,6 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
>  		.compatible = "maxim,max31726",
>  		.data = (void *)max31725
>  	},
> -	{
> -		.compatible = "maxim,mcp980x",
> -		.data = (void *)mcp980x
> -	},
>  	{
>  		.compatible = "nxp,pct2075",
>  		.data = (void *)pct2075
> @@ -706,6 +702,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
>  		.compatible = "st,stlm75",
>  		.data = (void *)stlm75
>  	},
> +	{
> +		.compatible = "microchip,mcp980x",
> +		.data = (void *)mcp980x

Hmm, makes me wonder if we should replace this with correct chip names
since we are at it. After all, it only includes mcp980{0,1,2,3} and not mcp9805.

Rob, any thoughts ?

Guenter

> +	},
>  	{
>  		.compatible = "microchip,tcn75",
>  		.data = (void *)tcn75
> 


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

* Re: [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x
  2020-07-03 15:37 [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x Daniel M. Weeks
  2020-07-03 21:59 ` Guenter Roeck
@ 2020-07-15 21:39 ` Rob Herring
  2020-07-15 22:19   ` Guenter Roeck
  1 sibling, 1 reply; 6+ messages in thread
From: Rob Herring @ 2020-07-15 21:39 UTC (permalink / raw)
  To: Daniel M. Weeks; +Cc: jdelvare, linux, linux-hwmon, devicetree, linux-kernel

On Fri, Jul 03, 2020 at 11:37:48AM -0400, Daniel M. Weeks wrote:
> Signed-off-by: Daniel M. Weeks <dan@danweeks.net>

Commit message? Isn't this going to break any users? Or we rely on i2c 
stripping the vendor?

> ---
>  Documentation/devicetree/bindings/hwmon/lm75.txt | 2 +-
>  drivers/hwmon/lm75.c                             | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
> index 273616702c51..e5bb554cd2c3 100644
> --- a/Documentation/devicetree/bindings/hwmon/lm75.txt
> +++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
> @@ -14,10 +14,10 @@ Required properties:
>  		"maxim,max6626",
>  		"maxim,max31725",
>  		"maxim,max31726",
> -		"maxim,mcp980x",
>  		"nxp,pct2075",
>  		"st,stds75",
>  		"st,stlm75",
> +		"microchip,mcp980x",
>  		"microchip,tcn75",
>  		"ti,tmp100",
>  		"ti,tmp101",
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index ba0be48aeadd..a8cfc7e4a685 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -690,10 +690,6 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
>  		.compatible = "maxim,max31726",
>  		.data = (void *)max31725
>  	},
> -	{
> -		.compatible = "maxim,mcp980x",
> -		.data = (void *)mcp980x
> -	},
>  	{
>  		.compatible = "nxp,pct2075",
>  		.data = (void *)pct2075
> @@ -706,6 +702,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
>  		.compatible = "st,stlm75",
>  		.data = (void *)stlm75
>  	},
> +	{
> +		.compatible = "microchip,mcp980x",
> +		.data = (void *)mcp980x
> +	},
>  	{
>  		.compatible = "microchip,tcn75",
>  		.data = (void *)tcn75
> -- 
> Daniel M. Weeks

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

* Re: [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x
  2020-07-03 21:59 ` Guenter Roeck
@ 2020-07-15 21:41   ` Rob Herring
  2020-07-15 22:25     ` Guenter Roeck
  0 siblings, 1 reply; 6+ messages in thread
From: Rob Herring @ 2020-07-15 21:41 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Daniel M. Weeks, jdelvare, linux-hwmon, devicetree, linux-kernel

On Fri, Jul 03, 2020 at 02:59:12PM -0700, Guenter Roeck wrote:
> On 7/3/20 8:37 AM, Daniel M. Weeks wrote:
> > Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
> > ---
> >  Documentation/devicetree/bindings/hwmon/lm75.txt | 2 +-
> >  drivers/hwmon/lm75.c                             | 8 ++++----
> >  2 files changed, 5 insertions(+), 5 deletions(-)
> > 
> > diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
> > index 273616702c51..e5bb554cd2c3 100644
> > --- a/Documentation/devicetree/bindings/hwmon/lm75.txt
> > +++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
> > @@ -14,10 +14,10 @@ Required properties:
> >  		"maxim,max6626",
> >  		"maxim,max31725",
> >  		"maxim,max31726",
> > -		"maxim,mcp980x",
> >  		"nxp,pct2075",
> >  		"st,stds75",
> >  		"st,stlm75",
> > +		"microchip,mcp980x",
> >  		"microchip,tcn75",
> >  		"ti,tmp100",
> >  		"ti,tmp101",
> > diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> > index ba0be48aeadd..a8cfc7e4a685 100644
> > --- a/drivers/hwmon/lm75.c
> > +++ b/drivers/hwmon/lm75.c
> > @@ -690,10 +690,6 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
> >  		.compatible = "maxim,max31726",
> >  		.data = (void *)max31725
> >  	},
> > -	{
> > -		.compatible = "maxim,mcp980x",
> > -		.data = (void *)mcp980x
> > -	},
> >  	{
> >  		.compatible = "nxp,pct2075",
> >  		.data = (void *)pct2075
> > @@ -706,6 +702,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
> >  		.compatible = "st,stlm75",
> >  		.data = (void *)stlm75
> >  	},
> > +	{
> > +		.compatible = "microchip,mcp980x",
> > +		.data = (void *)mcp980x
> 
> Hmm, makes me wonder if we should replace this with correct chip names
> since we are at it. After all, it only includes mcp980{0,1,2,3} and not mcp9805.
> 
> Rob, any thoughts ?

Do we need to distinguish the chips? Aren't there existing users?

Rob

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

* Re: [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x
  2020-07-15 21:39 ` Rob Herring
@ 2020-07-15 22:19   ` Guenter Roeck
  0 siblings, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2020-07-15 22:19 UTC (permalink / raw)
  To: Rob Herring
  Cc: Daniel M. Weeks, jdelvare, linux-hwmon, devicetree, linux-kernel

On Wed, Jul 15, 2020 at 03:39:17PM -0600, Rob Herring wrote:
> On Fri, Jul 03, 2020 at 11:37:48AM -0400, Daniel M. Weeks wrote:
> > Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
> 
> Commit message? Isn't this going to break any users? Or we rely on i2c 
> stripping the vendor?
> 
Looks like there are no in-kernel users.

Guenter

> > ---
> >  Documentation/devicetree/bindings/hwmon/lm75.txt | 2 +-
> >  drivers/hwmon/lm75.c                             | 8 ++++----
> >  2 files changed, 5 insertions(+), 5 deletions(-)
> > 
> > diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
> > index 273616702c51..e5bb554cd2c3 100644
> > --- a/Documentation/devicetree/bindings/hwmon/lm75.txt
> > +++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
> > @@ -14,10 +14,10 @@ Required properties:
> >  		"maxim,max6626",
> >  		"maxim,max31725",
> >  		"maxim,max31726",
> > -		"maxim,mcp980x",
> >  		"nxp,pct2075",
> >  		"st,stds75",
> >  		"st,stlm75",
> > +		"microchip,mcp980x",
> >  		"microchip,tcn75",
> >  		"ti,tmp100",
> >  		"ti,tmp101",
> > diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> > index ba0be48aeadd..a8cfc7e4a685 100644
> > --- a/drivers/hwmon/lm75.c
> > +++ b/drivers/hwmon/lm75.c
> > @@ -690,10 +690,6 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
> >  		.compatible = "maxim,max31726",
> >  		.data = (void *)max31725
> >  	},
> > -	{
> > -		.compatible = "maxim,mcp980x",
> > -		.data = (void *)mcp980x
> > -	},
> >  	{
> >  		.compatible = "nxp,pct2075",
> >  		.data = (void *)pct2075
> > @@ -706,6 +702,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
> >  		.compatible = "st,stlm75",
> >  		.data = (void *)stlm75
> >  	},
> > +	{
> > +		.compatible = "microchip,mcp980x",
> > +		.data = (void *)mcp980x
> > +	},
> >  	{
> >  		.compatible = "microchip,tcn75",
> >  		.data = (void *)tcn75
> > -- 
> > Daniel M. Weeks

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

* Re: [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x
  2020-07-15 21:41   ` Rob Herring
@ 2020-07-15 22:25     ` Guenter Roeck
  0 siblings, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2020-07-15 22:25 UTC (permalink / raw)
  To: Rob Herring
  Cc: Daniel M. Weeks, jdelvare, linux-hwmon, devicetree, linux-kernel

On Wed, Jul 15, 2020 at 03:41:44PM -0600, Rob Herring wrote:
> On Fri, Jul 03, 2020 at 02:59:12PM -0700, Guenter Roeck wrote:
> > On 7/3/20 8:37 AM, Daniel M. Weeks wrote:
> > > Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
> > > ---
> > >  Documentation/devicetree/bindings/hwmon/lm75.txt | 2 +-
> > >  drivers/hwmon/lm75.c                             | 8 ++++----
> > >  2 files changed, 5 insertions(+), 5 deletions(-)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/hwmon/lm75.txt b/Documentation/devicetree/bindings/hwmon/lm75.txt
> > > index 273616702c51..e5bb554cd2c3 100644
> > > --- a/Documentation/devicetree/bindings/hwmon/lm75.txt
> > > +++ b/Documentation/devicetree/bindings/hwmon/lm75.txt
> > > @@ -14,10 +14,10 @@ Required properties:
> > >  		"maxim,max6626",
> > >  		"maxim,max31725",
> > >  		"maxim,max31726",
> > > -		"maxim,mcp980x",
> > >  		"nxp,pct2075",
> > >  		"st,stds75",
> > >  		"st,stlm75",
> > > +		"microchip,mcp980x",
> > >  		"microchip,tcn75",
> > >  		"ti,tmp100",
> > >  		"ti,tmp101",
> > > diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> > > index ba0be48aeadd..a8cfc7e4a685 100644
> > > --- a/drivers/hwmon/lm75.c
> > > +++ b/drivers/hwmon/lm75.c
> > > @@ -690,10 +690,6 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
> > >  		.compatible = "maxim,max31726",
> > >  		.data = (void *)max31725
> > >  	},
> > > -	{
> > > -		.compatible = "maxim,mcp980x",
> > > -		.data = (void *)mcp980x
> > > -	},
> > >  	{
> > >  		.compatible = "nxp,pct2075",
> > >  		.data = (void *)pct2075
> > > @@ -706,6 +702,10 @@ static const struct of_device_id __maybe_unused lm75_of_match[] = {
> > >  		.compatible = "st,stlm75",
> > >  		.data = (void *)stlm75
> > >  	},
> > > +	{
> > > +		.compatible = "microchip,mcp980x",
> > > +		.data = (void *)mcp980x
> > 
> > Hmm, makes me wonder if we should replace this with correct chip names
> > since we are at it. After all, it only includes mcp980{0,1,2,3} and not mcp9805.
> > 
> > Rob, any thoughts ?
> 
> Do we need to distinguish the chips? Aren't there existing users?
> 

We don't specifically need to distinguish mcp908[0123], but "x"
does not represent [0-9], only [0-3]. This driver does not support
mcp9805, for example. I don't know how this kind of situation is
handled in other drivers.

Looks like there are no existing in-kernel users. The initial entry for
mcp980x was added back in 2008, with no DT support in mind.
"maxim,mcp980x" was added with of_device_id table in 2017, with no one
(including me) realizing that this is not a Maxim chip.

Guenter

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

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03 15:37 [PATCH] dt-bindings: hwmon: Correct vendor for mcp980x Daniel M. Weeks
2020-07-03 21:59 ` Guenter Roeck
2020-07-15 21:41   ` Rob Herring
2020-07-15 22:25     ` Guenter Roeck
2020-07-15 21:39 ` Rob Herring
2020-07-15 22:19   ` Guenter Roeck

Linux-Hwmon Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-hwmon/0 linux-hwmon/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-hwmon linux-hwmon/ https://lore.kernel.org/linux-hwmon \
		linux-hwmon@vger.kernel.org
	public-inbox-index linux-hwmon

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-hwmon


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git