mfd: lp87565: Add lp87565 PMIC support
Subsystems (2)
PATCH v3 1/1 mfd: lp87565: Add lp87565 PMIC support
The LP87565 chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contains the following components:
- Configurable Bucks(Single and multi-phase).
- Configurable General Purpose Output Signals (GPO).
The LP87565-Q1 variant device uses two 2-phase outputs configuration, Buck0 is master for Buck0/1 output and Buck2 is master for Buck2/3 output.
---
The other patches are already pulled by Mark. Hence posting the remaining patch.
Changes in v3:
* Fixed License to GPL v2.
* Fixed an indentation issue.
Changes in v2:
* Fixed a bunch of whitespace errors.
* Changed the License to short form.
* Added the generic compatible lp87565
* Removed i2c_device_id table.
* Introduced probe_new function in place of probe.
Documentation/devicetree/bindings/mfd/lp87565.txt | 45 ++++ drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile | 1 + drivers/mfd/lp87565.c | 92 ++++++++ include/linux/mfd/lp87565.h | 270 ++++++++++++++++++++++ 5 files changed, 422 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/lp87565.txt create mode 100644 drivers/mfd/lp87565.c create mode 100644 include/linux/mfd/lp87565.h
Documentation/devicetree/bindings/mfd/lp87565.txt new file +45 -0
@@ -0,0 +1,45 @@ +TI LP87565 PMIC MFD driver + +Required properties: + - compatible: "ti,lp87565", "ti,lp87565-q1" + - reg: I2C slave address. + - gpio-controller: Marks the device node as a GPIO Controller. + - #gpio-cells: Should be two. The first cell is the pin number and + the second cell is used to specify flags. + See ../gpio/gpio.txt for more information. + - xxx-in-supply: Phandle to parent supply node of each regulator + populated under regulators node. xxx should match + the supply_name populated in driver. + - regulators: List of child nodes that specify the regulator + initialization data. +Example: + +lp87565_pmic: lp87565@60 { + compatible = "ti,lp87565-q1"; + reg = <0x60>; + gpio-controller; + #gpio-cells = <2>; + + buck10-in-supply = <&vsys_3v3>; + buck23-in-supply = <&vsys_3v3>; + + regulators: regulators { + buck10_reg: buck10 { + /* VDD_MPU */ + regulator-name = "buck10"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + regulator-boot-on; + }; + + buck23_reg: buck23 { + /* VDD_GPU */ + regulator-name = "buck23"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-boot-on; + regulator-always-on; + }; + }; +};
drivers/mfd/Kconfig +14 -0
@@ -1325,6 +1325,20 @@ config MFD_TI_LP873X This driver can also be built as a module. If so, the module will be called lp873x. +config MFD_TI_LP87565 + tristate "TI LP87565 Power Management IC" + depends on I2C && OF + select MFD_CORE + select REGMAP_I2C + help + If you say yes here then you get support for the LP87565 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 lp87565. + config MFD_TPS65218 tristate "TI TPS65218 Power Management chips" depends on I2C
drivers/mfd/Makefile +1 -0
@@ -25,6 +25,7 @@ obj-$(CONFIG_HTC_PASIC3) += htc-pasic3.o obj-$(CONFIG_HTC_I2CPLD) += htc-i2cpld.o obj-$(CONFIG_MFD_TI_LP873X) += lp873x.o +obj-$(CONFIG_MFD_TI_LP87565) += lp87565.o obj-$(CONFIG_MFD_DAVINCI_VOICECODEC) += davinci_voicecodec.o obj-$(CONFIG_MFD_DM355EVM_MSP) += dm355evm_msp.o
drivers/mfd/lp87565.c new file +92 -0
92 lines not on this page · raw message
include/linux/mfd/lp87565.h new file +270 -0
270 lines not on this page · raw message
Signature · 6 lines
1.9.1 -- 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
Rob Herring
maintainerQuoted 49 lines · Keerthy
The LP87565 chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contains the following components:
- Configurable Bucks(Single and multi-phase).
- Configurable General Purpose Output Signals (GPO).The LP87565-Q1 variant device uses two 2-phase outputs configuration, Buck0 is master for Buck0/1 output and Buck2 is master for Buck2/3 output.
Signed-off-by Keerthy <[email protected]>---
The other patches are already pulled by Mark. Hence posting the remaining patch.
Changes in v3:
* Fixed License to GPL v2.
* Fixed an indentation issue.Changes in v2:
* Fixed a bunch of whitespace errors.
* Changed the License to short form.
* Added the generic compatible lp87565
* Removedi2c_device_idtable.
* Introducedprobe_newfunction in place of probe.Documentation/devicetree/bindings/mfd/lp87565.txt | 45 ++++ drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile | 1 + drivers/mfd/lp87565.c | 92 ++++++++ include/linux/mfd/lp87565.h | 270 ++++++++++++++++++++++ 5 files changed, 422 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/lp87565.txt create mode 100644 drivers/mfd/lp87565.c create mode 100644 include/linux/mfd/lp87565.hDocumentation/devicetree/bindings/mfd/lp87565.txt new file +4
-0@@ -0,0 +1,45 @@ +TI LP87565 PMIC MFD driver + +Required properties: + - compatible: "ti,lp87565", "ti,lp87565-q1"
Documentation/devicetree/bindings/mfd/lp87565.txt line 14
Quoted 10 lines
Documentation/devicetree/bindings/mfd/lp87565.txt new file +10
-0+ - reg: I2C slave address. + - gpio-controller: Marks the device node as a GPIO Controller. + - #gpio-cells: Should be two. The first cell is the pin number and + the second cell is used to specify flags. + See ../gpio/gpio.txt for more information. + - xxx-in-supply: Phandle to parent supply node of each regulator + populated under regulators node. xxx should match + the supply_name populated in driver. + - regulators: List of child nodes that specify the regulator + initialization data.
This is a node, not a property.
Documentation/devicetree/bindings/mfd/lp87565.txt line 17
Quoted 3 lines
Documentation/devicetree/bindings/mfd/lp87565.txt new file +3
-0+Example: + +lp87565_pmic: lp87565@60 {
pmic@60
Quoted 28 lines
Documentation/devicetree/bindings/mfd/lp87565.txt new file +28
-0+ compatible = "ti,lp87565-q1"; + reg = <0x60>; + gpio-controller; + #gpio-cells = <2>; + + buck10-in-supply = <&vsys_3v3>; + buck23-in-supply = <&vsys_3v3>; + + regulators: regulators { + buck10_reg: buck10 { + /* VDD_MPU */ + regulator-name = "buck10"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + regulator-boot-on; + }; + + buck23_reg: buck23 { + /* VDD_GPU */ + regulator-name = "buck23"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-boot-on; + regulator-always-on; + }; + }; +};
Quoted 54 lines · Rob Herring
Quoted 53 lines · Keerthy
The LP87565 chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contains the following components:
- Configurable Bucks(Single and multi-phase).
- Configurable General Purpose Output Signals (GPO).The LP87565-Q1 variant device uses two 2-phase outputs configuration, Buck0 is master for Buck0/1 output and Buck2 is master for Buck2/3 output.
Signed-off-by Keerthy <[email protected]>---
The other patches are already pulled by Mark. Hence posting the remaining patch.
Changes in v3:
* Fixed License to GPL v2.
* Fixed an indentation issue.Changes in v2:
* Fixed a bunch of whitespace errors.
* Changed the License to short form.
* Added the generic compatible lp87565
* Removedi2c_device_idtable.
* Introducedprobe_newfunction in place of probe.Documentation/devicetree/bindings/mfd/lp87565.txt | 45 ++++ drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile | 1 + drivers/mfd/lp87565.c | 92 ++++++++ include/linux/mfd/lp87565.h | 270 ++++++++++++++++++++++ 5 files changed, 422 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/lp87565.txt create mode 100644 drivers/mfd/lp87565.c create mode 100644 include/linux/mfd/lp87565.hDocumentation/devicetree/bindings/mfd/lp87565.txt new file +8
-0@@ -0,0 +1,45 @@ +TI LP87565 PMIC MFD driver + +Required properties: + - compatible: "ti,lp87565", "ti,lp87565-q1" + - reg: I2C slave address. + - gpio-controller: Marks the device node as a GPIO Controller. + - #gpio-cells: Should be two. The first cell is the pin number and + the second cell is used to specify flags.
Quoted 8 lines
Documentation/devicetree/bindings/mfd/lp87565.txt line 14
Quoted 6 lines
Documentation/devicetree/bindings/mfd/lp87565.txt new file +6
-0+ See ../gpio/gpio.txt for more information. + - xxx-in-supply: Phandle to parent supply node of each regulator + populated under regulators node. xxx should match + the supply_name populated in driver. + - regulators: List of child nodes that specify the regulator + initialization data.This is a node, not a property.
Okay
Quoted 6 lines
Documentation/devicetree/bindings/mfd/lp87565.txt line 17
Quoted 4 lines
Documentation/devicetree/bindings/mfd/lp87565.txt new file +3
-0+Example: + +lp87565_pmic: lp87565@60 {pmic@60
Okay. I will fix that.
Quoted 29 lines
Quoted 29 lines
Documentation/devicetree/bindings/mfd/lp87565.txt new file +28
-0+ compatible = "ti,lp87565-q1"; + reg = <0x60>; + gpio-controller; + #gpio-cells = <2>; + + buck10-in-supply = <&vsys_3v3>; + buck23-in-supply = <&vsys_3v3>; + + regulators: regulators { + buck10_reg: buck10 { + /* VDD_MPU */ + regulator-name = "buck10"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + regulator-boot-on; + }; + + buck23_reg: buck23 { + /* VDD_GPU */ + regulator-name = "buck23"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-boot-on; + regulator-always-on; + }; + }; +};