Home
last modified time | relevance | path

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

12

/linux-6.14.4/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 <[email protected]>
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.14.4/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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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.14.4/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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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.14.4/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.14.4/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.14.4/arch/arm64/boot/dts/freescale/
Dimx8mp-verdin-ivy.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus
8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board
11 #include <dt-bindings/mux/mux.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/net/ti-dp83867.h>
17 ain1_voltage_unmanaged: voltage-divider-ain1 {
18 compatible = "voltage-divider";
19 #io-channel-cells = <1>;
20 io-channels = <&ivy_adc1 0>;
[all …]
Dimx8mm-verdin-ivy.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-mini-nano
8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board
11 #include <dt-bindings/mux/mux.h>
12 #include <dt-bindings/leds/common.h>
16 ain1_voltage_unmanaged: voltage-divider-ain1 {
17 compatible = "voltage-divider";
18 #io-channel-cells = <1>;
19 io-channels = <&ivy_adc1 0>;
20 full-ohms = <19>;
[all …]
/linux-6.14.4/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 <[email protected]>
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.14.4/arch/arm64/boot/dts/ti/
Dk3-am62-verdin-ivy.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62
8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board
11 #include <dt-bindings/mux/mux.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/net/ti-dp83867.h>
17 ain1_voltage_unmanaged: voltage-divider-ain1 {
18 compatible = "voltage-divider";
19 #io-channel-cells = <1>;
20 io-channels = <&ivy_adc1 0>;
[all …]
/linux-6.14.4/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 <[email protected]>
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.14.4/Documentation/devicetree/bindings/power/supply/
Dst,stc3117.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Hardevsinh Palaniya <[email protected]>
11 - Bhavin Sharma <[email protected]>
15 It provides accurate battery state-of-charge (SOC) monitoring, tracks
17 and aging, and allows the application to get a battery state-of-health
27 - $ref: power-supply.yaml#
32 - st,stc3117
37 monitored-battery:
[all …]
/linux-6.14.4/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 <[email protected]>
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.14.4/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.14.4/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 …]
/linux-6.14.4/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 …]

12