Skip to content

Use correct LDO5 control registers for PCA9450

Frieder Schrempf linux-arm-kernel linux-devicetree linux-media lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dt-bindings: regulator: pca9450: Document new usage of sd-vsel-gpiosDocumentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml+17 -64 replies
2/6regulator: pca9450: Fix enable register for LDO5drivers/regulator/pca9450-regulator.c+2 -21 reply
3/6Revert "regulator: pca9450: Add SD_VSEL GPIO for LDO5"drivers/regulator/pca9450-regulator.c+0 -143 replies
4/6regulator: Add operation to let drivers select vsel registerdrivers/regulator/helpers.c include/linux/regulator/driver.h+19 -23 replies
5/6regulator: pca9450: Fix control register for LDO5drivers/regulator/pca9450-regulator.c+41 -40 replies
6/6arm64: dts: imx8mm-kontron: Add support for reading SD_VSEL signalarch/arm64/boot/dts/freescale/imx8mm-kontron-bl-osm-s.dts arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi +1 more+8 -611 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchMarek Vasut
1/6
2/6R-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Use correct LDO5 control registers for PCA9450

From: Frieder Schrempf <[email protected]>

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(-)
Signature · 1 line
2.39.1