mfd: lp873x: Add lp873x PMIC support
v7 cover mfd: lp873x: Add lp873x PMIC support
The LP873X chip is a power management IC for Portable Navigation Systems
and Tablet Computing devices. It contains the following components:
- Regulators.
- Configurable General Purpose Output Signals(GPO).
PMIC interacts with the main processor through i2c. PMIC has couple of LDOs(Linear Regulators), couple of BUCKs (Step-Down DC-DC Converter Cores) and GPOs(General Purpose Output Signals).
The regulator patch is already queued:
http://marc.info/?l=linux-kernel&m=146298767110771&w=2
DT patch also queued:
Hence posting the remaining patches of the series with the comments fixed on mfd driver.
Chages in v7:
Reverted the dependency on http://www.gossamer-threads.com/lists/linux/kernel/2457552.
Changes in v6:
Series depends on: http://www.gossamer-threads.com/lists/linux/kernel/2457552probe_new used.
Chnages in v4:
Added GPO driver support.
Keerthy (3):
mfd: lp873x: Add lp873x PMIC support
gpio: lp873x: Add support for General Purpose Outputs
regulator: lp873x: Change the MFD config option as per latest naming
drivers/gpio/Kconfig | 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-lp873x.c | 185 +++++++++++++++++++++++++++++++ drivers/mfd/Kconfig | 14 +++ drivers/mfd/Makefile | 2 + drivers/mfd/lp873x.c | 96 +++++++++++++++++ drivers/regulator/Kconfig | 2 +- include/linux/mfd/lp873x.h | 264 +++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 573 insertions(+), 1 deletion(-) create mode 100644 drivers/gpio/gpio-lp873x.c create mode 100644 drivers/mfd/lp873x.c create mode 100644 include/linux/mfd/lp873x.h
Signature · 1 line
1.9.1
PATCH v7 1/3 mfd: lp873x: Add lp873x PMIC support
The LP873X chip is a power management IC for Portable Navigation Systems
and Tablet Computing devices. It contains the following components:
- Regulators.
- Configurable General Purpose Output Signals(GPO).
PMIC interacts with the main processor through i2c. PMIC has couple of LDOs(Linear Regulators), couple of BUCKs (Step-Down DC-DC Converter Cores) and GPOs(General Purpose Output Signals).
---
Changes in v7:
* Reverted the rebase on http://www.gossamer-threads.com/lists/linux/kernel/2457552.
Changes in v6:
* Rebased on top of http://www.gossamer-threads.com/lists/linux/kernel/2457552.
* Hence added probe_new instead of probe and removed unused i2c_device_id.
Changes in v4:
* Added Author.
* Added the mfd_cell for gpio.
Changes in v3:
* Reordered the probe code.
* Fixed Typo in Kconfig description.
* Removed unused member from struct lp873x.
drivers/mfd/Kconfig | 14 +++ drivers/mfd/Makefile | 2 + drivers/mfd/lp873x.c | 97 +++++++++++++++++ include/linux/mfd/lp873x.h | 264 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 377 insertions(+) create mode 100644 drivers/mfd/lp873x.c create mode 100644 include/linux/mfd/lp873x.h
drivers/mfd/Kconfig +14 -0
@@ -1224,6 +1224,20 @@ config MFD_TPS65217 This driver can also be built as a module. If so, the module will be called tps65217. +config MFD_TI_LP873X + tristate "TI LP873X Power Management IC" + depends on I2C + select MFD_CORE + select REGMAP_I2C + help + If you say yes here then you get support for the LP873X series of + Power Management Integrated Circuits(PMIC). + These include voltage regulators, Thermal protection, Configurable + General Purpose Outputs(GPO) that are used in portable devices. + + This driver can also be built as a module. If so, the module + will be called lp873x. + config MFD_TPS65218 tristate "TI TPS65218 Power Management chips" depends on I2C
drivers/mfd/Makefile +2 -0
@@ -22,6 +22,8 @@ obj-$(CONFIG_HTC_EGPIO) += htc-egpio.o obj-$(CONFIG_HTC_PASIC3) += htc-pasic3.o obj-$(CONFIG_HTC_I2CPLD) += htc-i2cpld.o +obj-$(CONFIG_MFD_TI_LP873X) += lp873x.o + obj-$(CONFIG_MFD_DAVINCI_VOICECODEC) += davinci_voicecodec.o obj-$(CONFIG_MFD_DM355EVM_MSP) += dm355evm_msp.o obj-$(CONFIG_MFD_TI_AM335X_TSCADC) += ti_am335x_tscadc.o
drivers/mfd/lp873x.c new file +97 -0
97 lines not on this page · raw message
include/linux/mfd/lp873x.h new file +264 -0
264 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 2/3 gpio: lp873x: Add support for General Purpose Outputs
In reply to KeerthyAdd driver for lp873x PMIC family GPOs. Two GPOs are supported and can be configured in Open-drain output or Push-pull output.
--- drivers/gpio/Kconfig | 10 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-lp873x.c | 185 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 196 insertions(+) create mode 100644 drivers/gpio/gpio-lp873x.c
drivers/gpio/Kconfig +10 -0
@@ -853,6 +853,16 @@ config GPIO_LP3943 LP3943 can be used as a GPIO expander which provides up to 16 GPIOs. Open drain outputs are required for this usage. +config GPIO_LP873X + tristate "TI LP873X GPO" + depends on MFD_TI_LP873X + help + This driver supports the GPO on TI Lp873x PMICs. 2 GPOs are present + on LP873X PMICs. + + This driver can also be built as a module. If so, the module will be + called gpio-lp873x. + config GPIO_MAX77620 tristate "GPIO support for PMIC MAX77620 and MAX20024" depends on MFD_MAX77620
drivers/gpio/Makefile +1 -0
@@ -56,6 +56,7 @@ obj-$(CONFIG_GPIO_LOONGSON) += gpio-loongson.o obj-$(CONFIG_GPIO_LP3943) += gpio-lp3943.o obj-$(CONFIG_GPIO_LPC18XX) += gpio-lpc18xx.o obj-$(CONFIG_ARCH_LPC32XX) += gpio-lpc32xx.o +obj-$(CONFIG_GPIO_LP873X) += gpio-lp873x.o obj-$(CONFIG_GPIO_LYNXPOINT) += gpio-lynxpoint.o obj-$(CONFIG_GPIO_MAX730X) += gpio-max730x.o obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o
drivers/gpio/gpio-lp873x.c new file +185 -0
185 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v7 3/3 regulator: lp873x: Change the MFD config option as per latest naming
In reply to KeerthyChange the MFD config option as per latest naming
--- drivers/regulator/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/Kconfig +1 -1
@@ -323,7 +323,7 @@ config REGULATOR_LP872X config REGULATOR_LP873X tristate "TI LP873X Power regulators" - depends on MFD_LP873X && OF + depends on MFD_TI_LP873X && OF help This driver supports LP873X voltage regulator chips. LP873X provides two step-down converters and two general-purpose LDO
Signature · 1 line
1.9.1
Re: [PATCH v7 3/3] regulator: lp873x: Change the MFD config option as per latest naming
Quoted 1 line · Keerthy
Change the MFD config option as per latest naming
Hi Lee Jones,
Quoted 6 lines · Keerthy
The LP873X chip is a power management IC for Portable Navigation Systems
and Tablet Computing devices. It contains the following components:- Regulators.
- Configurable General Purpose Output Signals(GPO).
Quoted 7 lines
PMIC interacts with the main processor through i2c. PMIC has couple of LDOs(Linear Regulators), couple of BUCKs (Step-Down DC-DC Converter Cores) and GPOs(General Purpose Output Signals).
The regulator patch is already queued:
http://marc.info/?l=linux-kernel&m=146298767110771&w=2
Seems like patch 1 of the series titled "mfd: lp873x: Add lp873x PMIC support" never made it to the list for some reason i got a failure notice only on that patch and not the entire set x :-(.
I will resend v7 series with Linus's comments addressed on the GPIO driver and add Mark's ack on the regulator patch.
Thanks,
Keerthy
Quoted 32 lines
DT patch also queued:
Hence posting the remaining patches of the series with the comments fixed on mfd driver.
Chages in v7:
Reverted the dependency on http://www.gossamer-threads.com/lists/linux/kernel/2457552.
Changes in v6:
Series depends on: http://www.gossamer-threads.com/lists/linux/kernel/2457552
probe_newused.Chnages in v4:
Added GPO driver support.
Keerthy (3):
mfd: lp873x: Add lp873x PMIC support
gpio: lp873x: Add support for General Purpose Outputs
regulator: lp873x: Change the MFD config option as per latest namingdrivers/gpio/Kconfig | 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-lp873x.c | 185 +++++++++++++++++++++++++++++++ drivers/mfd/Kconfig | 14 +++ drivers/mfd/Makefile | 2 + drivers/mfd/lp873x.c | 96 +++++++++++++++++ drivers/regulator/Kconfig | 2 +- include/linux/mfd/lp873x.h | 264 +++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 573 insertions(+), 1 deletion(-)
Quoted 4 lines
create mode 100644
drivers/gpio/gpio-lp873x.c
create mode 100644drivers/mfd/lp873x.c
create mode 100644include/linux/mfd/lp873x.h
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Lee Jones,
Quoted 10 lines · Keerthy
The LP873X chip is a power management IC for Portable Navigation Systems
and Tablet Computing devices. It contains the following components:- Regulators.
- Configurable General Purpose Output Signals(GPO).PMIC interacts with the main processor through i2c. PMIC has couple of LDOs(Linear Regulators), couple of BUCKs (Step-Down DC-DC Converter Cores) and GPOs(General Purpose Output Signals).
Kindly pull this set if there are no further comments.
Quoted 26 lines
The regulator patch is already queued:
http://marc.info/?l=linux-kernel&m=146298767110771&w=2DT patch also queued:
Hence posting the remaining patches of the series with the comments fixed on mfd driver.
Chages in v7:
Reverted the dependency on http://www.gossamer-threads.com/lists/linux/kernel/2457552.
Changes in v6:
Series depends on: http://www.gossamer-threads.com/lists/linux/kernel/2457552
probe_newused.Chnages in v4:
Added GPO driver support.
Keerthy (3):
mfd: lp873x: Add lp873x PMIC support
gpio: lp873x: Add support for General Purpose Outputs
regulator: lp873x: Change the MFD config option as per latest naming
Quoted 13 lines
drivers/gpio/Kconfig | 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-lp873x.c | 185 +++++++++++++++++++++++++++++++ drivers/mfd/Kconfig | 14 +++ drivers/mfd/Makefile | 2 + drivers/mfd/lp873x.c | 96 +++++++++++++++++ drivers/regulator/Kconfig | 2 +- include/linux/mfd/lp873x.h | 264 +++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 573 insertions(+), 1 deletion(-) create mode 100644 drivers/gpio/gpio-lp873x.c create mode 100644 drivers/mfd/lp873x.c create mode 100644 include/linux/mfd/lp873x.h
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html