Home
last modified time | relevance | path

Searched +full:current +full:- +full:sense +full:- +full:shunt (Results 1 – 25 of 25) sorted by relevance

/linux-6.12.1/Documentation/devicetree/bindings/iio/afe/
Dcurrent-sense-shunt.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/afe/current-sense-shunt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Current Sense Shunt
10 - Peter Rosin <peda@axentia.se>
13 When an io-channel measures the voltage over a current sense shunt,
14 the interesting measurement is almost always the current through the
15 shunt, not the voltage over it. This binding describes such a current
16 sense circuit.
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/iio/adc/
Dmaxim,max9611.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Maxim MAX9611 and similar current sense amplifiers with integrated ADCs
10 - Jacopo Mondi <jacopo@jmondi.org>
13 These devices combine a high-side current sense amplifier with a 12 bit ADC.
19 - maxim,max9611
20 - maxim,max9612
25 shunt-resistor-micro-ohms:
27 Value in micro Ohms of the shunt resistor connected between the RS+ and
[all …]
Dmicrochip,pac1921.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip PAC1921 High-Side Power/Current Monitor with Anaog Output
10 - Matteo Martelli <matteomartelli3@gmail.com>
13 The PAC1921 is a power/current monitoring device with an analog output
17 https://ww1.microchip.com/downloads/en/DeviceDoc/PAC1921-Data-Sheet-DS20005293E.pdf
26 vdd-supply: true
28 "#io-channel-cells":
31 shunt-resistor-micro-ohms:
[all …]
Dmicrochip,pac1934.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Marius Cristea <marius.cristea@microchip.com>
16 …oads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.…
21 - microchip,pac1931
22 - microchip,pac1932
23 - microchip,pac1933
24 - microchip,pac1934
29 "#address-cells":
[all …]
Drichtek,rtq6056.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: RTQ6056 Bi-Directional Current and Power Monitor with 16-bit ADC
10 - ChiYuan Huang <cy_huang@richtek.com>
13 The RTQ6056 is a high accuracy current-sense monitor with I2C and SMBus
15 out the loading current and power.
17 The device monitors both of the drops across sense resistor and the BUS
18 voltage, converts into the current in amperes, and power in watts through
19 internal analog-to-digital converter ADC. The programmable calibration,
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/
Dadi,ltc2991.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Analog Devices LTC2991 Octal I2C Voltage, Current and Temperature Monitor
11 - Antoniu Miclaus <antoniu.miclaus@analog.com>
16 supply voltages and can be paired for differential measurements of current
17 sense resistors or temperature sensing transistors.
29 '#address-cells':
32 '#size-cells':
35 vcc-supply: true
[all …]
Dadi,adm1177.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf
19 - adi,adm1177
24 avcc-supply:
28 shunt-resistor-micro-ohms:
30 The value of current sense resistor in microohms. If not provided,
31 the current reading and overcurrent alert is disabled.
[all …]
Dadi,ltc2992.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandru Tachici <alexandru.tachici@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2992.pdf
19 - adi,ltc2992
24 '#address-cells':
27 '#size-cells':
30 avcc-supply: true
33 "^channel@([0-1])$":
[all …]
Dti,tps23861.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Robert Marko <robert.marko@sartura.hr>
14 The TPS23861 is a IEEE 802.3at Quad Port Power-over-Ethernet PSE Controller.
23 - ti,tps23861
28 shunt-resistor-micro-ohms:
29 description: The value of current sense resistor in microohms.
35 - compatible
36 - reg
[all …]
Dhwmon-common.yaml1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/hwmon/hwmon-common.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Guenter Roeck <linux@roeck-us.net>
16 shunt-resistor-micro-ohms:
17 description: The value of current sense resistor.
/linux-6.12.1/drivers/iio/afe/
Diio-rescale.c1 // SPDX-License-Identifier: GPL-2.0
33 *val *= rescale->numerator; in rescale_process_scale()
34 if (rescale->denominator == 1) in rescale_process_scale()
36 *val2 = rescale->denominator; in rescale_process_scale()
44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale()
45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale()
54 tmp *= rescale->numerator; in rescale_process_scale()
82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale()
86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale()
[all …]
/linux-6.12.1/drivers/hwmon/
Dltc4151.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for Linear Technology LTC4151 High Voltage I2C Current
25 #include <linux/hwmon-sysfs.h>
42 unsigned int shunt; /* in micro ohms */ member
51 struct i2c_client *client = data->client; in ltc4151_update_device()
54 mutex_lock(&data->update_lock); in ltc4151_update_device()
58 * (Conversion Rate 6 - 9 Hz) in ltc4151_update_device()
60 if (time_after(jiffies, data->last_updated + HZ / 6) || !data->valid) { in ltc4151_update_device()
63 dev_dbg(&client->dev, "Starting ltc4151 update\n"); in ltc4151_update_device()
66 for (i = 0; i < ARRAY_SIZE(data->regs); i++) { in ltc4151_update_device()
[all …]
Dltc2945.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/hwmon-sysfs.h>
68 * struct ltc2945_data - LTC2945 device data
70 * @shunt_resistor: shunt resistor value in micro ohms (1000 by default)
86 struct regmap *regmap = data->regmap; in ltc2945_reg_to_val()
87 u32 shunt_resistor = data->shunt_resistor; in ltc2945_reg_to_val()
99 /* 24-bit power */ in ltc2945_reg_to_val()
102 /* 12-bit current, voltage */ in ltc2945_reg_to_val()
114 * Control register bit 0 selects if voltage at SENSE+/VDD in ltc2945_reg_to_val()
128 /* Overflow check: Assuming max 24-bit power, val is at most 53 bits right now. */ in ltc2945_reg_to_val()
[all …]
Dadm1177.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2015-2019 Analog Devices Inc.
27 * struct adm1177_state - driver instance specific data
29 * @r_sense_uohm: current sense resistor value
30 * @alert_threshold_ua: current limit for shutdown
42 return i2c_master_recv(st->client, data, num); in adm1177_read_raw()
47 return i2c_smbus_write_byte(st->client, cmd); in adm1177_write_cmd()
56 val = 0xFFULL * alert_threshold_ua * st->r_sense_uohm; in adm1177_write_alert_thr()
62 ret = i2c_smbus_write_byte_data(st->client, ADM1177_REG_ALERT_TH, in adm1177_write_alert_thr()
67 st->alert_threshold_ua = alert_threshold_ua; in adm1177_write_alert_thr()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Dmaxim,max5970.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Patrick Rudolph <patrick.rudolph@9elements.com>
14 and voltage and current sensing.
24 - maxim,max5970
25 - maxim,max5978
39 "#address-cells":
42 "#size-cells":
46 "^led@[0-3]$":
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/pmbus/
Dti,lm25066.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: National Semiconductor/Texas Instruments LM250x6/LM506x power-management ICs
11 - Zev Weiss <zev@bewilderbeest.net>
14 The LM25066 family of power-management ICs (a.k.a. hot-swap
16 offer temperature, current, voltage, and power monitoring.
23 - ti,lm25056
24 - ti,lm25066
25 - ti,lm5064
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/iio/addac/
Dadi,ad74413r.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Cosmin Tanislav <cosmin.tanislav@analog.com>
13 The AD74412R and AD74413R are quad-channel software configurable input/output
18 The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide
20 The AD74413R differentiates itself from the AD74412R by being HART-compatible.
27 - adi,ad74412r
28 - adi,ad74413r
33 '#address-cells':
[all …]
/linux-6.12.1/Documentation/hwmon/
Dlm25066.rst10 Addresses scanned: -
22 Addresses scanned: -
34 Addresses scanned: -
44 Addresses scanned: -
54 Addresses scanned: -
61 Author: Guenter Roeck <linux@roeck-us.net>
65 -----------
76 -----------
78 This driver does not auto-detect devices. You will have to instantiate the
79 devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for
[all …]
/linux-6.12.1/drivers/iio/adc/
Dmax9611.c1 // SPDX-License-Identifier: GPL-2.0
5 * Maxim max9611/max9612 high side current sense amplifier with
6 * 12-bit ADC interface.
12 * This driver supports input common-mode voltage, current-sense
16 * Op-amp, analog comparator, and watchdog functionalities are not
50 * max9611 current sense amplifier voltage output:
58 * The complete formula to calculate current sense voltage is:
59 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3)
73 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000)
115 * max9611_mux_conf - associate ADC mux configuration with register address
[all …]
Dpac1921.c1 // SPDX-License-Identifier: GPL-2.0+
3 * IIO driver for PAC1921 High-Side Power/Current Monitor
71 * Pre-computed scale factors for BUS voltage
87 * Pre-computed scales for SENSE voltage
120 * contains integration periods, in microsecs unit, based on table 4-5 from
121 * datasheet considering power integration mode, 14-Bit resolution and post
214 if (!priv->first_integr_started) in pac1921_data_ready()
217 if (!priv->first_integr_done) { in pac1921_data_ready()
225 t_ready = priv->integr_started_time_jiffies + in pac1921_data_ready()
227 usecs_to_jiffies(priv->integr_period_usecs); in pac1921_data_ready()
[all …]
/linux-6.12.1/drivers/hwmon/pmbus/
Dadm1275.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller
116 [0] = { 27169, 0, -1 }, /* voltage */
117 [1] = { 806, 20475, -1 }, /* current, irange25 */
118 [2] = { 404, 20475, -1 }, /* current, irange50 */
119 [3] = { 8549, 0, -1 }, /* power, irange25 */
120 [4] = { 4279, 0, -1 }, /* power, irange50 */
124 [0] = { 6770, 0, -2 }, /* voltage, vrange 60V */
125 [1] = { 4062, 0, -2 }, /* voltage, vrange 100V */
126 [2] = { 1326, 20480, -1 }, /* current, vsense range 15mV */
[all …]
Dlm25066.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 #define LM25066_DEV_SETUP_CL BIT(4) /* Current limit */
60 .R = -2,
64 .b = -1833,
65 .R = -2,
69 .b = -537,
70 .R = -2,
74 .b = -2908,
75 .R = -3,
79 .b = -5646,
[all …]
/linux-6.12.1/arch/arm/boot/dts/st/
Dste-ux500-samsung-janice.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice.
6 /dts-v1/;
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8500.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
[all …]
/linux-6.12.1/arch/arm/boot/dts/samsung/
Ds5pv210-aries.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
32 reserved-memory {
33 #address-cells = <1>;
34 #size-cells = <1>;
38 compatible = "shared-dma-pool";
39 no-map;
44 compatible = "shared-dma-pool";
[all …]
/linux-6.12.1/
DMAINTAINERS5 ---------------------------------------------------
16 Orphan: No current maintainer [but maybe you could take the
21 W: *Web-page* with status/info
23 B: URI for where to file *bugs*. A web-page with detailed bug
28 patches to the given subsystem. This is either an in-tree file,
29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst
46 N: [^a-z]tegra all files whose path contains tegra
64 ----------------
83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS)
85 L: linux-scsi@vger.kernel.org
[all …]