Home
last modified time | relevance | path

Searched +full:5 +full:vout (Results 1 – 25 of 60) sorted by relevance

123

/linux/drivers/hwmon/pmbus/
H A Dstpddc60.c37 * Calculate the closest absolute offset between commanded vout value
39 * Return 0 if the upper limit is lower than vout or if the lower limit
40 * is higher than vout.
42 static u8 stpddc60_get_offset(int vout, u16 limit, bool over) in stpddc60_get_offset() argument
47 v = 250 + (vout - 1) * 5; /* Convert VID to mv */ in stpddc60_get_offset()
69 m = ((s16)((word & 0x7ff) << 5)) >> 5; in stpddc60_adjust_linear()
81 * The VOUT_COMMAND register uses the VID format but the vout alarm limit
105 * The vout related registers return values in LINEAR11 format when LINEAR16
106 * is expected. Clear the top 5 bits to set the exponent part to zero to
141 * The vout under- and over-voltage limits are set as an offset relative to
[all …]
H A Dmp5990.c31 * The VOUT format used by the chip is linear11, in mp5990_read_byte_data()
32 * not linear16. Report that VOUT is in linear mode in mp5990_read_byte_data()
40 * The datasheet does not support the VOUT command, in mp5990_read_byte_data()
43 * Therefore, we should report that VOUT is in direct in mp5990_read_byte_data()
67 * Because the VOUT format used by the chip is linear11 and not in mp5990_read_word_data()
72 mantissa = ((s16)((ret & 0x7ff) << 5)) >> 5; in mp5990_read_word_data()
127 /* Read Vout Config */ in mp5990_probe()
130 dev_err(&client->dev, "Can't get vout mode."); in mp5990_probe()
145 dev_err(&client->dev, "Can't get vout exponent."); in mp5990_probe()
H A Dmp9941.c16 * config the vout format. The MFR_VR_MULTI_CONFIG_R1(0x0D) is
17 * used to identify the vout vid step.
59 * page = 0, MFR_RESO_SET[7:6] defines the vout format in mp9941_set_vout_format()
60 * 2'b11 set the vout format as direct in mp9941_set_vout_format()
76 * 1'b1 represents the vid step value is 5mV in mp9941_identify_vid_resolution()
87 data->vid_resolution = 5; in mp9941_identify_vid_resolution()
188 * The vout scale is set to 1mV/Lsb(using r/m/b scale). in mp9941_read_word_data()
189 * But the vout uv limit and vout max/min scale is 1VID/Lsb, in mp9941_read_word_data()
190 * so the vout uv limit and vout max/min value should be in mp9941_read_word_data()
H A Dmp2891.c17 * is used to identify the vout scale. The READ_PIN_EST(0x94) is used
34 #define MP2891_UV_LIMIT_SCALE 5
70 mantissa = ((s16)((word & 0x7ff) << 5)) >> 5; in mp2891_reg2data_linear11()
99 * Obtain vout scale from the register MFR_VOUT_LOOP_CTRL, bits 15-14,bit 13. in mp2891_identify_vout_scale()
100 * If MFR_VOUT_LOOP_CTRL[13] = 1, the vout scale is below: in mp2891_identify_vout_scale()
102 * If MFR_VOUT_LOOP_CTRL[13] = 0, the vout scale is decided by in mp2891_identify_vout_scale()
104 * 00b - 6.25mV/LSB, 01b - 5mV/LSB, 10b - 2mV/LSB, 11b - 1mV in mp2891_identify_vout_scale()
164 case 5: in mp2891_identify_iout_scale()
179 /* Identify vout scale for rail 1. */ in mp2891_identify()
184 /* Identify vout scale for rail 2. */ in mp2891_identify()
[all …]
H A Dxdpe12284.c17 #define XDPE122_PROT_VR12_5MV 0x01 /* VR12.0 mode, 5-mV DAC */
18 #define XDPE122_PROT_VR12_5_10MV 0x02 /* VR12.5 mode, 10-mV DAC */
41 mantissa = ((s16)((ret & GENMASK(10, 0)) << 5)) >> 5; in xdpe122_read_word_data()
56 return 1 + DIV_ROUND_CLOSEST(val - 250, 5); in xdpe122_read_word_data()
85 switch (vout_mode >> 5) { in xdpe122_identify()
99 /* Read the register with VOUT scaling value.*/ in xdpe122_identify()
128 PMBUS_REGULATOR("vout", 0),
129 PMBUS_REGULATOR("vout", 1),
H A Dmp2993.c42 mantissa = ((s16)((word & 0x7ff) << 5)) >> 5; in mp2993_linear11_exponent_transfer()
69 /* Set vout to direct format for rail1. */ in mp2993_identify()
74 /* Set vout to direct format for rail2. */ in mp2993_identify()
175 * and the exponent is a constant value(5'b00000), so the in mp2993_write_word_data()
176 * exponent of word parameter should be converted to 5'b00000. in mp2993_write_word_data()
187 * exponent is a 5'b00001 or 5'b00000. To ensure a larger in mp2993_write_word_data()
189 * should be converted to 5'b00001. in mp2993_write_word_data()
H A Dmp2975.c50 #define MP2975_PROT_DEV_OV_ON 5
121 PMBUS_REGULATOR("vout", 0),
122 PMBUS_REGULATOR("vout", 1),
157 return 250 + (val - 1) * 5; in mp2975_vid2direct()
204 /* Convert to 5 bit exponent, 11 bit mantissa */ in mp2975_data2reg_linear11()
228 * 00b - 5µA/A, 01b - 8.5µA/A, 10b - 9.7µA/A, 11b - 10µA/A. in mp2975_read_phase()
265 case 4 ... 5: in mp2975_read_phases()
282 case 4 ... 5: in mp2975_read_phases()
421 #define MP2973_OTHER_COMM 5 in mp2973_write_word_data()
729 * 00b - 5µA/A, 01b - 8.5µA/A, 10b - 9.7µA/A, 11b - 10µA/A. Other in mp2975_current_sense_gain_get()
[all …]
H A Dmp2856.c107 /* Convert to 5 bit exponent, 11 bit mantissa */ in val2linear11()
131 /* convert vout result to direct format */ in mp2856_read_vout()
133 ((ret + 49) * 5) : ((ret * 1000) >> 8); in mp2856_read_vout()
177 case 4 ... 5: in mp2856_read_phases()
235 /* Enforce VOUT direct format. */ in mp2856_read_byte_data()
309 * 00b - 5µA/A, 01b - 8.5µA/A, 10b - 9.7µA/A, 11b - 10µA/A. Other in mp2856_current_sense_gain_get()
434 /* Identify vout format. */ in mp2856_probe()
H A Dmax20730.c75 #define MAX20730_MFR_DEVSET1_OCP_MASK (BIT(5) | BIT(6))
82 #define MAX20730_MFR_DEVSET1_OCP_BIT_POS 5
88 #define MAX20730_MFR_DEVSET2_OCPM_MASK BIT(5)
93 #define MAX20730_MFR_DEVSET2_OCPM_BIT_POS 5
141 else if (val == 5) in max20730_debugfs_read()
439 static u32 max_current[][5] = {
469 max_c = max_current[data->id][(data->mfr_devset1 >> 5) & 0x3]; in max20730_read_word_data()
509 devset1 &= ~(BIT(5) | BIT(6)); in max20730_write_word_data()
513 devset1 |= (idx << 5); in max20730_write_word_data()
580 * for the relationship between Vin and Vout.
[all …]
/linux/Documentation/devicetree/bindings/leds/
H A Dleds-lp55xx.yaml60 - 1 # D1~6 with VDD, D7~9 with VOUT
61 - 2 # D1~6 with VOUT, D7~9 with VDD
62 - 3 # D1~9 are connected to VOUT
146 - 5 # LED output D6
186 pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
224 led@5 {
225 reg = <5>;
/linux/drivers/regulator/
H A Dmax8973-regulator.c51 #define MAX8973_NFSR_ENABLE BIT(5)
64 #define MAX8973_DISCH_ENBABLE BIT(5)
116 * find_voltage_set_register: Find new voltage configuration register (VOUT).
117 * The finding of the new VOUT register will be based on the LRU mechanism.
118 * Each VOUT register will have different voltage configured . This
119 * Function will look if any of the VOUT register have requested voltage set
123 * the VOUT register but need to set the proper gpios to select this
124 * VOUT register.
126 * recently mechanism to get new VOUT register for new configuration
127 * and will return not_found so that caller need to set new VOUT
[all …]
H A Drt6190-regulator.c48 #define RT6190_ALERT_UVPEVT BIT(5)
106 * From off to on, vout config will restore to IC default. in rt6190_out_enable()
107 * Read vout configs before enable, and restore them after enable in rt6190_out_enable()
357 /* Config default VOUT ratio to be higher */ in rt6190_init_registers()
/linux/Documentation/hwmon/
H A Dbel-pfe.rst94 in[3-8]_label "vout[1-3,5-7]"
96 in[3-4]_alarm vout[1-2] output voltage alarm
111 - curr3, fan2, vout[2-7], vcap, pin2, pout2 and temp3 attributes only
H A Disl68137.rst451 in[2-3]_label "vout[1-2]"
496 in3_label "vout"
541 in[3-4]_label "vout[1-2]"
555 temp[1-5]_input Measured temperature
556 temp[1-5]_crit Critical high temperature
557 temp[1-5]_crit_alarm Chip temperature critical high alarm
558 temp[1-5]_max Maximum temperature
559 temp[1-5]_max_alarm Chip temperature high alarm
586 in[3-5]_label "vout[1-3]"
587 in[3-5]_input Measured output voltage
[all …]
H A Dmp2856.rst30 - Can configured VOUT readout in direct or VID format and allows
32 protocols are available: AMD SVI3 mode with 5-mV/LSB.
63 - indexes 2, 3 for "vout";
H A Dmp2975.rst30 - Can configured VOUT readout in direct or VID format and allows
32 protocols are available: VR13 mode with 5-mV DAC; VR13 mode with
33 10-mV DAC, IMVP9 mode with 5-mV DAC.
84 - indexes n+1, n+2 for "vout";
H A Dxdpe12284.rst41 - VR12.0 mode, 5-mV DAC - 0x01.
42 - VR12.5 mode, 10-mV DAC - 0x02.
43 - IMVP9 mode, 5-mV DAC - 0x03.
69 indexes 1, 2 are for "vin" and 3, 4 for "vout":
H A Dmax31785.rst25 readings in attributes fan[5-8]_input. By contrast the MAX31785 only exposes
40 fan[1-8]_input Fan RPM. On the MAX31785A, inputs 5-8 correspond to the
47 in[1-6]_label "vout[18-23]"
H A Dlt7182s.rst67 in[3-5]_label "vmon[1-3]"
68 in[3-5]_input Measured voltage on ITH1/ITH2/EXTVCC pins
72 in[3-4|6-7]_label "vout[1-2]"
/linux/drivers/iio/proximity/
H A Dd3323aa.c36 #define D3323AA_REG_BIT_SLAVEA6 5 /* F42. */
76 #define D3323AA_SETTING_END_PATTERN_NR_BITS 5
120 { 5, 1 },
163 /* Input clock or output detection signal (Vout). */
290 "Could not read from GPIO vout-clk (%d)\n", in d3323aa_irq_handler()
330 fsleep((30 + 5) * USEC_PER_MSEC); in d3323aa_reset()
334 * D3323AA_IRQ_RESET_COUNT falling edges on Vout/CLK that it is now in d3323aa_reset()
355 * Vout/CLK signal slowly ramps up during this period. Thus, the digital in d3323aa_reset()
431 "Could not set GPIO vout-clk as input (%d)\n", ret); in d3323aa_setup()
754 devm_gpiod_get(dev, "vout-clk", GPIOD_OUT_LOW); in d3323aa_probe()
[all …]
/linux/drivers/iio/light/
H A Dgp2ap002.c59 /* VCON :VOUT output method control(0:normal, 1:interrupt) */
61 /* OCON :Select switch for enabling/disabling VOUT (00:enable, 11:disable) */
81 #define GP2AP002_HYS_HYSC_SHIFT 5
82 #define GP2AP002_HYS_HYSC_MASK GENMASK(6, 5)
92 * 5: 256ms, 6: 512ms, 7: 1024ms
95 #define GP2AP002_CYCLE_CYCL_MASK GENMASK(5, 3)
115 * Select switch for enabling/disabling Vout pin
206 dev_err(gp2ap002->dev, "error setting up VOUT control\n"); in gp2ap002_prox_irq()
222 0, 1, 1, 2, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 25, 32, 40, 50, 63, 79,
316 /* Interrupt on VOUT enabled */ in gp2ap002_init()
[all …]
/linux/Documentation/devicetree/bindings/iio/addac/
H A Dadi,ad74115.yaml65 5 - Current input, loop-powered
196 either source or sink for VOUT and 4mA sink for IOUT.
197 When present, the limit is 16mA in either source or sink for VOUT,
270 5 - Monitor HART EOM status
272 maximum: 5
284 5 - Monitor HART SOM status
286 maximum: 5
298 5 - Monitor HART TX complete status
300 maximum: 5
312 5 - Monitor HART CD complete status
[all …]
/linux/drivers/media/pci/ivtv/
H A Divtv-ioctl.c149 data[5] = 0; in ivtv_set_speed()
182 data[0], data[1], data[2], data[3], data[4], data[5], data[6]); in ivtv_set_speed()
754 static int ivtv_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout) in ivtv_s_audio() argument
758 if (vout->index >= itv->nof_audio_inputs) in ivtv_s_audio()
761 itv->audio_input = vout->index; in ivtv_s_audio()
783 static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout) in ivtv_s_audout() argument
787 if (itv->card->video_outputs == NULL || vout->index != 0) in ivtv_s_audout()
800 static int ivtv_enum_output(struct file *file, void *fh, struct v4l2_output *vout) in ivtv_enum_output() argument
804 return ivtv_get_output(itv, vout->index, vout); in ivtv_enum_output()
1520 static const char * const output_modes[5] = { in ivtv_log_status()
[all …]
/linux/Documentation/devicetree/bindings/iio/afe/
H A Dtemperature-sense-rtd.yaml29 5V0
33 | R 5k |
38 +---- Vout
97 excitation-current-microamp = <1000>; /* i = U/R = 5 / 5000 */
/linux/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-delta-ahe50dc.dts10 vout-supply = <&efuse##n>; \
21 efuse##num: vout { \
75 <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>;
258 /* lm25066 efuses @ 10-17, 40-47, 50-57, 59, 5a */
284 EFUSE(5a, 50);

123