All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Use correct LDO5 control registers for PCA9450
@ 2025-08-11 13:11 Frieder Schrempf
  2025-08-11 13:11 ` [PATCH 1/6] Revert "pmic: pca9450: Add optional SD_VSEL GPIO for LDO5" Frieder Schrempf
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Frieder Schrempf @ 2025-08-11 13:11 UTC (permalink / raw)
  To: u-boot, Fabio Estevam, Fabio Estevam, Jaehoon Chung, Marek Vasut,
	Stefano Babic, Tom Rini, u-boot
  Cc: Frieder Schrempf, Joy Zou, NXP i.MX U-Boot Team, Peng Fan, Ye Li

From: Frieder Schrempf <frieder.schrempf@kontron.de>

This is a port for the following series in Linux, which is already
available in mainline:

https://patchwork.kernel.org/project/linux-arm-kernel/cover/20241218152842.97483-1-frieder@fris.de/

This aligns the PMIC driver with current Linux and allows to use
upstream devicetrees in U-Boot.

Frieder Schrempf (6):
  Revert "pmic: pca9450: Add optional SD_VSEL GPIO for LDO5"
  pmic: pca9450: Fix enable register for LDO5
  pmic: pca9450: Fix control register for LDO5
  pmic: pca9450: Handle hardware with fixed SD_VSEL for LDO5
  arm: dts: imx8mp-data-modul-edm-sbc: Remove deprecated sd-vsel-gpios
  arm: dts: imx8mp-dhcom-som: Remove deprecated sd-vsel-gpios

 arch/arm/dts/imx8mp-data-modul-edm-sbc.dts |  1 -
 arch/arm/dts/imx8mp-dhcom-som.dtsi         |  1 -
 drivers/power/pmic/pca9450.c               | 22 -------------
 drivers/power/regulator/pca9450.c          | 37 ++++++++++++++++++++--
 4 files changed, 34 insertions(+), 27 deletions(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 16+ messages in thread
* [PATCH 0/6] Use correct LDO5 control registers for PCA9450
@ 2023-02-13 15:58 ` Frieder Schrempf
  0 siblings, 0 replies; 16+ messages in thread
From: Frieder Schrempf @ 2023-02-13 15:58 UTC (permalink / raw)
  To: devicetree, Frieder Schrempf, linux-arm-kernel, linux-kernel,
	Mark Brown, Robin Gong
  Cc: Marek Vasut, Krzysztof Kozlowski, Liam Girdwood, Rob Herring,
	Sascha Hauer, Shawn Guo

From: Frieder Schrempf <frieder.schrempf@kontron.de>

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-09-01  6:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 13:11 [PATCH 0/6] Use correct LDO5 control registers for PCA9450 Frieder Schrempf
2025-08-11 13:11 ` [PATCH 1/6] Revert "pmic: pca9450: Add optional SD_VSEL GPIO for LDO5" Frieder Schrempf
2025-08-11 13:11 ` [PATCH 2/6] pmic: pca9450: Fix enable register for LDO5 Frieder Schrempf
2025-08-11 13:11 ` [PATCH 3/6] pmic: pca9450: Fix control " Frieder Schrempf
2025-08-11 13:12 ` [PATCH 4/6] pmic: pca9450: Handle hardware with fixed SD_VSEL " Frieder Schrempf
2025-08-11 13:12 ` [PATCH 5/6] arm: dts: imx8mp-data-modul-edm-sbc: Remove deprecated sd-vsel-gpios Frieder Schrempf
2025-08-11 14:22   ` Marek Vasut
2025-08-11 13:12 ` [PATCH 6/6] arm: dts: imx8mp-dhcom-som: " Frieder Schrempf
2025-08-11 14:21   ` Marek Vasut
2025-08-25  8:40 ` [PATCH 0/6] Use correct LDO5 control registers for PCA9450 Frieder Schrempf
2025-08-27  5:46   ` Peng Fan
2025-08-27  7:37     ` Frieder Schrempf
2025-08-27 14:32       ` Tom Rini
2025-09-01  7:44 ` Peng Fan (OSS)
  -- strict thread matches above, loose matches on Subject: below --
2023-02-13 15:58 Frieder Schrempf
2023-02-13 15:58 ` Frieder Schrempf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.