Add adm1281 support
Subsystems (3)
cover Add adm1281 support
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(-)
Signature · 1 line
2.25.1
PATCH 1/2 hwmon: pmbus: Add adm1281 support
Add device type support for adm1281
--- Documentation/hwmon/adm1275.rst | 8 ++++++++ drivers/hwmon/pmbus/adm1275.c | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-)
Documentation/hwmon/adm1275.rst +8 -0
@@ -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'
drivers/hwmon/pmbus/adm1275.c +6 -2
@@ -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;
Signature · 1 line
2.25.1
Guenter Roeck
maintainerRe: [PATCH v1 1/2] hwmon: pmbus: Add adm1281 support
Quoted 2 lines · Delphine CC Chiu
Add device type support for adm1281
s/device type/chip/
Quoted 12 lines
Signed-off-by Delphine CC Chiu <[email protected]>--- Documentation/hwmon/adm1275.rst | 8 ++++++++ drivers/hwmon/pmbus/adm1275.c | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-)Documentation/hwmon/adm1275.rst +0
-0@@ -43,6 +43,14 @@ Supported chips:
Documentation/hwmon/adm1275.rst Supported chips: · line 53
Quoted 10 lines
Documentation/hwmon/adm1275.rst +8
-0Datasheet: 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".
Quoted 17 lines
Documentation/hwmon/adm1275.rst +0
-0* Analog Devices ADM1293/ADM1294 Prefix: 'adm1293', 'adm1294'drivers/hwmon/pmbus/adm1275.c +1
-1@@ -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)
drivers/hwmon/pmbus/adm1275.c static int adm1275_read_word_data(struct i2c_client *client, int page, · line 365
Quoted 4 lines
drivers/hwmon/pmbus/adm1275.c +1
-0@@ -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
Quoted 3 lines
drivers/hwmon/pmbus/adm1275.c +0
-0return ret; }
PATCH 2/2 dt-bindings: hwmon: pmbus: Add adm1281 support
In reply to Delphine CC ChiuAdd device type support for adm1281
--- Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml +2 -0
@@ -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:
Signature · 1 line
2.25.1
Re: [PATCH v1 2/2] dt-bindings: hwmon: pmbus: Add adm1281 support
Quoted 4 lines · Delphine CC Chiu
Add device type support for adm1281
Signed-off-by Delphine CC Chiu <[email protected]>---
Best regards,
Krzysztof