hwmon (ds1621): Add DS1731 chip support to ds1621 driver
Subsystems (2)
PATCH 1/2 hwmon (ds1621): Add DS1731 chip support to ds1621 driver
These changes add DS1731 chip support to the ds1621 driver, Kconfig, and documentation.
--- Documentation/hwmon/ds1621 | 22 ++++++++++++++-------- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ds1621.c | 12 +++++++----- 3 files changed, 22 insertions(+), 13 deletions(-)
Documentation/hwmon/ds1621 +14 -8
@@ -22,6 +22,11 @@ Supported chips: Addresses scanned: none Datasheet: Publicly available from www.maximintegrated.com + * Maxim Integrated DS1731 + Prefix: 'ds1731' + Addresses scanned: none + Datasheet: Publicly available from www.maximintegrated.com + Authors: Christian W. Zuckschwerdt <[email protected]> valuable contributions by Jan M. Sendler <[email protected]>
@@ -72,7 +77,7 @@ Temperature conversion of the DS1621 takes up to 1000ms; internal access to non-volatile registers may last for 10ms or below. The DS1625 is pin compatible and functionally equivalent with the DS1621, -but the DS1621 is meant to replace it. The DS1631 and DS1721 are also +but the DS1621 is meant to replace it. The DS1631, DS1721, & DS1731 are also pin compatible with the DS1621, but provide multi-resolution support. Since there is no version or vendor identification register, there is
@@ -96,14 +101,15 @@ One additional note about the ds1721 is that although the data sheet says the temperature flags (THF and TLF) are used internally, these flags do get set and cleared as the actual temperature crosses the min or max settings. -The DS1631 is also pin compatible with the DS1621 and feature compatible with -the DS1721, however the DS1631 accuracy is +/- 0.5 degree Celius over the -same range. +The DS1631 and DS1731 are pin compatible with the DS1621 and feature compatible +with the DS1721, however, the DS1631 accuracy is +/- 0.5 degree Celius over +the 0 to +70 degrees, while the DS1731 accuracy is +/-1 degree Celius over the +-10 to +85 degree range. -Changing the DS1631/1721 resolution mode affects the conversion time and can be -done from userspace, via the device 'update_interval' sysfs attribute. This -attribute will normalize range of input values to the device maximum resolution -values defined in the datasheet as such: +Changing the DS1631, DS1721, or DS1731 resolution mode affects the conversion +time and can be done from userspace, via the device 'update_interval' sysfs +attribute. This attribute will normalize range of input values to the device +maximum resolution values defined in the datasheet as such: Resolution Conversion Time Input Range (C/LSB) (msec) (msec)
drivers/hwmon/Kconfig +1 -0
@@ -324,6 +324,7 @@ config SENSORS_DS1621 - Dallas Semiconductor DS1625 - Maxim Integrated DS1631 - Maxim Integrated DS1721 + - Maxim Integrated DS1731 This driver can also be built as a module. If so, the module will be called ds1621.
drivers/hwmon/ds1621.c +7 -5
@@ -10,8 +10,8 @@* resolution, a thermal alarm output (Tout), and user-defined minimum * and maximum temperature thresholds (TH & TL). * -* The DS1625, DS1631, & DS1721 are pin compatible with the DS1621 and -* similar in operation, with slight variations as noted in the device +* The DS1625, DS1631, DS1721, & DS1731 are pin compatible with the DS1621 +* and similar in operation, with slight variations as noted in the device * datasheets (please refer to www.maximintegrated.com for specific * device information). *
@@ -47,7 +47,7 @@#include <linux/kernel.h> /* Supported devices */ -enum chips { ds1621, ds1625, ds1631, ds1721 }; +enum chips { ds1621, ds1625, ds1631, ds1721, ds1731 };/* Insmod parameters */ static int polarity =-1 ;
@@ -65,7 +65,7 @@ MODULE_PARM_DESC(polarity, "Output's polarity: 0 = active high, 1 = active low")* 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | 1 | 0 |POL |1SHOT| * -* - DS1631: +* - DS1631, DS1731: * 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | R1 | R0 |POL |1SHOT| *
@@ -140,7 +140,7 @@ static inline int DS1621_TEMP_FROM_REG(u16 reg)* TEMP: 0.001C/bit (-55C to +125C) * REG: * - 1621, 1625: 0.5C/bit -* - 1631, 1721: 0.0625C/bit +* - 1631, 1721, 1731: 0.0625C/bit * Assume highest resolution and let the bits fall where they may.. */ static inline u16 DS1621_TEMP_TO_REG (long temp)
@@ -176,6 +176,7 @@ static void ds1621_init_client(struct i2c_client *client)break ;case ds1631:case ds1721: +case ds1731: resol = (new_conf &DS1621_REG_CONFIG_RESOL ) >>DS1621_REG_CONFIG_RESOL_SHIFT ; data->update_interval = ds1721_convrates[resol];
@@ -408,6 +409,7 @@ static const struct i2c_device_id ds1621_id[] = { { "ds1625", ds1625 }, { "ds1631", ds1631 }, { "ds1721", ds1721 }, + { "ds1731", ds1731 }, { } };MODULE_DEVICE_TABLE (i2c, ds1621_id);
Signature · 7 lines
1.7.9.5 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
maintainerQuoted 4 lines · Robert Coulson
These changes add DS1731 chip support to the ds1621 driver,
Kconfig, and documentation.Signed-off-by Robert Coulson <[email protected]>
Hi Rob,
Nitpicks ...
Quoted 32 lines
--- Documentation/hwmon/ds1621 | 22 ++++++++++++++-------- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ds1621.c | 12 +++++++----- 3 files changed, 22 insertions(+), 13 deletions(-)Documentation/hwmon/ds1621 +6
-1@@ -22,6 +22,11 @@ Supported chips: Addresses scanned: none Datasheet: Publicly available from www.maximintegrated.com + * Maxim Integrated DS1731 + Prefix: 'ds1731' + Addresses scanned: none + Datasheet: Publicly available from www.maximintegrated.com + Authors: Christian W. Zuckschwerdt <[email protected]> valuable contributions by Jan M. Sendler <[email protected]>@@ -72,7 +77,7 @@ Temperature conversion of the DS1621 takes up to 1000ms; internal access to non-volatile registers may last for 10ms or below. The DS1625 is pin compatible and functionally equivalent with the DS1621, -but the DS1621 is meant to replace it. The DS1631 and DS1721 are also +but the DS1621 is meant to replace it. The DS1631, DS1721, & DS1731 are also pin compatible with the DS1621, but provide multi-resolution support. Since there is no version or vendor identification register, there is
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says · line 105
Quoted 8 lines
Documentation/hwmon/ds1621 +2
-3@@ -96,14 +101,15 @@ One additional note about the ds1721 is that although the data sheet says the temperature flags (THF and TLF) are used internally, these flags do get set and cleared as the actual temperature crosses the min or max settings. -The DS1631 is also pin compatible with the DS1621 and feature compatible with -the DS1721, however the DS1631 accuracy is +/- 0.5 degree Celius over the -same range. +The DS1631 and DS1731 are pin compatible with the DS1621 and feature compatible +with the DS1721, however, the DS1631 accuracy is +/- 0.5 degree Celius over
DS1721. However, ...
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says · line 106
Quoted 1 line
Documentation/hwmon/ds1621 +1
-0+the 0 to +70 degrees, while the DS1731 accuracy is +/-1 degree Celius over the
"over the ... degrees" sounds weird. "over the range of", maybe ? Or at least add "range" after "degrees".
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says · line 109
Quoted 7 lines
Documentation/hwmon/ds1621 +2
-4+-10 to +85 degree range. -Changing the DS1631/1721 resolution mode affects the conversion time and can be -done from userspace, via the device 'update_interval' sysfs attribute. This -attribute will normalize range of input values to the device maximum resolution -values defined in the datasheet as such: +Changing the DS1631, DS1721, or DS1731 resolution mode affects the conversion
Changing the resolution mode for ... affects
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says · line 113
Quoted 4 lines
Documentation/hwmon/ds1621 +3
-0+time and can be done from userspace, via the device 'update_interval' sysfs +attribute. This attribute will normalize range of input values to the device +maximum resolution values defined in the datasheet as such:
as follows ?
Quoted 81 lines
Documentation/hwmon/ds1621 +0
-0Resolution Conversion Time Input Range (C/LSB) (msec) (msec)drivers/hwmon/Kconfig +1
-0@@ -324,6 +324,7 @@ config SENSORS_DS1621 - Dallas Semiconductor DS1625 - Maxim Integrated DS1631 - Maxim Integrated DS1721 + - Maxim Integrated DS1731 This driver can also be built as a module. If so, the module will be called ds1621.drivers/hwmon/ds1621.c +7
-5@@ -10,8 +10,8 @@* resolution, a thermal alarm output (Tout), and user-defined minimum * and maximum temperature thresholds (TH & TL). * -* The DS1625, DS1631, & DS1721 are pin compatible with the DS1621 and -* similar in operation, with slight variations as noted in the device +* The DS1625, DS1631, DS1721, & DS1731 are pin compatible with the DS1621 +* and similar in operation, with slight variations as noted in the device * datasheets (please refer to www.maximintegrated.com for specific * device information). * @@ -47,7 +47,7 @@#include <linux/kernel.h> /* Supported devices */ -enum chips { ds1621, ds1625, ds1631, ds1721 }; +enum chips { ds1621, ds1625, ds1631, ds1721, ds1731 };/* Insmod parameters */ static int polarity =-1 ;@@ -65,7 +65,7 @@ MODULE_PARM_DESC(polarity, "Output's polarity: 0 = active high, 1 = active low")* 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | 1 | 0 |POL |1SHOT| * -* - DS1631: +* - DS1631, DS1731: * 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | R1 | R0 |POL |1SHOT| * @@ -140,7 +140,7 @@ static inline int DS1621_TEMP_FROM_REG(u16 reg)* TEMP: 0.001C/bit (-55C to +125C) * REG: * - 1621, 1625: 0.5C/bit -* - 1631, 1721: 0.0625C/bit +* - 1631, 1721, 1731: 0.0625C/bit * Assume highest resolution and let the bits fall where they may.. */ static inline u16 DS1621_TEMP_TO_REG (long temp)@@ -176,6 +176,7 @@ static void ds1621_init_client(struct i2c_client *client)break ;case ds1631:case ds1721: +case ds1731: resol = (new_conf &DS1621_REG_CONFIG_RESOL ) >>DS1621_REG_CONFIG_RESOL_SHIFT ; data->update_interval = ds1721_convrates[resol];@@ -408,6 +409,7 @@ static const struct i2c_device_id ds1621_id[] = { { "ds1625", ds1625 }, { "ds1631", ds1631 }, { "ds1721", ds1721 }, + { "ds1731", ds1731 }, { } };MODULE_DEVICE_TABLE (i2c, ds1621_id);Signature · 7 lines
1.7.9.5 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Robert Coulson
These changes add DS1731 chip support to the ds1621 driver,
Kconfig, and documentation.Signed-off-by Robert Coulson <[email protected]>Hi Rob,
Nitpicks ...
Good afternoon Guenter,
Quoted 44 lines
Documentation/hwmon/ds1621 Temperature conversion of the DS1621 takes up to
Quoted 24 lines
--- Documentation/hwmon/ds1621 | 22 ++++++++++++++-------- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ds1621.c | 12 +++++++----- 3 files changed, 22 insertions(+), 13 deletions(-)Documentation/hwmon/ds1621 +5
-0@@ -22,6 +22,11 @@ Supported chips: Addresses scanned: none Datasheet: Publicly available from www.maximintegrated.com + * Maxim Integrated DS1731 + Prefix: 'ds1731' + Addresses scanned: none + Datasheet: Publicly available from www.maximintegrated.com + Authors: Christian W. Zuckschwerdt <[email protected]> valuable contributions by Jan M. Sendler <[email protected]>@@ -72,7 +77,7 @@ Temperature conversion of the DS1621 takes up to1000ms; internal access to
Documentation/hwmon/ds1621 Temperature conversion of the DS1621 takes up to 1000ms; internal access to
Quoted 3 lines
Documentation/hwmon/ds1621 +0
-0non-volatile registers may last for 10ms or below. The DS1625 is pin compatible and functionally equivalent with theDS1621,
Documentation/hwmon/ds1621 Temperature conversion of the DS1621 takes up to · line 80
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-1-but the DS1621 is meant to replace it. The DS1631 and DS1721 are also +but the DS1621 is meant to replace it. The DS1631, DS1721, & DS1731 arealso
Documentation/hwmon/ds1621 One additional note about the ds1721 is that
Quoted 4 lines
Documentation/hwmon/ds1621 +0
-0pin compatible with the DS1621, but provide multi-resolution support. Since there is no version or vendor identification register, there is@@ -96,14 +101,15 @@ One additional note about the ds1721 is thatalthough the data sheet says
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 102
Quoted 2 lines
Documentation/hwmon/ds1621 +0
-0the temperature flags (THF and TLF) are used internally, these flags do get set and cleared as the actual temperature crosses the min or maxsettings.
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 98
Quoted 2 lines
Documentation/hwmon/ds1621 +0
-1-The DS1631 is also pin compatible with the DS1621 and featurecompatible with
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 99
Quoted 1 line
Documentation/hwmon/ds1621 +0
-1-the DS1721, however the DS1631 accuracy is +/- 0.5 degree Celius over
Quoted 9 lines
the
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 103
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-1-same range. +The DS1631 and DS1731 are pin compatible with the DS1621 and featurecompatible
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 104
Quoted 1 line
Documentation/hwmon/ds1621 +1
-0+with the DS1721, however, the DS1631 accuracy is +/- 0.5 degree Celiusover
DS1721. However, ...
fixed.
Quoted 8 lines
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 105
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-0+the 0 to +70 degrees, while the DS1731 accuracy is +/-1 degree Celiusover the
"over the ... degrees" sounds weird. "over the range of", maybe ? Or at least
add "range" after "degrees".
how about 'within -10 to +85 degrees'.
Quoted 6 lines
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says
Quoted 4 lines
Documentation/hwmon/ds1621 +1
-1+-10 to +85 degree range. -Changing the DS1631/1721 resolution mode affects the conversion timeand can be
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 103
Quoted 1 line
Documentation/hwmon/ds1621 +0
-1-done from userspace, via the device 'update_interval' sysfs attribute.
Quoted 9 lines
This
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 104
Quoted 1 line
Documentation/hwmon/ds1621 +0
-1-attribute will normalize range of input values to the device maximumresolution
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 108
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-1-values defined in the datasheet as such: +Changing the DS1631, DS1721, or DS1731 resolution mode affects theconversion
Changing the resolution mode for ... affects
agreed.
Quoted 9 lines
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 109
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-0+time and can be done from userspace, via the device 'update_interval'sysfs
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 110
Quoted 1 line
Documentation/hwmon/ds1621 +1
-0+attribute. This attribute will normalize range of input values to thedevice
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says · line 113
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-0+maximum resolution values defined in the datasheet as such:as follows ?
agreed.
Quoted 81 lines
Quoted 20 lines
Documentation/hwmon/ds1621 +0
-0Resolution Conversion Time Input Range (C/LSB) (msec) (msec)drivers/hwmon/Kconfig +1
-0@@ -324,6 +324,7 @@ config SENSORS_DS1621 - Dallas Semiconductor DS1625 - Maxim Integrated DS1631 - Maxim Integrated DS1721 + - Maxim Integrated DS1731 This driver can also be built as a module. If so, the module will be called ds1621.drivers/hwmon/ds1621.c +0
-0drivers/hwmon/ds1621.c line 13
Quoted 6 lines
drivers/hwmon/ds1621.c +1
-2@@ -10,8 +10,8 @@* resolution, a thermal alarm output (Tout), and user-defined minimum * and maximum temperature thresholds (TH & TL). * -* The DS1625, DS1631, & DS1721 are pin compatible with the DS1621 and -* similar in operation, with slight variations as noted in the device +* The DS1625, DS1631, DS1721, & DS1731 are pin compatible with the DS1621
drivers/hwmon/ds1621.c line 14
Quoted 1 line
drivers/hwmon/ds1621.c +1
-0+* and similar in operation, with slight variations as noted in the device
drivers/hwmon/ds1621.c MODULE_PARM_DESC(polarity, "Output's polarity: 0 =
Quoted 13 lines
drivers/hwmon/ds1621.c +1
-1* datasheets (please refer to www.maximintegrated.com for specific * device information). * @@ -47,7 +47,7 @@#include <linux/kernel.h> /* Supported devices */ -enum chips { ds1621, ds1625, ds1631, ds1721 }; +enum chips { ds1621, ds1625, ds1631, ds1721, ds1731 };/* Insmod parameters */ static int polarity =-1 ;@@ -65,7 +65,7 @@ MODULE_PARM_DESC(polarity, "Output's polarity: 0 =active high, 1 = active low")
drivers/hwmon/ds1621.c static void ds1621_init_client(struct i2c_client
Quoted 18 lines
drivers/hwmon/ds1621.c +2
-2* 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | 1 | 0 |POL |1SHOT| * -* - DS1631: +* - DS1631, DS1731: * 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | R1 | R0 |POL |1SHOT| * @@ -140,7 +140,7 @@ static inline int DS1621_TEMP_FROM_REG(u16 reg)* TEMP: 0.001C/bit (-55C to +125C) * REG: * - 1621, 1625: 0.5C/bit -* - 1631, 1721: 0.0625C/bit +* - 1631, 1721, 1731: 0.0625C/bit * Assume highest resolution and let the bits fall where they may.. */ static inline u16 DS1621_TEMP_TO_REG (long temp)@@ -176,6 +176,7 @@ static void ds1621_init_client(struct i2c_client*client)
Quoted 19 lines
drivers/hwmon/ds1621.c +2
-1break ;case ds1631:case ds1721: +case ds1731: resol = (new_conf &DS1621_REG_CONFIG_RESOL ) >>DS1621_REG_CONFIG_RESOL_SHIFT ; data->update_interval = ds1721_convrates[resol];@@ -408,6 +409,7 @@ static const struct i2c_device_id ds1621_id[] = { { "ds1625", ds1625 }, { "ds1631", ds1631 }, { "ds1721", ds1721 }, + { "ds1731", ds1731 }, { } };MODULE_DEVICE_TABLE (i2c, ds1621_id); --1.7.9.5
Quoted 6 lines
Quoted 5 lines
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
maintainerQuoted 75 lines · Robert Coulson
Quoted 10 lines · Guenter Roeck
Quoted 4 lines · Robert Coulson
These changes add DS1731 chip support to the ds1621 driver,
Kconfig, and documentation.Signed-off-by Robert Coulson <[email protected]>Hi Rob,
Nitpicks ...
Good afternoon Guenter,
Quoted 44 lines
Documentation/hwmon/ds1621 Temperature conversion of the DS1621 takes up to
Quoted 24 lines
--- Documentation/hwmon/ds1621 | 22 ++++++++++++++-------- drivers/hwmon/Kconfig | 1 + drivers/hwmon/ds1621.c | 12 +++++++----- 3 files changed, 22 insertions(+), 13 deletions(-)Documentation/hwmon/ds1621 +5
-0@@ -22,6 +22,11 @@ Supported chips: Addresses scanned: none Datasheet: Publicly available from www.maximintegrated.com + * Maxim Integrated DS1731 + Prefix: 'ds1731' + Addresses scanned: none + Datasheet: Publicly available from www.maximintegrated.com + Authors: Christian W. Zuckschwerdt <[email protected]> valuable contributions by Jan M. Sendler <[email protected]>@@ -72,7 +77,7 @@ Temperature conversion of the DS1621 takes up to1000ms; internal access to
Documentation/hwmon/ds1621 Temperature conversion of the DS1621 takes up to 1000ms; internal access to
Quoted 3 lines
Documentation/hwmon/ds1621 +0
-0non-volatile registers may last for 10ms or below. The DS1625 is pin compatible and functionally equivalent with theDS1621,
Documentation/hwmon/ds1621 Temperature conversion of the DS1621 takes up to · line 80
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-1-but the DS1621 is meant to replace it. The DS1631 and DS1721 are also +but the DS1621 is meant to replace it. The DS1631, DS1721, & DS1731 arealso
Documentation/hwmon/ds1621 One additional note about the ds1721 is that
Quoted 4 lines
Documentation/hwmon/ds1621 +0
-0pin compatible with the DS1621, but provide multi-resolution support. Since there is no version or vendor identification register, there is@@ -96,14 +101,15 @@ One additional note about the ds1721 is thatalthough the data sheet says
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 102
Quoted 2 lines
Documentation/hwmon/ds1621 +0
-0the temperature flags (THF and TLF) are used internally, these flags do get set and cleared as the actual temperature crosses the min or maxsettings.
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 98
Quoted 2 lines
Documentation/hwmon/ds1621 +0
-1-The DS1631 is also pin compatible with the DS1621 and featurecompatible with
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 99
Quoted 1 line
Documentation/hwmon/ds1621 +0
-1-the DS1721, however the DS1631 accuracy is +/- 0.5 degree Celius overQuoted 9 lines
the
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 103
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-1-same range. +The DS1631 and DS1731 are pin compatible with the DS1621 and featurecompatible
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 104
Quoted 1 line
Documentation/hwmon/ds1621 +1
-0+with the DS1721, however, the DS1631 accuracy is +/- 0.5 degree Celiusover
DS1721. However, ...fixed.
Quoted 2 lines
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-0+the 0 to +70 degrees, while the DS1731 accuracy is +/-1 degree Celius
Quoted 9 lines
Quoted 6 lines
over the
"over the ... degrees" sounds weird. "over the range of", maybe ? Or at least
add "range" after "degrees".how about 'within -10 to +85 degrees'.
ok
Guenter
Quoted 23 lines
Quoted 7 lines
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says
Quoted 5 lines
Documentation/hwmon/ds1621 +1
-1+-10 to +85 degree range. -Changing the DS1631/1721 resolution mode affects the conversion timeand can be
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 103
Quoted 1 line
Documentation/hwmon/ds1621 +0
-1-done from userspace, via the device 'update_interval' sysfs attribute.Quoted 9 lines
This
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 104
Quoted 1 line
Documentation/hwmon/ds1621 +0
-1-attribute will normalize range of input values to the device maximumresolution
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 108
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-1-values defined in the datasheet as such: +Changing the DS1631, DS1721, or DS1731 resolution mode affects theconversion
Changing the resolution mode for ... affects
agreed.
Quoted 3 lines
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 109
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-0+time and can be done from userspace, via the device 'update_interval'sysfs
Quoted 96 lines
Quoted 6 lines
Documentation/hwmon/ds1621 One additional note about the ds1721 is that · line 110
Quoted 1 line
Documentation/hwmon/ds1621 +1
-0+attribute. This attribute will normalize range of input values to thedevice
Documentation/hwmon/ds1621 One additional note about the ds1721 is that although the data sheet says · line 113
Quoted 2 lines
Documentation/hwmon/ds1621 +1
-0+maximum resolution values defined in the datasheet as such:as follows ?
agreed.
Quoted 86 lines
Quoted 20 lines
Documentation/hwmon/ds1621 +0
-0Resolution Conversion Time Input Range (C/LSB) (msec) (msec)drivers/hwmon/Kconfig +1
-0@@ -324,6 +324,7 @@ config SENSORS_DS1621 - Dallas Semiconductor DS1625 - Maxim Integrated DS1631 - Maxim Integrated DS1721 + - Maxim Integrated DS1731 This driver can also be built as a module. If so, the module will be called ds1621.drivers/hwmon/ds1621.c +0
-0drivers/hwmon/ds1621.c line 13
Quoted 6 lines
drivers/hwmon/ds1621.c +1
-2@@ -10,8 +10,8 @@* resolution, a thermal alarm output (Tout), and user-defined minimum * and maximum temperature thresholds (TH & TL). * -* The DS1625, DS1631, & DS1721 are pin compatible with the DS1621 and -* similar in operation, with slight variations as noted in the device +* The DS1625, DS1631, DS1721, & DS1731 are pin compatible with the DS1621
drivers/hwmon/ds1621.c line 14
Quoted 1 line
drivers/hwmon/ds1621.c +1
-0+* and similar in operation, with slight variations as noted in the device
drivers/hwmon/ds1621.c static void ds1621_init_client(struct i2c_client
Quoted 31 lines
drivers/hwmon/ds1621.c +3
-3* datasheets (please refer to www.maximintegrated.com for specific * device information). * @@ -47,7 +47,7 @@#include <linux/kernel.h> /* Supported devices */ -enum chips { ds1621, ds1625, ds1631, ds1721 }; +enum chips { ds1621, ds1625, ds1631, ds1721, ds1731 };/* Insmod parameters */ static int polarity =-1 ;@@ -65,7 +65,7 @@ MODULE_PARM_DESC(polarity, "Output's polarity: 0 > > active high, 1 = active low")* 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | 1 | 0 |POL |1SHOT| * -* - DS1631: +* - DS1631, DS1731: * 7 6 5 4 3 2 1 0 * |Done|THF |TLF |NVB | R1 | R0 |POL |1SHOT| * @@ -140,7 +140,7 @@ static inline int DS1621_TEMP_FROM_REG(u16 reg)* TEMP: 0.001C/bit (-55C to +125C) * REG: * - 1621, 1625: 0.5C/bit -* - 1631, 1721: 0.0625C/bit +* - 1631, 1721, 1731: 0.0625C/bit * Assume highest resolution and let the bits fall where they may.. */ static inline u16 DS1621_TEMP_TO_REG (long temp)@@ -176,6 +176,7 @@ static void ds1621_init_client(struct i2c_client*client)
Quoted 24 lines
drivers/hwmon/ds1621.c +2
-1break ;case ds1631:case ds1721: +case ds1731: resol = (new_conf &DS1621_REG_CONFIG_RESOL ) >>DS1621_REG_CONFIG_RESOL_SHIFT ; data->update_interval = ds1721_convrates[resol];@@ -408,6 +409,7 @@ static const struct i2c_device_id ds1621_id[] = { { "ds1625", ds1625 }, { "ds1631", ds1631 }, { "ds1721", ds1721 }, + { "ds1731", ds1731 }, { } };MODULE_DEVICE_TABLE (i2c, ds1621_id); --1.7.9.5
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors