hwmon: (ina2xx) Add ina231 compatible string
Subsystems (3)
PATCH v2 1/1 hwmon: (ina2xx) Add ina231 compatible string
From: Kevin Hilman <[email protected]>
Add support for "ina231" as compatible string, and update Documentation and Kconfig accordingly.
Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors.
--- Documentation/hwmon/ina2xx | 9 +++++++++ drivers/hwmon/Kconfig | 4 ++-- drivers/hwmon/ina2xx.c | 1 + 3 files changed, 12 insertions(+), 2 deletions(-)
Documentation/hwmon/ina2xx +9 -0
@@ -26,6 +26,12 @@ Supported chips: Datasheet: Publicly available at the Texas Instruments website http://www.ti.com/ + * Texas Instruments INA231 + Prefix: 'ina231' + Addresses: I2C 0x40 - 0x4f + Datasheet: Publicly available at the Texas Instruments website + http://www.ti.com/ + Author: Lothar Felten <[email protected]> Description
@@ -44,6 +50,9 @@ The INA226 monitors both a shunt voltage drop and bus supply voltage. The INA230 is a high or low side current shunt and power monitor with an I2C interface. The INA230 monitors both a shunt voltage drop and bus supply voltage. +The INA231 is a high or low side current shunt and power monitor with an I2C +interface. The INA230 monitors both a shunt voltage drop and bus supply voltage. + The shunt value in micro-ohms can be set via platform data or device tree. Please refer to the Documentation/devicetree/bindings/i2c/ina2xx.txt for bindings if the device tree is used.
drivers/hwmon/Kconfig +2 -2
@@ -1420,8 +1420,8 @@ config SENSORS_INA2XX tristate "Texas Instruments INA219 and compatibles" depends on I2C help - If you say yes here you get support for INA219, INA220, INA226, and - INA230 power monitor chips. + If you say yes here you get support for INA219, INA220, INA226, + INA230, and INA231 power monitor chips. The INA2xx driver is configured for the default configuration of the part as described in the datasheet.
drivers/hwmon/ina2xx.c +1 -0
@@ -287,6 +287,7 @@ static const struct i2c_device_id ina2xx_id[] = { { "ina220", ina219 }, { "ina226", ina226 }, { "ina230", ina226 }, + { "ina231", ina226 }, { } };MODULE_DEVICE_TABLE (i2c, ina2xx_id);
Signature · 1 line
2.1.3
Quoted 9 lines · Kevin Hilman
From: Kevin Hilman <[email protected]>
Add support for "ina231" as compatible string, and update Documentation and
Kconfigaccordingly.Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors.
Signed-off-by Kevin Hilman <[email protected]>
Applied to -next after minor cleanup (see below).
Quoted 24 lines
--- Documentation/hwmon/ina2xx | 9 +++++++++ drivers/hwmon/Kconfig | 4 ++-- drivers/hwmon/ina2xx.c | 1 + 3 files changed, 12 insertions(+), 2 deletions(-)Documentation/hwmon/ina2xx +6
-0@@ -26,6 +26,12 @@ Supported chips: Datasheet: Publicly available at the Texas Instruments website http://www.ti.com/ + * Texas Instruments INA231 + Prefix: 'ina231' + Addresses: I2C 0x40 - 0x4f + Datasheet: Publicly available at the Texas Instruments website + http://www.ti.com/ + Author: Lothar Felten <[email protected]> Description
Documentation/hwmon/ina2xx The INA226 monitors both a shunt voltage drop and bus supply voltage. · line 55
Quoted 6 lines
Documentation/hwmon/ina2xx +3
-0@@ -44,6 +50,9 @@ The INA226 monitors both a shunt voltage drop and bus supply voltage. The INA230 is a high or low side current shunt and power monitor with an I2C interface. The INA230 monitors both a shunt voltage drop and bus supply voltage. +The INA231 is a high or low side current shunt and power monitor with an I2C +interface. The INA230 monitors both a shunt voltage drop and bus supply voltage. +
The INA231 ...
I fixed this up and merged above two paragraphs into one.
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 6 lines · Guenter Roeck
Quoted 5 lines · Kevin Hilman
From: Kevin Hilman <[email protected]>
Add support for "ina231" as compatible string, and update Documentation and
Kconfigaccordingly.
Quoted 7 lines
Quoted 4 lines
Tested with the Exynos5422-based odroid-xu3 board which has on-board INA231 sensors.
Signed-off-by Kevin Hilman <[email protected]>Applied to -next after minor cleanup (see below).
Thanks,
Kevin
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors