Lines Matching +full:linear +full:- +full:mapping +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * driver.h -- SoC Regulator driver support.
62 * struct regulator_ops - regulator operations.
75 * return -ENOTRECOVERABLE if regulator can't be read at
78 * regulator; return -ENOTRECOVERABLE if regulator can't
85 * @set_current_limit: Configure a limit for a current-limited regulator.
87 * @get_current_limit: Get the configured limit for a current-limited regulator.
94 * REGULATOR_SEVERITY_ERR should indicate that over-current situation is
112 * @set_mode: Set the configured operating mode for the regulator.
113 * @get_mode: Get the configured operating mode for the regulator.
115 * @get_status: Return actual (not as-configured) status of regulator, as a
117 * @get_optimum_mode: Get the most efficient operating mode for the regulator
121 * @set_bypass: Set the regulator in bypass mode.
122 * @get_bypass: Get the regulator bypass mode state.
144 * @set_suspend_mode: Set the operating mode for the regulator when the
187 /* get/set regulator operating mode (defined in consumer.h) */
188 int (*set_mode) (struct regulator_dev *, unsigned int mode);
212 /* get most efficient regulator operating mode for load */
218 /* control and report on bypass mode */
232 /* set regulator suspend operating mode (defined in consumer.h) */
233 int (*set_suspend_mode) (struct regulator_dev *, unsigned int mode);
249 * struct regulator_desc - Static regulator descriptor
253 * structure contains the non-varying parts of the regulator
282 * @min_uV: Voltage given by the lowest selector (if linear mapping)
283 * @uV_step: Voltage increase with each selector (if linear mapping)
284 * @linear_min_sel: Minimal selector for starting linear mapping
294 * @volt_table: Voltage mapping table (if table based mapping)
295 * @curr_table: Current limit mapping table (if table based mapping)
340 * @ramp_reg: Register for controlling the regulator ramp-rate.
341 * @ramp_mask: Bitmask for the ramp-rate control register.
342 * @ramp_delay_table: Table for mapping the regulator ramp-rate values. Values
347 * @off_on_delay: guard time (in uS), before re-enabling a regulator
352 * @of_map_mode: Maps a hardware mode defined in a DeviceTree to a standard mode
426 unsigned int (*of_map_mode)(unsigned int mode);
430 * struct regulator_config - Dynamic regulator descriptor
456 * struct regulator_err_state - regulator error/notification status
471 * struct regulator_irq_data - regulator error/notification status data
495 * struct regulator_irq_desc - notification sender for IRQ based events.
499 * best to shut-down regulator(s) or reboot the SOC if error
504 * @reread_ms: The time which is waited before attempting to re-read status
505 * at the worker if IC reading fails. Immediate re-read is done
507 * @irq_off_ms: The time which IRQ is kept disabled before re-evaluating the
530 * fatal_cnt times the core will call die() callback or power-off
533 * re-enabling IRQ. If implemented this should clear the error
536 * assumed to be cleared and IRQ is re-enabled.
540 * callback or if die() is not populated then attempt to power-off
543 * and IRQ will be re-enabled. Returning REGULATOR_ERROR_ON
549 * re-evaluated and re-sent.