[PATCH 0/6] Use correct LDO5 control registers for PCA9450
From: Frieder Schrempf
Date: Mon Feb 13 2023 - 10:59:57 EST
From: Frieder Schrempf <frieder.schrempf@xxxxxxxxxx>
This patchset fixes the control of the LDO5 regulator by providing an
option for letting the driver know which of the two possible control
registers is currently in use by the hardware.
It also fixes the enable register for LDO5 to use PCA9450_REG_LDO5CTRL_L
as specified by the datasheet.
The last patch makes use of the fix by adjusting the devicetree for
the Kontron i.MX8MM boards.
In Linux this currently doesn't fix any functional issues, but in
U-Boot similar changes are needed in order to fix SD card access.
See the following thread for more information:
https://lists.denx.de/pipermail/u-boot/2023-January/506103.html
Frieder Schrempf (6):
dt-bindings: regulator: pca9450: Document new usage of sd-vsel-gpios
regulator: pca9450: Fix enable register for LDO5
Revert "regulator: pca9450: Add SD_VSEL GPIO for LDO5"
regulator: Add operation to let drivers select vsel register
regulator: pca9450: Fix control register for LDO5
arm64: dts: imx8mm-kontron: Add support for reading SD_VSEL signal
.../regulator/nxp,pca9450-regulator.yaml | 23 ++++++---
.../dts/freescale/imx8mm-kontron-bl-osm-s.dts | 6 +--
.../boot/dts/freescale/imx8mm-kontron-bl.dts | 6 +--
.../dts/freescale/imx8mm-kontron-osm-s.dtsi | 1 +
.../boot/dts/freescale/imx8mm-kontron-sl.dtsi | 1 +
drivers/regulator/helpers.c | 16 ++++++-
drivers/regulator/pca9450-regulator.c | 47 ++++++++++++++-----
include/linux/regulator/driver.h | 5 ++
8 files changed, 79 insertions(+), 26 deletions(-)
--
2.39.1