Skip to contentSkip to conversation

regulator: add new PMIC PF9453 support

PATCH In review Frank Li 2 participants 4 messages Mar 14, 2025 – Mar 17, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

v5 cover regulator: add new PMIC PF9453 support

Add binding doc and driver.

DTS part wait for
https://lore.kernel.org/imx/Z04W5chGq5TitB9f@lizhi-Precision-Tower-5810/

---
Changes in v5:
- Rebase to regulator/for-next, upstream version remove LDO5 support.
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Add Krzy's review tag
- fix GENMASK(7,4) problem
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:

binding part
- Change to LDO-SNVS from LDO_SNVS

driver part
- remove pf9453.h
- remove double space
- use low case hex value
- remove , after terminate
- use GEMASK
- change to LDO-SNVS
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Reuse nxp,pca9450-regulator.yaml. Add nxp,pf9453 in nxp,pca9450-regulator.yaml instead of create new one.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Frank Li (1):
regulator: dt-bindings: pca9450: Add nxp,pf9453 compatible string

Joy Zou (1):
regulator: pf9453: add PMIC PF9453 support

 .../bindings/regulator/nxp,pca9450-regulator.yaml  |  24 +-
 drivers/regulator/Kconfig                          |   7 +
 drivers/regulator/Makefile                         |   1 +
 drivers/regulator/pf9453-regulator.c               | 879 +++++++++++++++++++++
 4 files changed, 910 insertions(+), 1 deletion(-)

---
base-commit: 50a9890fc545421f82a6ac894af4dfd1fbbbf7a5
change-id: 20241205-pf9453-90e8dbda562a

Best regards,
---
Frank Li <[email protected]>

author maintainer
#1 lore raw

PATCH v5 1/2 regulator: dt-bindings: pca9450: Add nxp,pf9453 compatible string

Add the compatible string "nxp,pf9453" for the PF9453 regulator. The PF9453 is similar to the PCA9460 but supports only LDO1, LDO2, LDO_SVNS, and BUCK[1-4].

Restrict LDO and BUCK numbers for nxp,pf9453 and keep the same restriction for other compatible strings.

---
Change form v3 to v4
- rebase to regualtor/for-next
- last upstream remove LDO5, so remove LDO5 for nxp,pf9453 also.

change from v2 to v3
- LDO_SNVS to LDO-SNVS

---
 .../bindings/regulator/nxp,pca9450-regulator.yaml  | 24 +++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml +23 -1
index 7605a05a9eedf..4ffe5c3faea07 100644
@@ -17,6 +17,9 @@ description: |
   Datasheet is available at
   https://www.nxp.com/docs/en/data-sheet/PCA9450DS.pdf
 
+  Support PF9453, Datasheet is available at
+  https://www.nxp.com/docs/en/data-sheet/PF9453_SDS.pdf
+
 # The valid names for PCA9450 regulator nodes are:
 # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6,
 # LDO1, LDO2, LDO3, LDO4, LDO5
@@ -30,6 +33,7 @@ properties:
       - nxp,pca9450c
       - nxp,pca9451a
       - nxp,pca9452
+      - nxp,pf9453
 
   reg:
     maxItems: 1
@@ -65,7 +69,7 @@ properties:
         unevaluatedProperties: false
 
     patternProperties:
-      "^LDO[1-4]$":
+      "^LDO([1-4]|-SNVS)$":
         type: object
         $ref: regulator.yaml#
         description:
@@ -118,6 +122,24 @@ required:
 
 additionalProperties: false
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: nxp,pf9453
+    then:
+      properties:
+        regulators:
+          patternProperties:
+            "^LDO[3-4]$": false
+            "^BUCK[5-6]$": false
+    else:
+      properties:
+        regulators:
+          properties:
+            LDO-SNVS: false
+
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
Signature · 1 line
2.34.1
author maintainer
#2 lore raw

PATCH v5 2/2 regulator: pf9453: add PMIC PF9453 support

In reply to Frank Li

From: Joy Zou <[email protected]>

Support new PMIC PF9453, which is totally difference with PCA9450. So create new file for it.

The PF9453 is a single chip Power Management IC (PMIC) specifically designed for i.MX 91 processor. It provides power supply solutions for IoT (Internet of Things), smart appliance, and portable applications where size and efficiency are critical. The device provides four high efficiency step-down regulators, three LDOs, one 400 mA load switch and 32.768 kHz crystal oscillator driver.

---
change from v4 to v5
- none

Change from v3 to v4
- fix GENMASK(7, 4), should be GENMASK(7, 6)

change from v2 to v3
- remove pf9453.h
- remove double space
- use low case hex value
- remove , after terminate
- use GEMASK
- change to LDO-SNVS

---
 drivers/regulator/Kconfig            |   7 +
 drivers/regulator/Makefile           |   1 +
 drivers/regulator/pf9453-regulator.c | 879 +++++++++++++++++++++++++++++++++++
 3 files changed, 887 insertions(+)
drivers/regulator/Kconfig +7 -0
index 1236b3a1f93f6..807d07067951c 100644
@@ -981,6 +981,13 @@ config REGULATOR_PCA9450
 	  Say y here to support the NXP PCA9450A/PCA9450B/PCA9450C PMIC
 	  regulator driver.
 
+config REGULATOR_PF9453
+	tristate "NXP PF9453 regulator driver"
+	depends on I2C
+	select REGMAP_I2C
+	help
+	  Say y here to support the NXP PF9453 PMIC regulator driver.
+
 config REGULATOR_PCAP
 	tristate "Motorola PCAP2 regulator driver"
 	depends on EZX_PCAP
drivers/regulator/Makefile +1 -0
index 8dca3567437f6..524e026c02734 100644
@@ -123,6 +123,7 @@ obj-$(CONFIG_REGULATOR_QCOM_SPMI) += qcom_spmi-regulator.o
 obj-$(CONFIG_REGULATOR_QCOM_USB_VBUS) += qcom_usb_vbus-regulator.o
 obj-$(CONFIG_REGULATOR_PALMAS) += palmas-regulator.o
 obj-$(CONFIG_REGULATOR_PCA9450) += pca9450-regulator.o
+obj-$(CONFIG_REGULATOR_PF9453) += pf9453-regulator.o
 obj-$(CONFIG_REGULATOR_PF8X00) += pf8x00-regulator.o
 obj-$(CONFIG_REGULATOR_PFUZE100) += pfuze100-regulator.o
 obj-$(CONFIG_REGULATOR_PV88060) += pv88060-regulator.o
drivers/regulator/pf9453-regulator.c new file +879 -0

879 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer
#3 lore raw
In reply to Frank Li
Quoted 6 lines · Frank Li

Add binding doc and driver.

DTS part wait for
https://lore.kernel.org/imx/Z04W5chGq5TitB9f@lizhi-Precision-Tower-5810/

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/2] regulator: dt-bindings: pca9450: Add nxp,pf9453 compatible string

      commit: 276c2fe14632a393c1b4d418e4fc2d9d656e1c30
[2/2] regulator: pf9453: add PMIC PF9453 support
      commit: 0959b6706325bf147f253841eea312e27a3bf013

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark