/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | ltc4286.c | 39 * The rsense value used in MBR formula in LTC4286 datasheet should be ohm unit. 40 * However, the rsense value that user input is micro ohm. 41 * Thus, the MBR setting which involves rsense should be shifted by 6 digits. 47 * The rsense value used in MBR formula in LTC4286 datasheet should be ohm unit. 48 * However, the rsense value that user input is micro ohm. 49 * Thus, the MBR setting which involves rsense should be shifted by 6 digits. 73 u32 rsense; in ltc4286_probe() local 107 "shunt-resistor-micro-ohms", &rsense)) in ltc4286_probe() 108 rsense = 300; /* 0.3 mOhm if not set via DT */ in ltc4286_probe() 110 if (rsense == 0) in ltc4286_probe() [all …]
|
H A D | xdp710.c | 64 int rsense; in xdp710_probe() local 93 rsense = micro_ohm_rsense[ret]; in xdp710_probe() 99 info->m[PSC_CURRENT_OUT] = DIV_ROUND_CLOSEST(m * rsense >> cs_rng, 1000); in xdp710_probe() 102 info->m[PSC_POWER] = DIV_ROUND_CLOSEST(m * rsense >> cs_rng, 1000); in xdp710_probe()
|
/openbmc/linux/drivers/power/supply/ |
H A D | max1721x_battery.c | 32 #define MAX1721X_REG_NRSENSE 0x1CF /* RSense in 10^-5 Ohm */ 65 unsigned int rsense; /* in tenths uOhm */ member 108 * RSense stored in 10^-5 Ohm, so measurement voltage must be 174 /* We need signed current, so must cast info->rsense to signed type */ in max1721x_battery_get_property() 178 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property() 183 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property() 367 /* rsense init */ in devm_w1_max1721x_add_device() 368 info->rsense = 0; in devm_w1_max1721x_add_device() 369 if (regmap_read(info->regmap, MAX1721X_REG_NRSENSE, &info->rsense)) { in devm_w1_max1721x_add_device() 370 dev_err(info->w1_dev, "Can't read RSense. Hardware error.\n"); in devm_w1_max1721x_add_device() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/temperature/ |
H A D | adi,ltc2983.yaml | 217 adi,rsense-handle: 229 adi,rsense-share: 265 - adi,rsense-handle 281 adi,current-rotate: [ "adi,rsense-share" ] 312 adi,rsense-handle: 320 adi,rsense-share: 362 - adi,rsense-handle 365 adi,current-rotate: [ "adi,rsense-share" ] 438 "^rsense@": 453 adi,rsense-val-milli-ohms: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/afe/ |
H A D | temperature-transducer.yaml | 25 V(T) = Rsense * Isense(T) 27 T = 1 / (Rsense * alpha) * (V + offset * Rsense * alpha) 29 When using a temperature to voltage transducer, Rsense is set to 1. 46 | Rsense | |
|
/openbmc/linux/drivers/iio/temperature/ |
H A D | ltc2983.c | 127 /* cold junction for thermocouples and rsense for rtd's and thermistor's */ 619 struct ltc2983_rsense *rsense = to_rsense(sensor); in ltc2983_r_sense_assign_chan() local 622 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan() 760 ref = fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_rtd_new() 762 dev_err(dev, "Property adi,rsense-handle missing or invalid"); in ltc2983_rtd_new() 785 /* 4 wires, Kelvin Rsense */ in ltc2983_rtd_new() 795 if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_rtd_new() 796 /* Current rotation is only available with rsense sharing */ in ltc2983_rtd_new() 813 * For 4wire RTDs with kelvin rsense, the rsense channel cannot be in ltc2983_rtd_new() 827 /* kelvin rsense*/ in ltc2983_rtd_new() [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | qcom-spmi-iadc.c | 98 * @rsense: Values of the internal and external sense resister in micro Ohms. 110 u32 rsense[2]; member 331 isense_ua = vsense_uv / iadc->rsense[chan->channel]; in iadc_read_raw() 435 &iadc->rsense[IADC_EXT_RSENSE]); in iadc_rsense_read() 437 iadc->rsense[IADC_EXT_RSENSE] = IADC_INT_RSENSE_IDEAL_VALUE; in iadc_rsense_read() 439 if (!iadc->rsense[IADC_EXT_RSENSE]) { in iadc_rsense_read() 461 iadc->rsense[IADC_INT_RSENSE] = int_sense; in iadc_rsense_read() 522 iadc->rsense[IADC_INT_RSENSE], in iadc_probe() 523 iadc->rsense[IADC_EXT_RSENSE]); in iadc_probe()
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | rohm,bd71828-pmic.yaml | 58 External sense resistor (RSENSE in data sheet) should be used. If some
|
H A D | rohm,bd71815-pmic.yaml | 58 External sense resistor (RSENSE in data sheet) should be used. If
|
/openbmc/linux/arch/arm/boot/dts/nuvoton/ |
H A D | nuvoton-npcm750-runbmc-olympus.dts | 401 Rsense = <500>;
|
/openbmc/linux/sound/soc/codecs/ |
H A D | rt1305.c | 65 { RT1305_ADC_SET_1, 0x170f }, /* 0.2 ohm RSense*/
|