Skip to contentSkip to conversation

regulator: rt5133: Add RT5133 PMIC regulator Support

PATCH In review [email protected] 2 participants 2 messages Aug 12, 2025 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH v7 2/2 regulator: rt5133: Add RT5133 PMIC regulator Support

From: Jeff Chang <[email protected]>

RT5133 is a highly-integrated chip. It includes 8 LDOs and 3 GPOs that can be used to drive output high/low purpose. The dependency of the GPO block is internally LDO1 Voltage.

---

Changes in v7:
1. Fix function pointer type for gpio set
2. Patch 1 (YAML bindings) remains unchanged from v6 and has already been reviewed.

Changes in v6:
1. Rename rt5133,base -> base

Changes in v5:
1. Move oc-shutdown-all, pgb-shutdown-all properties to chip layer. Remove of_parse_cb of regulators_desc.
2. Using vin as LDO7's and LDO8's supply_name.

Changes in v4:
1. Re-order patches. DT patch before driver patch.
2. Return IRQ_NONE if rt5133_intr_handler handle nothing.
3. Using cache for regmap_config.
4. Add prefix for vendor property richtek,oc-shutdown-all and richtek,pgb-shutdown-all.
5. Add _node_name to RT5133_REGULATOR_DESC for lowercase regulator node.

Changes in v3:
1. Fix typo intefrated -> integrated
2. Remove yaml file
3. Remove soft-start-time-sel property
4. Remove GPL-4.0, using GPL-2.0
5. Using C++ comment
6. Using standard dev_dbg
7. Remove driver version
8. Using dev_dbg for base event occurred. And return IRQ_HANDLED
9. Because of CRC8 for IO, we don't use cache for regmap_config
10. Remove tracing logs.
11. Set can_sleep = true for gpio operations.
12. Kconfig add depends on OF

 drivers/regulator/Kconfig            |  12 +
 drivers/regulator/Makefile           |   1 +
 drivers/regulator/rt5133-regulator.c | 642 +++++++++++++++++++++++++++
 3 files changed, 655 insertions(+)
 create mode 100644 drivers/regulator/rt5133-regulator.c
drivers/regulator/Kconfig +12 -0
index eaa6df1c9f80..280f67558cda 100644
@@ -1240,6 +1240,18 @@ config REGULATOR_RT5120
 	  600mV to 1395mV, per step 6.250mV. The others are all fixed voltage
 	  by external hardware circuit.
 
+config REGULATOR_RT5133
+	tristate "Richtek RT5133 PMIC Regulators"
+	depends on I2C && GPIOLIB && OF
+	select REGMAP
+	select CRC8
+	select OF_GPIO
+	help
+	  This driver adds support for RT5133 PMIC regulators.
+	  RT5133 is an integrated chip. It includes 8 LDOs and 3 GPOs that
+	  can be used to drive output high/low purpose. The dependency of the
+	  GPO block is internally LDO1 Voltage.
+
 config REGULATOR_RT5190A
 	tristate "Richtek RT5190A PMIC"
 	depends on I2C
drivers/regulator/Makefile +1 -0
index be98b29d6675..3b6505350a3a 100644
@@ -146,6 +146,7 @@ obj-$(CONFIG_REGULATOR_RT4803)	+= rt4803.o
 obj-$(CONFIG_REGULATOR_RT4831)	+= rt4831-regulator.o
 obj-$(CONFIG_REGULATOR_RT5033)	+= rt5033-regulator.o
 obj-$(CONFIG_REGULATOR_RT5120)	+= rt5120-regulator.o
+obj-$(CONFIG_REGULATOR_RT5133)	+= rt5133-regulator.o
 obj-$(CONFIG_REGULATOR_RT5190A) += rt5190a-regulator.o
 obj-$(CONFIG_REGULATOR_RT5739)	+= rt5739.o
 obj-$(CONFIG_REGULATOR_RT5759)	+= rt5759-regulator.o
drivers/regulator/rt5133-regulator.c new file +642 -0

642 lines not on this page · raw message

--
2.43.0

maintainer
#1 lore raw
Quoted 5 lines · On Tue, Aug 12, 2025 at 11:14:56AM +0800, [email protected] wrote:

From: Jeff Chang <[email protected]>

RT5133 is a highly-integrated chip. It includes 8 LDOs and 3 GPOs that can be used to drive output high/low purpose. The dependency of the GPO block is internally LDO1 Voltage.

You're missing patch 1 here with the DT bindings.