/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | maxim,max9611.yaml | 1 # 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 …]
|
H A D | ti,lmp92064.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Leonard Göhrs <l.goehrs@pengutronix.de> 22 - ti,lmp92064 27 vdd-supply: 30 vdig-supply: 34 shunt-resistor-micro-ohms: 36 Value of the shunt resistor (in µΩ) connected between INCP and INCN, 40 reset-gpios: [all …]
|
H A D | richtek,rtq6056.yaml | 1 # 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 17 The device monitors both of the drops across sense resistor and the BUS 19 internal analog-to-digital converter ADC. The programmable calibration, 24 https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.pdf 33 "#io-channel-cells": [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | maxim,max5970.yaml | 1 # 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> 24 - maxim,max5970 25 - maxim,max5978 39 "#address-cells": 42 "#size-cells": 46 "^led@[0-3]$": 52 vss1-supply: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adi,ltc2945.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Guenter Roeck <linux@roeck-us.net> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2945.pdf 20 - adi,ltc2945 25 shunt-resistor-micro-ohms: 27 Shunt resistor value in micro-Ohms 31 - compatible 32 - reg [all …]
|
H A D | ina3221.txt | 5 - 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 …]
|
H A D | lltc,ltc4151.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 19 shunt-resistor-micro-ohms: 21 Shunt resistor value in micro-Ohms 25 - compatible 26 - reg 31 - | 33 #address-cells = <1>; [all …]
|
H A D | adi,ltc2992.yaml | 1 # 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 …]
|
H A D | adi,adm1177.yaml | 1 # 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, 33 adi,shutdown-threshold-microamp: [all …]
|
H A D | ti,tps23861.yaml | 1 # 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 …]
|
H A D | adi,adm1275.yaml | 1 # 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 …]
|
H A D | ti,tmp513.yaml | 1 # 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 …]
|
H A D | lltc,ltc4286.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Delphine CC Chiu <Delphine_CC_Chiu@Wiwynn.com> 15 - lltc,ltc4286 16 - lltc,ltc4287 21 adi,vrange-low-enable: 29 - compatible 30 - reg 33 - $ref: hwmon-common.yaml# [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/afe/ |
H A D | current-sense-shunt.yaml | 1 # 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 …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-ibm-sbp1.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 4 #include <dt-bindings/gpio/aspeed-gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/i2c/i2c.h> 9 #include "aspeed-g6.dtsi" 13 compatible = "ibm,sbp1-bmc", "aspeed,ast2600"; 16 stdout-path = &uart1; [all …]
|
H A D | aspeed-bmc-facebook-yosemite4.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/leds/leds-pca955x.h> 8 #include <dt-bindings/i2c/i2c.h> 12 compatible = "facebook,yosemite4-bmc", "aspeed,ast2600"; 44 stdout-path = "serial4:57600n8"; 52 iio-hwmon { 53 compatible = "iio-hwmon"; [all …]
|
H A D | aspeed-bmc-asrock-romed8hm3.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "asrock,romed8hm3-bmc", "aspeed,ast2500"; 17 stdout-path = &uart5; 26 compatible = "gpio-leds"; 30 linux,default-trigger = "timer"; 33 system-fault { [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/pmbus/ |
H A D | ti,lm25066.yaml | 1 # 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 23 - ti,lm25056 24 - ti,lm25066 25 - ti,lm5064 26 - ti,lm5066 [all …]
|
/openbmc/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra186-p3310.dtsi | 1 // 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>; 47 phy: ethernet-phy@0 { 48 compatible = "ethernet-phy-ieee802.3-c22"; [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | ltc4151.c | 1 // 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 …]
|
H A D | ltc2945.c | 1 // 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() 128 /* Overflow check: Assuming max 24-bit power, val is at most 53 bits right now. */ in ltc2945_reg_to_val() 131 * Overflow check: After division, depending on shunt resistor, in ltc2945_reg_to_val() [all …]
|
H A D | adm1177.c | 1 // 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 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() 92 4096 * st->r_sense_uohm); in adm1177_read() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/addac/ |
H A D | adi,ad74413r.yaml | 1 # 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 …]
|
/openbmc/linux/drivers/iio/afe/ |
H A D | iio-rescale.c | 1 // 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() 80 * For IIO_VAL_INT_PLUS_{MICRO,NANO} scale types if either *val in rescale_process_scale() 82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale() [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp157c-lxa-tac-gen1.dts | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) 3 * Copyright (C) 2020 STMicroelectronics - All Rights Reserved 8 /dts-v1/; 11 #include "stm32mp15xc-lxa-tac.dtsi" 15 compatible = "lxa,stm32mp157c-tac-gen1", "oct,stm32mp15xx-osd32", "st,stm32mp157"; 18 compatible = "pwm-backlight"; 19 power-supply = <&v3v3>; 21 brightness-levels = <0 31 63 95 127 159 191 223 255>; 22 default-brightness-level = <7>; 26 reg_iobus_12v: regulator-iobus-12v { [all …]
|