All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add adm1281 support
@ 2023-11-22  3:23 Delphine CC Chiu
  2023-11-22  3:23 ` [PATCH v1 1/2] hwmon: pmbus: " Delphine CC Chiu
  2023-11-22  3:23 ` [PATCH v1 2/2] dt-bindings: " Delphine CC Chiu
  0 siblings, 2 replies; 5+ messages in thread
From: Delphine CC Chiu @ 2023-11-22  3:23 UTC (permalink / raw)
  To: patrick
  Cc: Delphine CC Chiu, Jean Delvare, Guenter Roeck, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jonathan Corbet, linux-hwmon,
	devicetree, linux-kernel, linux-doc

v1 - Add adm1281 binding document and driver support

Delphine CC Chiu (2):
  hwmon: pmbus: Add adm1281 support
  dt-bindings: hwmon: pmbus: Add adm1281 support

 Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml | 2 ++
 Documentation/hwmon/adm1275.rst                          | 8 ++++++++
 drivers/hwmon/pmbus/adm1275.c                            | 8 ++++++--
 3 files changed, 16 insertions(+), 2 deletions(-)

-- 
2.25.1


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

* [PATCH v1 1/2] hwmon: pmbus: Add adm1281 support
  2023-11-22  3:23 [PATCH v1 0/2] Add adm1281 support Delphine CC Chiu
@ 2023-11-22  3:23 ` Delphine CC Chiu
  2023-11-22  6:35   ` Guenter Roeck
  2023-11-22  3:23 ` [PATCH v1 2/2] dt-bindings: " Delphine CC Chiu
  1 sibling, 1 reply; 5+ messages in thread
From: Delphine CC Chiu @ 2023-11-22  3:23 UTC (permalink / raw)
  To: patrick, Guenter Roeck, Jean Delvare, Jonathan Corbet
  Cc: Delphine CC Chiu, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-hwmon, devicetree, linux-kernel, linux-doc

Add device type support for adm1281

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 Documentation/hwmon/adm1275.rst | 8 ++++++++
 drivers/hwmon/pmbus/adm1275.c   | 8 ++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/Documentation/hwmon/adm1275.rst b/Documentation/hwmon/adm1275.rst
index 804590eeabdc..47a13b56e086 100644
--- a/Documentation/hwmon/adm1275.rst
+++ b/Documentation/hwmon/adm1275.rst
@@ -43,6 +43,14 @@ Supported chips:
 
     Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1278.pdf
 
+  * Analog Devices ADM1281
+
+    Prefix: 'adm1281'
+
+    Addresses scanned: -
+
+    Datasheet:
+
   * Analog Devices ADM1293/ADM1294
 
     Prefix: 'adm1293', 'adm1294'
diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c
index e2c61d6fa521..979474ba6bd3 100644
--- a/drivers/hwmon/pmbus/adm1275.c
+++ b/drivers/hwmon/pmbus/adm1275.c
@@ -18,7 +18,7 @@
 #include <linux/log2.h>
 #include "pmbus.h"
 
-enum chips { adm1075, adm1272, adm1275, adm1276, adm1278, adm1293, adm1294 };
+enum chips { adm1075, adm1272, adm1275, adm1276, adm1278, adm1281, adm1293, adm1294 };
 
 #define ADM1275_MFR_STATUS_IOUT_WARN2	BIT(0)
 #define ADM1293_MFR_STATUS_VAUX_UV_WARN	BIT(5)
@@ -362,6 +362,7 @@ static int adm1275_read_word_data(struct i2c_client *client, int page,
 		ret = -ENODATA;
 		break;
 	}
+
 	return ret;
 }
 
@@ -482,6 +483,7 @@ static const struct i2c_device_id adm1275_id[] = {
 	{ "adm1275", adm1275 },
 	{ "adm1276", adm1276 },
 	{ "adm1278", adm1278 },
+	{ "adm1281", adm1281 },
 	{ "adm1293", adm1293 },
 	{ "adm1294", adm1294 },
 	{ }
@@ -555,7 +557,8 @@ static int adm1275_probe(struct i2c_client *client)
 			   client->name, mid->name);
 
 	if (mid->driver_data == adm1272 || mid->driver_data == adm1278 ||
-	    mid->driver_data == adm1293 || mid->driver_data == adm1294)
+	    mid->driver_data == adm1281 || mid->driver_data == adm1293 ||
+	    mid->driver_data == adm1294)
 		config_read_fn = i2c_smbus_read_word_data;
 	else
 		config_read_fn = i2c_smbus_read_byte_data;
@@ -703,6 +706,7 @@ static int adm1275_probe(struct i2c_client *client)
 			  PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT;
 		break;
 	case adm1278:
+	case adm1281:
 		data->have_vout = true;
 		data->have_pin_max = true;
 		data->have_temp_max = true;
-- 
2.25.1


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

* [PATCH v1 2/2] dt-bindings: hwmon: pmbus: Add adm1281 support
  2023-11-22  3:23 [PATCH v1 0/2] Add adm1281 support Delphine CC Chiu
  2023-11-22  3:23 ` [PATCH v1 1/2] hwmon: pmbus: " Delphine CC Chiu
