Datasheet:
https://www.ti.com/lit/gpn/ina238
+ * Texas Instruments INA780
+
+ Datasheet:
+ https://www.ti.com/product/ina780a
+
* Silergy SQ52206
Prefix: 'SQ52206'
different accuracy. INA228 is another variant of INA238 with higher ADC
resolution. This chip also reports the energy.
+INA780 is a variant of the chip series with built-in shunt resistor.
+It also reports the energy.
+
SQ52206 is a mostly compatible chip from Sylergy. It reports the energy
as well as the peak power consumption.
curr1_max_alarm Maximum current alarm
energy1_input Energy measurement (uJ)
- (SQ52206 and INA237 only)
+ (SQ52206, INA237, and INA780 only)
temp1_input Die temperature measurement (mC)
temp1_max Maximum die temperature threshold (mC)
depends on I2C
select REGMAP_I2C
help
- If you say yes here you get support for INA228, INA237, INA238, and
- SQ52206 power monitor chips. This driver supports voltage, current,
- power, energy, and temperature measurements as well as alarm
+ If you say yes here you get support for INA228, INA237, INA238,
+ INA780, and SQ52206 power monitor chips. This driver supports voltage,
+ current, power, energy, and temperature measurements as well as alarm
configuration.
This driver can also be built as a module. If so, the module
.val_bits = 16,
};
-enum ina238_ids { ina228, ina237, ina238, sq52206 };
+enum ina238_ids { ina228, ina237, ina238, ina780, sq52206 };
struct ina238_config {
bool has_20bit_voltage_current; /* vshunt, vbus and current are 20-bit fields */
.bus_voltage_lsb = INA238_BUS_VOLTAGE_LSB,
.temp_resolution = 12,
},
+ [ina780] = {
+ .has_20bit_voltage_current = false,
+ .has_energy = true,
+ .has_power_highest = false,
+ .power_calculate_factor = 20,
+ .config_default = INA238_CONFIG_DEFAULT,
+ .bus_voltage_lsb = INA238_BUS_VOLTAGE_LSB,
+ .temp_resolution = 12,
+ .current_lsb = 2400,
+ },
[sq52206] = {
.has_20bit_voltage_current = false,
.has_energy = true,
{ "ina228", ina228 },
{ "ina237", ina237 },
{ "ina238", ina238 },
+ { "ina780", ina780 },
{ "sq52206", sq52206 },
{ }
};
.compatible = "ti,ina238",
.data = (void *)ina238
},
+ {
+ .compatible = "ti,ina780",
+ .data = (void *)ina780
+ },
{
.compatible = "silergy,sq52206",
.data = (void *)sq52206