All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string
@ 2015-01-15  1:34 ` Kevin Hilman
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin Hilman @ 2015-01-15  1:34 UTC (permalink / raw)
  To: Guenter Roeck, lm-sensors
  Cc: linux-samsung-soc, linaro-kernel, Jean Delvare, Jonathan Corbet,
	open list:DOCUMENTATION, open list

From: Kevin Hilman <khilman@linaro.org>

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.

Signed-off-by: Kevin Hilman <khilman@linaro.org>
---
 Documentation/hwmon/ina2xx | 9 +++++++++
 drivers/hwmon/Kconfig      | 4 ++--
 drivers/hwmon/ina2xx.c     | 1 +
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx
index 4223c2d3b508..c2f838f65ee4 100644
--- a/Documentation/hwmon/ina2xx
+++ b/Documentation/hwmon/ina2xx
@@ -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 <l-felten@ti.com>
 
 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.
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 6529c09c46f0..408fb6f5f055 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -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.
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index e01feba909c3..8c4a29bd2eaf 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -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);
-- 
2.1.3


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

* [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string
@ 2015-01-15  1:34 ` Kevin Hilman
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin Hilman @ 2015-01-15  1:34 UTC (permalink / raw)
  To: Guenter Roeck, lm-sensors
  Cc: linux-samsung-soc, linaro-kernel, Jean Delvare, Jonathan Corbet,
	open list:DOCUMENTATION, open list

From: Kevin Hilman <khilman@linaro.org>

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.

Signed-off-by: Kevin Hilman <khilman@linaro.org>
---
 Documentation/hwmon/ina2xx | 9 +++++++++
 drivers/hwmon/Kconfig      | 4 ++--
 drivers/hwmon/ina2xx.c     | 1 +
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx
index 4223c2d3b508..c2f838f65ee4 100644
--- a/Documentation/hwmon/ina2xx
+++ b/Documentation/hwmon/ina2xx
@@ -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 <l-felten@ti.com>
 
 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.
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 6529c09c46f0..408fb6f5f055 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -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.
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index e01feba909c3..8c4a29bd2eaf 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -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);
-- 
2.1.3


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

