[RFC PATCH v2 0/3] regulator: pwm-regulator: Fixes for disabled PWMs at boot
From: Martin Blumenstingl
Date: Sat Jan 13 2024 - 17:47:06 EST
This is the second version of an attempt to fix booting mainline Linux
on Meson8b Odroid-C1.
This series is an update to an RFC patch that I sent some time ago [0]
and incorporates a lot of the feedback from that v1.
The main changes since v1 [0] are:
- new patch checking the voltage limits in pwm_regulator_get_voltage()
- updated calculation for disabled regulators in+
pwm_regulator_get_voltage() utilizing above limit checking
- new pwm_regulator_init_boot_on() to preserve the output voltage when
pwm_regulator_enable() later enables the PWM output without and
preceding pwm_regulator_set_voltage().
[0] https://lore.kernel.org/linux-pwm/20231221211222.1380658-1-martin.blumenstingl@xxxxxxxxxxxxxx/
Martin Blumenstingl (3):
regulator: pwm-regulator: Add validity checks in continuous
.get_voltage
regulator: pwm-regulator: Calculate the output voltage for disabled
PWMs
regulator: pwm-regulator: Manage boot-on with disabled PWM channels
drivers/regulator/pwm-regulator.c | 43 +++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
--
2.43.0