@ 2023-11-22  3:23 ` Delphine CC Chiu
  2023-11-22  7:56   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 5+ messages in thread
From: Delphine CC Chiu @ 2023-11-22  3:23 UTC (permalink / raw)
  To: patrick, Jean Delvare, Guenter Roeck, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Delphine CC Chiu, Jonathan Corbet, linux-hwmon, devicetree,
	linux-kernel, linux-doc

Add device type support for adm1281

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
index ab87f51c5aef..77a358f9104b 100644
--- a/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
+++ b/Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml
@@ -27,6 +27,7 @@ properties:
       - adi,adm1275
       - adi,adm1276
       - adi,adm1278
+      - adi,adm1281
       - adi,adm1293
       - adi,adm1294
 
@@ -94,6 +95,7 @@ allOf:
           contains:
             enum:
               - adi,adm1278
+              - adi,adm1281
               - adi,adm1293
               - adi,adm1294
     then:
-- 
2.25.1


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

* Re: [PATCH v1 1/2] hwmon: pmbus: Add adm1281 support
  2023-11-22  3:23 ` [PATCH v1 1/2] hwmon: pmbus: " Delphine CC Chiu
@ 2023-11-22  6:35   ` Guenter Roeck
  0 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2023-11-22  6:35 UTC (permalink / raw)
  To: Delphine CC Chiu, patrick, Jean Delvare, Jonathan Corbet
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-hwmon,
	devicetree, linux-kernel, linux-doc

On 11/21/23 19:23, Delphine CC Chiu wrote:
> Add device type support for adm1281
> 

s/device type/chip/

> Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> ---
>   Documentation/hwmon/adm1275.rst | 8 ++++++++
>   drivers/hwmon/pmbus/adm1275.c   | 8 ++++++--
>   2 files changed, 14 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/hwmon/adm1275.rst b/Documentation/hwmon/adm1275.rst
> index 804590eeabdc..47a13b56e086 100644
> --- a/Documentation/hwmon/adm1275.rst
> +++ b/Documentation/hwmon/adm1275.rst
> @@ -43,6 +43,14 @@ Supported chips:
>   
>       Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1278.pdf
>   
> +  * Analog Devices ADM1281
> +
> +    Prefix: 'adm1281'
> +
> +    Addresses scanned: -
> +
> +    Datasheet:
> +

Another undocumented / unpublished chip ?

If so, at say something like "Not publicly available".

>     * Analog Devices ADM1293/ADM1294
>   
>       Prefix: 'adm1293', 'adm1294'
> diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c
> index e2c61d6fa521..979474ba6bd3 100644
> --- a/drivers/hwmon/pmbus/adm1275.c
> +++ b/drivers/hwmon/pmbus/adm1275.c
> @@ -18,7 +18,7 @@
>   #include <linux/log2.h>
>   #include "pmbus.h"
>   
> -enum chips { adm1075, adm1272, adm1275, adm1276, adm1278, adm1293, adm1294 };
> +enum chips { adm1075, adm1272, adm1275, adm1276, adm1278, adm1281, adm1293, adm1294 };
>   
>   #define ADM1275_MFR_STATUS_IOUT_WARN2	BIT(0)
>   #define ADM1293_MFR_STATUS_VAUX_UV_WARN	BIT(5)
> @@ -362,6 +362,7 @@ static int adm1275_read_word_data(struct i2c_client *client, int page,
>   		ret = -ENODATA;
>   		break;
>   	}
> +

Please refrain from making cosmetic changes like this.

Thanks,
Guenter

>   	return ret;
>   }
>   


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

* Re: [PATCH v1 2/2] dt-bindings: hwmon: pmbus: Add adm1281 support
  2023-11-22  3:23 ` [PATCH v1 2/2] dt-bindings: " Delphine CC Chiu
@ 2023-11-22  7:56   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-22  7:56 UTC (permalink / raw)
  To: Delphine CC Chiu, patrick, Jean Delvare, Guenter Roeck,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Jonathan Corbet, linux-hwmon, devicetree, linux-kernel, linux-doc

On 22/11/2023 04:23, Delphine CC Chiu wrote:
> Add device type support for adm1281
> 
> Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> ---

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

end of thread, other threads:[~2023-11-22  7:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22  3:23 [PATCH v1 0/2] Add adm1281 support Delphine CC Chiu
2023-11-22  3:23 ` [PATCH v1 1/2] hwmon: pmbus: " Delphine CC Chiu
2023-11-22  6:35   ` Guenter Roeck
2023-11-22  3:23 ` [PATCH v1 2/2] dt-bindings: " Delphine CC Chiu
2023-11-22  7:56   ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.