* [lm-sensors] [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string
@ 2015-01-15  1:34 ` Kevin Hilman
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin Hilman @ 2015-01-15  1:34 UTC (permalink / raw)
  To: Guenter Roeck, lm-sensors
  Cc: linux-samsung-soc, linaro-kernel, Jean Delvare, Jonathan Corbet,
	open list:DOCUMENTATION, open list

From: Kevin Hilman <khilman@linaro.org>

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.

Signed-off-by: Kevin Hilman <khilman@linaro.org>
---
 Documentation/hwmon/ina2xx | 9 +++++++++
 drivers/hwmon/Kconfig      | 4 ++--
 drivers/hwmon/ina2xx.c     | 1 +
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx
index 4223c2d3b508..c2f838f65ee4 100644
--- a/Documentation/hwmon/ina2xx
+++ b/Documentation/hwmon/ina2xx
@@ -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 <l-felten@ti.com>
 
 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.
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 6529c09c46f0..408fb6f5f055 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -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.
diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c
index e01feba909c3..8c4a29bd2eaf 100644
--- a/drivers/hwmon/ina2xx.c
+++ b/drivers/hwmon/ina2xx.c
@@ -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);
-- 
2.1.3


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string
  2015-01-15  1:34 ` Kevin Hilman
@ 2015-01-15  4:44   ` Guenter Roeck
  -1 siblings, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2015-01-15  4:44 UTC (permalink / raw)
  To: Kevin Hilman, lm-sensors
  Cc: linux-samsung-soc, DOCUMENTATION, Jonathan Corbet, open list,
	linaro-kernel

On 01/14/2015 05:34 PM, Kevin Hilman wrote:
> From: Kevin Hilman <khilman@linaro.org>
>
> 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.
>
> Signed-off-by: Kevin Hilman <khilman@linaro.org>

Applied to -next after minor cleanup (see below).

> ---
>   Documentation/hwmon/ina2xx | 9 +++++++++
>   drivers/hwmon/Kconfig      | 4 ++--
>   drivers/hwmon/ina2xx.c     | 1 +
>   3 files changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx
> index 4223c2d3b508..c2f838f65ee4 100644
> --- a/Documentation/hwmon/ina2xx
> +++ b/Documentation/hwmon/ina2xx
> @@ -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 <l-felten@ti.com>
>
>   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 INA231 ...

I fixed this up and merged above two paragraphs into one.

Guenter


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string
@ 2015-01-15  4:44   ` Guenter Roeck
  0 siblings, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2015-01-15  4:44 UTC (permalink / raw)
  To: Kevin Hilman, lm-sensors
  Cc: linux-samsung-soc, DOCUMENTATION, Jonathan Corbet, open list,
	linaro-kernel

On 01/14/2015 05:34 PM, Kevin Hilman wrote:
> From: Kevin Hilman <khilman@linaro.org>
>
> 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.
>
> Signed-off-by: Kevin Hilman <khilman@linaro.org>

Applied to -next after minor cleanup (see below).

> ---
>   Documentation/hwmon/ina2xx | 9 +++++++++
>   drivers/hwmon/Kconfig      | 4 ++--
>   drivers/hwmon/ina2xx.c     | 1 +
>   3 files changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/hwmon/ina2xx b/Documentation/hwmon/ina2xx
> index 4223c2d3b508..c2f838f65ee4 100644
> --- a/Documentation/hwmon/ina2xx
> +++ b/Documentation/hwmon/ina2xx
> @@ -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 <l-felten@ti.com>
>
>   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 INA231 ...

I fixed this up and merged above two paragraphs into one.

Guenter


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string
  2015-01-15  4:44   ` [lm-sensors] " Guenter Roeck
@ 2015-01-15 16:56     ` Kevin Hilman
  -1 siblings, 0 replies; 7+ messages in thread
From: Kevin Hilman @ 2015-01-15 16:56 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: linux-samsung-soc, Jonathan Corbet, DOCUMENTATION, open list,
	lm-sensors, linaro-kernel

Guenter Roeck <linux@roeck-us.net> writes:

> On 01/14/2015 05:34 PM, Kevin Hilman wrote:
>> From: Kevin Hilman <khilman@linaro.org>
>>
>> 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.
>>
>> Signed-off-by: Kevin Hilman <khilman@linaro.org>
>
> Applied to -next after minor cleanup (see below).
>

Thanks,

Kevin

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

* Re: [lm-sensors] [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string
@ 2015-01-15 16:56     ` Kevin Hilman
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin Hilman @ 2015-01-15 16:56 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: linux-samsung-soc, Jonathan Corbet, DOCUMENTATION, open list,
	lm-sensors, linaro-kernel

Guenter Roeck <linux@roeck-us.net> writes:

> On 01/14/2015 05:34 PM, Kevin Hilman wrote:
>> From: Kevin Hilman <khilman@linaro.org>
>>
>> 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.
>>
>> Signed-off-by: Kevin Hilman <khilman@linaro.org>
>
> Applied to -next after minor cleanup (see below).
>

Thanks,

Kevin

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

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

end of thread, other threads:[~2015-01-15 16:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-15  1:34 [PATCH v2] hwmon: (ina2xx) Add ina231 compatible string Kevin Hilman
2015-01-15  1:34 ` [lm-sensors] " Kevin Hilman
2015-01-15  1:34 ` Kevin Hilman
2015-01-15  4:44 ` Guenter Roeck
2015-01-15  4:44   ` [lm-sensors] " Guenter Roeck
2015-01-15 16:56   ` Kevin Hilman
2015-01-15 16:56     ` [lm-sensors] " Kevin Hilman

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.