zephyr/drivers
Ionut Catalin Pavel 867c254801 drivers: regulator: common: skip voltage change at init if already valid
The current implementation always sets the voltage before enabling,
even if the current voltage is in the allowed range.

This has some side effects, i.e. for PMIC regulators that are
pre-programmed for a specific value but allow voltage changes during
runtime. The side effect being that the regulator will always be reset
to the lower value of the voltage range at init.

Another usecase would be when a bootloader sets a specific voltage then
loads an application that uses the same driver.

The proposed fix is to evaluate the current voltage and try to bring
the actual voltage in range if the current voltage is not valid
according to the min/max constraints.

Tested on custom SAMD20 board with a custom RK816 PMIC driver.

Signed-off-by: Ionut Catalin Pavel <iocapa@iocapa.com>
2023-03-13 18:33:26 +00:00
..
adc drivers: adc: stm32 adc driver disable before calibration 2023-03-08 11:06:27 +01:00
audio soc: arm: nordic_nrf: replace NRF_DT_CHECK_PIN_ASSIGNMENTS 2023-02-28 08:42:05 -08:00
bbram drivers: bbram: Add Microchip MCP7940N driver 2023-03-01 08:55:39 +01:00
bluetooth drivers: bluetooth: hci_spi: fix condition causing infinite loop 2023-03-08 08:58:33 +01:00
cache cache: kconfig: Reorder and fix entries 2022-12-30 10:53:22 +00:00
can drivers: can: mcan: add support for CAN-FD ESI flag 2023-03-11 19:45:14 +01:00
clock_control soc: arm: Add support for STM32H730xxQ 2023-03-07 15:49:47 +01:00
console console: uart_console: handle runtime PM 2023-03-03 09:17:49 +01:00
coredump everywhere: Fix legacy include paths 2022-07-18 16:16:47 +00:00
counter drivers: counter: MCP7940N: initialization fix 2023-03-10 14:09:49 +01:00
crypto drivers: crypto: don't return uninitialized local variable 2023-01-03 13:36:46 +01:00
dac drivers: gd32-dac: add support for gd32a50x 2023-01-12 21:45:38 +01:00
dai Drivers: DAI: Intel: DMIC: Shorten unmute ramp time 2023-02-28 11:43:14 +01:00
debug kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
disk drivers: flashdisk: Change page info verification log message 2023-03-02 17:08:39 +01:00
display drivers: display: introduce driver for NXP DCNANO LCDIF peripheral 2023-03-04 09:19:26 +01:00
dma drivers: dma: stm32: dmamux: support dmamux2 and bdma 2023-03-01 15:58:27 +01:00
edac edac: ibecc: Correct indication of -ENODATA 2022-11-19 14:18:40 +09:00
eeprom emul: Cleanup emul directory 2023-02-24 11:50:10 +01:00
entropy drivers: entropy: add Renesas SmartBond entropy generator driver 2023-03-03 11:01:36 +01:00
espi drivers: espi: espi_mchp_xec: removed redundant state variables 2023-03-09 09:21:43 +01:00
ethernet drivers: net: initialize logging for the slip module 2023-02-20 16:44:23 +01:00
flash soc: arm: nordic_nrf: replace NRF_DT_CHECK_PIN_ASSIGNMENTS 2023-02-28 08:42:05 -08:00
fpga drivers: fpga: ice40: add support for the Lattice iCE40 series 2022-11-17 09:17:44 -05:00
fuel_gauge emul: Cleanup emul directory 2023-02-24 11:50:10 +01:00
gpio drivers: gpio: sifive: Update to use the available common IRQ API and 2023-03-10 07:59:42 -06:00
hwinfo drivers: hwinfo: Fix Gecko hwinfo driver building 2022-12-20 22:50:19 +01:00
i2c drivers: i2c: gpio: cast io context to void* 2023-03-10 12:20:22 -08:00
i2s soc: arm: nordic_nrf: replace NRF_DT_CHECK_PIN_ASSIGNMENTS 2023-02-28 08:42:05 -08:00
i3c i3c: add cdns i3c driver 2022-12-12 15:51:16 -05:00
ieee802154 drivers: ieee802154: cc13xx_cc26xx: Allow both radios to coexist 2023-03-10 10:22:16 -05:00
interrupt_controller drivers: interrupt: add esp32s3 interrupt controller 2023-02-27 19:41:33 +01:00
ipm all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
kscan drivers: kscan: Add driver for XPT2046 2023-03-06 17:21:17 +01:00
led drivers: led: Microchip XEC LED driver using BBLED controller 2022-12-02 11:31:50 +01:00
led_strip drivers: led_strip: add WS2812 I2S-based driver 2023-02-24 10:12:47 -08:00
lora drivers: lora: fix busy after sx12xx_lora_test_cw 2023-02-23 09:25:39 +01:00
mbox drivers: mbox: add support for NXP S32 MRU 2023-01-24 14:37:20 +01:00
mdio drivers: mdio: add support for NXP S32 NETC EMDIO 2023-01-24 14:37:20 +01:00
memc drivers: memc: fix flexspi init priorities 2023-03-10 13:10:30 -06:00
mipi_dsi drivers: mipi: introduce MCUX MIPI DSI 2L driver 2023-03-04 09:19:26 +01:00
misc drivers: tests: replace usage of spi_is_ready with spi_is_ready_dt 2022-12-07 09:40:23 -06:00
mm drivers: mm: Use mm_drv_bank module 2023-02-20 09:48:44 +01:00
modem modem: hl7800: Fix DNS resolver for all address families 2023-02-20 09:51:38 +01:00
net drivers: net: Move Ethernet device definition for SLIP to ethernet 2023-02-20 10:52:20 +01:00
neural_net include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
pcie drivers: pcie: late initialization of pcie when PCIe controller is used 2022-12-10 09:47:26 +01:00
peci driver: peci: mec: enable peci in ec subsystem register 2022-11-10 22:39:43 -05:00
pinctrl drivers: pinctrl: Add pinctrl support for TI K3 devices 2023-03-02 13:50:06 +01:00
pm_cpu_ops arm64: implement arch_system_halt 2022-11-23 11:37:08 +01:00
power_domain power_domain: gpio: only run actions for children on domain 2023-01-24 09:42:11 +01:00
ps2 include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
ptp_clock drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pwm drivers: pwm: pwm_mcux_sctimer: duty cycle fix 2023-03-11 19:44:27 +01:00
regulator drivers: regulator: common: skip voltage change at init if already valid 2023-03-13 18:33:26 +00:00
reset drivers: reset: Add support for reset clear register 2022-12-09 09:43:36 -08:00
sdhc drivers: sdhc: add support for configurable power on delay to SPI SDHC 2023-03-03 09:18:47 +01:00
sensor sensor: implement drdy trigger for icm42688 2023-03-06 10:44:52 -06:00
serial drivers: uart: mcux_lpuart: add parity support 2023-03-09 09:20:44 +01:00
spi drivers: spi: spi_esp32_spim: Remove check for NULL before freeing 2023-03-13 14:03:35 +01:00
syscon include: add missing errno.h include 2022-10-11 18:05:17 +02:00
timer drivers: timer: esp32c3: fix dtick counter increment 2023-03-09 17:22:34 +01:00
usb drivers: usb_dc_rpi_pico: implement remote wakeup support 2023-03-06 21:18:38 +01:00
usb_c usb-c: tcpc: Disable Dead Battery after system starts 2023-03-09 09:20:35 +01:00
video include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
virtualization drivers: ivshmem: msi.h header only required for ivshmem-doorbell 2022-12-10 09:47:26 +01:00
w1 crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
watchdog drivers: watchdog: implement Smartbond watchdog driver 2023-03-03 11:02:37 +01:00
wifi drivers: wifi: esp32: fix possible interface null pointer 2023-03-06 16:44:45 +01:00
xen include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
CMakeLists.txt subsys/mgmt/ec_host_cmd: update directory structure 2023-02-28 10:42:23 +01:00
Kconfig subsys/mgmt/ec_host_cmd: update directory structure 2023-02-28 10:42:23 +01:00