Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 754d3185 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

hwmon: Add ina231 compatible string



Add "ina231" compatible string to enable reading
bus voltage and shunt voltage drop from the ina2xx driver.
Update Documentation and Kconfig accordingly.

Change-Id: Iba3375cd70c7f8f6ec0e6baea1e153c0579c3a01
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent b8105def
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ Required properties:
	- "ti,ina220" for ina220
	- "ti,ina226" for ina226
	- "ti,ina230" for ina230
	- "ti,ina231" for ina231
- reg: I2C address

Optional properties:
+9 −0
Original line number Diff line number Diff line
@@ -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 INA231 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.
+2 −2
Original line number Diff line number Diff line
@@ -1436,8 +1436,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.
+1 −0
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ static const struct i2c_device_id ina2xx_id[] = {
	{ "ina220", ina219 },
	{ "ina226", ina226 },
	{ "ina230", ina226 },
	{ "ina231", ina226 },
	{ }
};
MODULE_DEVICE_TABLE(i2c, ina2xx_id);