regulator: add new PMIC PF9453 support
Frank Li
maintainerv4 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 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: 0768222687cbdbe7c300c4428f0c0c6b153386e3
change-id: 20241205-pf9453-90e8dbda562a
Best regards,
---
Frank Li <[email protected]>
Signature · 1 line
Frank Li <[email protected]>
Frank Li
maintainerPATCH RESEND v4 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 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
@@ -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
@@ -29,6 +32,7 @@ properties: - nxp,pca9450b - nxp,pca9450c - nxp,pca9451a + - nxp,pf9453 reg: maxItems: 1
@@ -42,7 +46,7 @@ properties: list of regulators provided by this controller patternProperties: - "^LDO[1-5]$": + "^LDO([1-5]|-SNVS)$": type: object $ref: regulator.yaml# description:
@@ -100,6 +104,24 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: nxp,pf9453 + then: + properties: + regulators: + patternProperties: + "^LDO[3-5]$": 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
Mark Brown
maintainerRe: [PATCH RESEND v4 1/2] regulator: dt-bindings: pca9450: Add nxp,pf9453 compatible string
Quoted 3 lines · Frank Li
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].
This doesn't apply against current code, please check and resend.
Frank Li
maintainerPATCH RESEND v4 2/2 regulator: pf9453: add PMIC PF9453 support
In reply to Frank LiFrom: 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 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
@@ -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
@@ -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
Mark Brown
maintainerQuoted 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: 0959b6706325bf147f253841eea312e27a3bf013All 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