Home
last modified time | relevance | path

Searched +full:shunt +full:- +full:resistor +full:- +full:micro +full:- +full:ohms (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.15/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#
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
28 RS- inputs, across which the current is measured. Value needed to compute
[all …]
/Linux-v5.15/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,
15 shunt, not the voltage over it. This binding describes such a current
20 const: current-sense-shunt
22 io-channels:
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/hwmon/
Dltc4151.txt4 - compatible: Must be "lltc,ltc4151"
5 - reg: I2C address
8 - shunt-resistor-micro-ohms
9 Shunt resistor value in micro-Ohms
17 shunt-resistor-micro-ohms = <1500>;
Dina3221.txt5 - compatible: Must be "ti,ina3221"
6 - reg: I2C address
9 - ti,single-shot: This chip has two power modes: single-shot (chip takes one
13 but the single-shot mode is more power-friendly and useful
14 for battery-powered device which cares power consumptions
16 If this property is present, the single-shot mode will be
22 - #address-cells: Required only if a child node is present. Must be 1.
23 - #size-cells: Required only if a child node is present. Must be 0.
27 - reg: Must be 0, 1 or 2, corresponding to IN1, IN2 or IN3 port of INA3221
30 - label: Name of the input source
[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 …]
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>
11 - Beniamin Bia <beniamin.bia@analog.com>
15 https://www.analog.com/media/en/technical-documentation/data-sheets/ADM1177.pdf
20 - adi,adm1177
25 avcc-supply:
29 shunt-resistor-micro-ohms:
31 The value of curent sense resistor in microohms. If not provided,
[all …]
Dadi,adm1275.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Krzysztof Kozlowski <krzk@kernel.org>
15 that offer digital current, voltage, and power monitoring using an on-chip,
16 12-bit analog-to-digital converter (ADC), communicated through a PMBus
25 - adi,adm1075
26 - adi,adm1272
27 - adi,adm1275
28 - adi,adm1276
[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 curent sense resistor in microohms.
35 - compatible
36 - reg
[all …]
Dti,tmp513.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Eric Tremblay <etremblay@distech-controls.com>
14 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors
15 that include remote sensors, a local temperature sensor, and a high-side
16 current shunt monitor. These system monitors have the capability of measuring
17 remote temperatures, on-chip temperatures, and system voltage/power/current
28 - ti,tmp512
29 - ti,tmp513
[all …]
/Linux-v5.15/arch/arm64/boot/dts/nvidia/
Dtegra186-p3310.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/mfd/max77620.h>
27 stdout-path = "serial0:115200n8";
38 phy-reset-gpios = <&gpio TEGRA186_MAIN_GPIO(M, 4)
40 phy-handle = <&phy>;
41 phy-mode = "rgmii";
44 #address-cells = <1>;
45 #size-cells = <0>;
48 compatible = "ethernet-phy-ieee802.3-c22";
50 interrupt-parent = <&gpio>;
[all …]
Dtegra186-p2771-0000.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/input/gpio-keys.h>
7 #include "tegra186-p3310.dtsi"
11 compatible = "nvidia,p2771-0000", "nvidia,tegra186";
16 dma-controller@2930000 {
20 interrupt-controller@2a40000 {
28 #address-cells = <1>;
29 #size-cells = <0>;
[all …]
Dtegra186-p3509-0000+p3636-0001.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/input/gpio-keys.h>
6 #include <dt-bindings/mfd/max77620.h>
12 compatible = "nvidia,p3509-0000+p3636-0001", "nvidia,tegra186";
30 stdout-path = "serial0:115200n8";
41 phy-reset-gpios = <&gpio_aon TEGRA186_AON_GPIO(AA, 6) GPIO_ACTIVE_LOW>;
42 phy-handle = <&phy>;
43 phy-mode = "rgmii-id";
[all …]
/Linux-v5.15/drivers/hwmon/
Dltc4151.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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()
77 data->regs[i] = val; in ltc4151_update_device()
[all …]
Dadm1177.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2015-2019 Analog Devices Inc.
27 * struct adm1177_state - driver instance specific data
30 * @r_sense_uohm: current sense resistor value
44 return i2c_master_recv(st->client, data, num); in adm1177_read_raw()
49 return i2c_smbus_write_byte(st->client, cmd); in adm1177_write_cmd()
58 val = 0xFFULL * alert_threshold_ua * st->r_sense_uohm; in adm1177_write_alert_thr()
64 ret = i2c_smbus_write_byte_data(st->client, ADM1177_REG_ALERT_TH, in adm1177_write_alert_thr()
69 st->alert_threshold_ua = alert_threshold_ua; in adm1177_write_alert_thr()
94 4096 * st->r_sense_uohm); in adm1177_read()
[all …]
Dina3221.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
10 #include <linux/hwmon-sysfs.h>
53 #define INA3221_CONFIG_CHx_EN(x) BIT(14 - (x))
70 /* Alert Flags: SF is the summation-alert flag */
98 * struct ina3221_input - channel input source specific information
100 * @shunt_resistor: shunt resistor value of channel input source
110 * struct ina3221_data - device specific information
117 * @summation_shunt_resistor: equivalent shunt resistor value for summation
118 * @single_shot: running in single-shot operating mode
[all …]
Dtmp513.c1 // SPDX-License-Identifier: GPL-2.0
7 * Local Temperature Sensor and Current Shunt Monitor
12 * and Local Temperature Sensor and Current Shunt Monitor
15 * Copyright (C) 2019 Eric Tremblay <etremblay@distech-controls.com>
110 // Max possible value is -256 to +256 but datasheet indicated -40 to 125.
112 #define MIN_TEMP_LIMIT -40000
179 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift()
198 *val = sign_extend32(regval, 17 - tmp51x_get_pga_shift(data)); in tmp51x_get_value()
199 *val = DIV_ROUND_CLOSEST(*val * 10000, data->shunt_uohms); in tmp51x_get_value()
210 *val = regval * data->pwr_lsb_uw; in tmp51x_get_value()
[all …]
Dtps23861.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/hwmon-sysfs.h>
131 err = regmap_read(data->regmap, TEMPERATURE, &regval); in tps23861_read_temp()
135 *val = (regval * TEMPERATURE_LSB) - 20000; in tps23861_read_temp()
147 err = regmap_bulk_read(data->regmap, in tps23861_read_voltage()
151 err = regmap_bulk_read(data->regmap, in tps23861_read_voltage()
170 if (data->shunt_resistor == SHUNT_RESISTOR_DEFAULT) in tps23861_read_current()
175 err = regmap_bulk_read(data->regmap, in tps23861_read_current()
192 err = regmap_write(data->regmap, POWER_ENABLE, regval); in tps23861_port_disable()
204 err = regmap_write(data->regmap, DETECT_CLASS_RESTART, regval); in tps23861_port_enable()
[all …]
/Linux-v5.15/drivers/iio/afe/
Diio-rescale.c1 // SPDX-License-Identifier: GPL-2.0
47 if (rescale->chan_processed) in rescale_read_raw()
53 return iio_read_channel_processed(rescale->source, val); in rescale_read_raw()
55 return iio_read_channel_raw(rescale->source, val); in rescale_read_raw()
58 if (rescale->chan_processed) { in rescale_read_raw()
60 * Processed channels are scaled 1-to-1 in rescale_read_raw()
66 ret = iio_read_channel_scale(rescale->source, val, val2); in rescale_read_raw()
70 *val *= rescale->numerator; in rescale_read_raw()
71 *val2 *= rescale->denominator; in rescale_read_raw()
74 *val *= rescale->numerator; in rescale_read_raw()
[all …]
/Linux-v5.15/arch/arm/boot/dts/
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 …]
Daspeed-bmc-facebook-fuji.dts1 // SPDX-License-Identifier: GPL-2.0+
4 /dts-v1/;
6 #include <dt-bindings/leds/common.h>
7 #include "ast2600-facebook-netbmc-common.dtsi"
11 compatible = "facebook,fuji-bmc", "aspeed,ast2600";
15 * PCA9548 (2-0070) provides 8 channels connecting to
28 * PCA9548 (8-0070) provides 8 channels connecting to
41 * PCA9548 (11-0077) provides 8 channels connecting to
54 * PCA9548 (24-0071) provides 8 channels connecting to
55 * PDB-Left.
[all …]
Daspeed-bmc-facebook-tiogapass.dts1 // SPDX-License-Identifier: GPL-2.0+
4 /dts-v1/;
6 #include "aspeed-g5.dtsi"
7 #include <dt-bindings/gpio/aspeed-gpio.h>
8 #include <dt-bindings/i2c/i2c.h>
12 compatible = "facebook,tiogapass-bmc", "aspeed,ast2500";
39 stdout-path = &uart5;
47 iio-hwmon {
48 compatible = "iio-hwmon";
49 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
[all …]
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-v5.15/drivers/hwmon/pmbus/
Dadm1275.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller
110 [0] = { 27169, 0, -1 }, /* voltage */
111 [1] = { 806, 20475, -1 }, /* current, irange25 */
112 [2] = { 404, 20475, -1 }, /* current, irange50 */
113 [3] = { 8549, 0, -1 }, /* power, irange25 */
114 [4] = { 4279, 0, -1 }, /* power, irange50 */
118 [0] = { 6770, 0, -2 }, /* voltage, vrange 60V */
119 [1] = { 4062, 0, -2 }, /* voltage, vrange 100V */
120 [2] = { 1326, 20480, -1 }, /* current, vsense range 15mV */
[all …]
/Linux-v5.15/arch/arm64/boot/dts/renesas/
Dsalvator-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for common parts of Salvator-X board variants
5 * Copyright (C) 2015-2016 Renesas Electronics Corp.
9 * SSI-AK4613
31 #include <dt-bindings/gpio/gpio.h>
32 #include <dt-bindings/input/input.h>
46 stdout-path = "serial0:115200n8";
49 audio_clkout: audio-clkout {
52 * but needed to avoid cs2000/rcar_sound probe dead-lock
54 compatible = "fixed-clock";
[all …]
/Linux-v5.15/drivers/iio/adc/
Dmax9611.c1 // SPDX-License-Identifier: GPL-2.0
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
58 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3)
72 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000)
114 * max9611_mux_conf - associate ADC mux configuration with register address
137 * max9611_csa_gain_conf - associate gain multiplier with LSB and
195 * max9611_read_single() - read a single value from ADC interface
202 * Data are transmitted with big-endian ordering: MSB arrives first.
[all …]

12