Support for Qualcomm QPNP PMIC's
v4 cover Support for Qualcomm QPNP PMIC's
Hello all,
Changes since v3:
- rename the driver to qcom-spmi-pmic - suggested by David Collins
- spmi regmap config now initialize .fast_io to true
- added generalized comptatible string in DT binding document and driver
- I dropped the pm8921 rename patch for now, it will be subject of another patchset later on.
regards,
Stan
--------------------------------------------------------------------------------
Changes since v2:
- 1/4 - added new line, signed-off-by / acked-by and module_authors.
- 3/4 - the subject has been changed.
The previous v2 can be found at [1].
I'm still waiting Acks for:
- 4/4 from Qualcomm folks.
- 2/4 and 3/4 from DT folks.
The patchset is ready to merge version and also it can be treated as an intermediate step until we find a solution for non-translatable peripheral addresses.
[1] https://lkml.org/lkml/2014/7/17/877
--------------------------------------------------------------------------------
Hello everyone,
Here is the continuation of patch sets sent recently about Qualcomm QPNP SPMI PMICs.
The previous version of the patch set can be found at [1].
Changes since v1:
- removed completely custom *of* parser
- renamed the mfd driver from qpnp-spmi to pm8xxx-spmi
- now MFD_PM8XXX_SPMI Kconfig option depends on SPMI
Removing of the custom *of* parser leads to that that the *reg* devicetree property cannot exist and therefore cannot be parsed to get PMIC peripheral resources. I took this step aside because no one from mfd drivers does this parsing. This will lead to inconvenience in the peripheral drivers to define internally the SPMI base addresses depending on the compatible property i.e. PMIC version.
Comments are welcome!
[1] https://lkml.org/lkml/2014/7/8/428
--------------------------------------------------------------------------------
Josh Cartwright (1):
mfd: add support for Qualcomm SPMI PMICs
Stanimir Varbanov (2):
mfd: document DT bindings for Qualcomm SPMI PMICs
ARM: dts: qcom: add pm8941 and pm8841 PMICs device nodes
.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 64 +++++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 37 +++++++++++ drivers/mfd/Kconfig | 15 +++++ drivers/mfd/Makefile | 1 + drivers/mfd/qcom-spmi-pmic.c | 67 ++++++++++++++++++++ 5 files changed, 184 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt create mode 100644 drivers/mfd/qcom-spmi-pmic.c
PATCH v4 1/3 mfd: add support for Qualcomm SPMI PMICs
From: Josh Cartwright <[email protected]>
The Qualcomm SPMI PMIC chips are components used with the Snapdragon 800 series SoC family. This driver exists largely as a glue mfd component, it exists to be an owner of an SPMI regmap for children devices described in device tree.
--- drivers/mfd/Kconfig | 15 +++++++++ drivers/mfd/Makefile | 1 + drivers/mfd/qcom-spmi-pmic.c | 67 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 drivers/mfd/qcom-spmi-pmic.c
drivers/mfd/Kconfig +15 -0
@@ -524,6 +524,21 @@ config MFD_PM8921_CORE Say M here if you want to include support for PM8921 chip as a module. This will build a module called "pm8921-core". +config MFD_SPMI_PMIC + tristate "Qualcomm SPMI PMICs" + depends on ARCH_QCOM || COMPILE_TEST + depends on OF + depends on SPMI + select REGMAP_SPMI + help + This enables support for the Qualcomm SPMI PMICs. + These PMICs are currently used with the Snapdragon 800 series of + SoCs. Note, that this will only be useful paired with descriptions + of the independent functions as children nodes in the device tree. + + Say M here if you want to include support for the SPMI PMIC + series as a module. The module will be called "qcom-spmi-pmic". + config MFD_RDC321X tristate "RDC R-321x southbridge" select MFD_CORE
drivers/mfd/Makefile +1 -0
@@ -153,6 +153,7 @@ obj-$(CONFIG_MFD_SI476X_CORE) += si476x-core.o obj-$(CONFIG_MFD_CS5535) += cs5535-mfd.o obj-$(CONFIG_MFD_OMAP_USB_HOST) += omap-usb-host.o omap-usb-tll.o obj-$(CONFIG_MFD_PM8921_CORE) += pm8921-core.o ssbi.o +obj-$(CONFIG_MFD_SPMI_PMIC) += qcom-spmi-pmic.o obj-$(CONFIG_TPS65911_COMPARATOR) += tps65911-comparator.o obj-$(CONFIG_MFD_TPS65090) += tps65090.o obj-$(CONFIG_MFD_AAT2870_CORE) += aat2870-core.o
drivers/mfd/qcom-spmi-pmic.c new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Lee Jones
AppliedRe: [PATCH v4 1/3] mfd: add support for Qualcomm SPMI PMICs
Quoted 11 lines · Stanimir Varbanov
From: Josh Cartwright <[email protected]>
The Qualcomm SPMI PMIC chips are components used with the Snapdragon 800 series SoC family. This driver exists largely as a glue mfd component, it exists to be an owner of an SPMI regmap for children devices described in device tree.
Signed-off-by Josh Cartwright <[email protected]>Signed-off-by Stanimir Varbanov <[email protected]>Acked-by Lee Jones <[email protected]>
Quoted 6 lines
--- drivers/mfd/Kconfig | 15 +++++++++ drivers/mfd/Makefile | 1 + drivers/mfd/qcom-spmi-pmic.c | 67 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 drivers/mfd/qcom-spmi-pmic.c
Applied, thanks.
Quoted 111 lines
drivers/mfd/Kconfig +15
-0@@ -524,6 +524,21 @@ config MFD_PM8921_CORE Say M here if you want to include support for PM8921 chip as a module. This will build a module called "pm8921-core". +config MFD_SPMI_PMIC + tristate "Qualcomm SPMI PMICs" + depends on ARCH_QCOM || COMPILE_TEST + depends on OF + depends on SPMI + select REGMAP_SPMI + help + This enables support for the Qualcomm SPMI PMICs. + These PMICs are currently used with the Snapdragon 800 series of + SoCs. Note, that this will only be useful paired with descriptions + of the independent functions as children nodes in the device tree. + + Say M here if you want to include support for the SPMI PMIC + series as a module. The module will be called "qcom-spmi-pmic". + config MFD_RDC321X tristate "RDC R-321x southbridge" select MFD_COREdrivers/mfd/Makefile +1
-0@@ -153,6 +153,7 @@ obj-$(CONFIG_MFD_SI476X_CORE) += si476x-core.o obj-$(CONFIG_MFD_CS5535) += cs5535-mfd.o obj-$(CONFIG_MFD_OMAP_USB_HOST) += omap-usb-host.o omap-usb-tll.o obj-$(CONFIG_MFD_PM8921_CORE) += pm8921-core.o ssbi.o +obj-$(CONFIG_MFD_SPMI_PMIC) += qcom-spmi-pmic.o obj-$(CONFIG_TPS65911_COMPARATOR) += tps65911-comparator.o obj-$(CONFIG_MFD_TPS65090) += tps65090.o obj-$(CONFIG_MFD_AAT2870_CORE) += aat2870-core.odrivers/mfd/qcom-spmi-pmic.c new file +67
-0@@ -0,0 +1,67 @@ +/* +* Copyright (c) 2014, The Linux Foundation. All rights reserved. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 and +* only version 2 as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +*/ + +#include <linux/kernel.h> +#include <linux/module.h> +#include <linux/spmi.h> +#include <linux/regmap.h> +#include <linux/of_platform.h> + +static const struct regmap_config spmi_regmap_config = { + .reg_bits =16 , + .val_bits =8 , + .max_register =0xffff , + .fast_io = true, +}; + +static int pmic_spmi_probe (struct spmi_device *sdev) +{ +struct device_node *root = sdev->dev.of_node; +struct regmap *regmap; + + regmap =devm_regmap_init_spmi_ext (sdev, &spmi_regmap_config); +if (IS_ERR (regmap)) +return PTR_ERR (regmap); + +return of_platform_populate (root,NULL ,NULL , &sdev->dev); +} + +static void pmic_spmi_remove (struct spmi_device *sdev) +{ +of_platform_depopulate (&sdev->dev); +} + +static const struct of_device_id pmic_spmi_id_table[] = { + { .compatible ="qcom,spmi-pmic" }, + { .compatible ="qcom,pm8941" }, + { .compatible ="qcom,pm8841" }, + { .compatible ="qcom,pma8084" }, + { } +}; +MODULE_DEVICE_TABLE (of, pmic_spmi_id_table); + +static struct spmi_driver pmic_spmi_driver = { + .probe = pmic_spmi_probe, + .remove = pmic_spmi_remove, + .driver = { + .name ="pmic-spmi" , + .of_match_table = pmic_spmi_id_table, + }, +}; +module_spmi_driver (pmic_spmi_driver); + +MODULE_DESCRIPTION ("Qualcomm SPMI PMIC driver" ); +MODULE_ALIAS ("spmi:spmi-pmic" ); +MODULE_LICENSE ("GPL v2" ); +MODULE_AUTHOR ("Josh Cartwright <[email protected]>" ); +MODULE_AUTHOR ("Stanimir Varbanov <[email protected]>" );
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH v4 2/3 mfd: document DT bindings for Qualcomm SPMI PMICs
In reply to Stanimir VarbanovDocument DT bindings used to describe the Qualcomm SPMI PMICs.
--- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 64 ++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt new file +64 -0
@@ -0,0 +1,64 @@ + Qualcomm SPMI PMICs multi-function device bindings + +The Qualcomm SPMI series presently includes PM8941, PM8841 and PMA8084 +PMICs. These PMICs use a QPNP scheme through SPMI interface. +QPNP is effectively a partitioning scheme for dividing the SPMI extended +register space up into logical pieces, and set of fixed register +locations/definitions within these regions, with some of these regions +specifically used for interrupt handling. + +The QPNP PMICs are used with the Qualcomm Snapdragon series SoCs, and are +interfaced to the chip via the SPMI (System Power Management Interface) bus. +Support for multiple independent functions are implemented by splitting the +16-bit SPMI slave address space into 256 smaller fixed-size regions, 256 bytes +each. A function can consume one or more of these fixed-size register regions. + +Required properties: +- compatible: Should contain one of: + "qcom,pm8941" + "qcom,pm8841" + "qcom,pma8084" + or generalized "qcom,spmi-pmic". +- reg: Specifies the SPMI USID slave address for this device. + For more information see: + Documentation/devicetree/bindings/spmi/spmi.txt + +Required properties for peripheral child nodes: +- compatible: Should contain "qcom,xxx", where "xxx" is a peripheral name. + +Optional properties for peripheral child nodes: +- interrupts: Interrupts are specified as a 4-tuple. For more information + see: + Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt +- interrupt-names: Corresponding interrupt name to the interrupts property + +Each child node of SPMI slave id represents a function of the PMIC. In the +example below the rtc device node represents a peripheral of pm8941 +SID = 0. The regulator device node represents a peripheral of pm8941 SID = 1. + +Example: + + spmi { + compatible = "qcom,spmi-pmic-arb"; + + pm8941 at 0 { + compatible = "qcom,pm8941", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + + rtc { + compatible = "qcom,rtc"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "alarm"; + }; + }; + + pm8941 at 1 { + compatible = "qcom,pm8941", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + + regulator { + compatible = "qcom,regulator"; + regulator-name = "8941_boost"; + }; + }; + };
Signature · 1 line
1.7.0.4
Re: [PATCH v4 2/3] mfd: document DT bindings for Qualcomm SPMI PMICs
Kumar, Stephen, David can I have your Acked/Reviewed-by tag for 2/3 and if possible for 3/3. The last patch can wait because currently we don't have child peripherals. Thanks.
regards,
Stan
Quoted 79 lines · Stanimir Varbanov
Document DT bindings used to describe the Qualcomm SPMI PMICs.
Signed-off-by Stanimir Varbanov <[email protected]>--- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 64 ++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txtDocumentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt new file +64
-0@@ -0,0 +1,64 @@ + Qualcomm SPMI PMICs multi-function device bindings + +The Qualcomm SPMI series presently includes PM8941, PM8841 and PMA8084 +PMICs. These PMICs use a QPNP scheme through SPMI interface. +QPNP is effectively a partitioning scheme for dividing the SPMI extended +register space up into logical pieces, and set of fixed register +locations/definitions within these regions, with some of these regions +specifically used for interrupt handling. + +The QPNP PMICs are used with the Qualcomm Snapdragon series SoCs, and are +interfaced to the chip via the SPMI (System Power Management Interface) bus. +Support for multiple independent functions are implemented by splitting the +16-bit SPMI slave address space into 256 smaller fixed-size regions, 256 bytes +each. A function can consume one or more of these fixed-size register regions. + +Required properties: +- compatible: Should contain one of: + "qcom,pm8941" + "qcom,pm8841" + "qcom,pma8084" + or generalized "qcom,spmi-pmic". +- reg: Specifies the SPMI USID slave address for this device. + For more information see: + Documentation/devicetree/bindings/spmi/spmi.txt + +Required properties for peripheral child nodes: +- compatible: Should contain "qcom,xxx", where "xxx" is a peripheral name. + +Optional properties for peripheral child nodes: +- interrupts: Interrupts are specified as a 4-tuple. For more information + see: + Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt +- interrupt-names: Corresponding interrupt name to the interrupts property + +Each child node of SPMI slave id represents a function of the PMIC. In the +example below the rtc device node represents a peripheral of pm8941 +SID = 0. The regulator device node represents a peripheral of pm8941 SID = 1. + +Example: + + spmi { + compatible = "qcom,spmi-pmic-arb"; + + pm8941 at 0 { + compatible = "qcom,pm8941", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + + rtc { + compatible = "qcom,rtc"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "alarm"; + }; + }; + + pm8941 at 1 { + compatible = "qcom,pm8941", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + + regulator { + compatible = "qcom,regulator"; + regulator-name = "8941_boost"; + }; + }; + };
Signature · 2 lines
regards, Stan
Lee Jones
AppliedRe: [PATCH v4 2/3] mfd: document DT bindings for Qualcomm SPMI PMICs
Quoted 3 lines · Stanimir Varbanov
Kumar, Stephen, David can I have your Acked/Reviewed-by tag for 2/3 and if possible for 3/3. The last patch can wait because currently we don't have child peripherals. Thanks.
No one seems to have an opinion, negative or otherwise.
Applied, thanks.
Quoted 82 lines · Stanimir Varbanov
Quoted 79 lines
Document DT bindings used to describe the Qualcomm SPMI PMICs.
Signed-off-by Stanimir Varbanov <[email protected]>--- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 64 ++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txtDocumentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt new file +64
-0@@ -0,0 +1,64 @@ + Qualcomm SPMI PMICs multi-function device bindings + +The Qualcomm SPMI series presently includes PM8941, PM8841 and PMA8084 +PMICs. These PMICs use a QPNP scheme through SPMI interface. +QPNP is effectively a partitioning scheme for dividing the SPMI extended +register space up into logical pieces, and set of fixed register +locations/definitions within these regions, with some of these regions +specifically used for interrupt handling. + +The QPNP PMICs are used with the Qualcomm Snapdragon series SoCs, and are +interfaced to the chip via the SPMI (System Power Management Interface) bus. +Support for multiple independent functions are implemented by splitting the +16-bit SPMI slave address space into 256 smaller fixed-size regions, 256 bytes +each. A function can consume one or more of these fixed-size register regions. + +Required properties: +- compatible: Should contain one of: + "qcom,pm8941" + "qcom,pm8841" + "qcom,pma8084" + or generalized "qcom,spmi-pmic". +- reg: Specifies the SPMI USID slave address for this device. + For more information see: + Documentation/devicetree/bindings/spmi/spmi.txt + +Required properties for peripheral child nodes: +- compatible: Should contain "qcom,xxx", where "xxx" is a peripheral name. + +Optional properties for peripheral child nodes: +- interrupts: Interrupts are specified as a 4-tuple. For more information + see: + Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt +- interrupt-names: Corresponding interrupt name to the interrupts property + +Each child node of SPMI slave id represents a function of the PMIC. In the +example below the rtc device node represents a peripheral of pm8941 +SID = 0. The regulator device node represents a peripheral of pm8941 SID = 1. + +Example: + + spmi { + compatible = "qcom,spmi-pmic-arb"; + + pm8941 at 0 { + compatible = "qcom,pm8941", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + + rtc { + compatible = "qcom,rtc"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "alarm"; + }; + }; + + pm8941 at 1 { + compatible = "qcom,pm8941", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + + regulator { + compatible = "qcom,regulator"; + regulator-name = "8941_boost"; + }; + }; + };
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH v4 3/3 ARM: dts: qcom: add pm8941 and pm8841 PMICs device nodes
In reply to Stanimir VarbanovThe pm8941 and pm8841 spmi devicetree nodes are childrens of spmi pmic arbiter. The msm8974 SoC uses two PMIC chips pm8941 and pm8841. Every PMIC chip has two spmi bus slave id's.
--- arch/arm/boot/dts/qcom-msm8974.dtsi | 37 +++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-)
arch/arm/boot/dts/qcom-msm8974.dtsi +37 -0
@@ -3,6 +3,7 @@ #include "skeleton.dtsi" #include <dt-bindings/clock/qcom,gcc-msm8974.h> +#include <dt-bindings/spmi/spmi.h> / { model = "Qualcomm MSM8974";
@@ -236,5 +237,41 @@ #interrupt-cells = <2>; interrupts = <0 208 0>; }; + + spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>; + qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + + pm8941 at 0 { + compatible = "qcom,pm8941"; + reg = <0x0 SPMI_USID>; + }; + + pm8941 at 1 { + compatible = "qcom,pm8941"; + reg = <0x1 SPMI_USID>; + }; + + pm8841 at 4 { + compatible = "qcom,pm8841"; + reg = <0x4 SPMI_USID>; + }; + + pm8841 at 5 { + compatible = "qcom,pm8841"; + reg = <0x5 SPMI_USID>; + }; + }; }; };
Signature · 1 line
1.7.0.4
Hi Stanimir.
Quoted 14 lines · Stanimir Varbanov
Hello all,
Changes since v3:
- rename the driver to qcom-spmi-pmic - suggested by David Collins
- spmi regmap config now initialize .fast_io to true
- added generalized comptatible string in DT binding document and driver
- I dropped the pm8921 rename patch for now, it will be subject of another patchset later on.regards,
Stan--------------------------------------------------------------------------------
Quoted 8 lines
Changes since v2:
- 1/4 - added new line, signed-off-by / acked-by andmodule_authors.
- 3/4 - the subject has been changed.The previous v2 can be found at [1].
I'm still waiting Acks for:
- 4/4 from Qualcomm folks.
If I am not missing something obvious, this patch needs to be resent as it does not apply on top of patches in this series. I tried applying and it fails in Kconfig.
Quoted 57 lines
- 2/4 and 3/4 from DT folks.
The patchset is ready to merge version and also it can be treated as an intermediate step until we find a solution for non-translatable peripheral addresses.
[1] https://lkml.org/lkml/2014/7/17/877
--------------------------------------------------------------------------------
Hello everyone,
Here is the continuation of patch sets sent recently about Qualcomm QPNP SPMI PMICs.
The previous version of the patch set can be found at [1].
Changes since v1:
- removed completely custom *of* parser
- renamed the mfd driver from qpnp-spmi to pm8xxx-spmi
- nowMFD_PM8XXX_SPMIKconfigoption depends on SPMIRemoving of the custom *of* parser leads to that that the *reg* devicetree property cannot exist and therefore cannot be parsed to get PMIC peripheral resources. I took this step aside because no one from mfd drivers does this parsing. This will lead to inconvenience in the peripheral drivers to define internally the SPMI base addresses depending on the compatible property i.e. PMIC version.
Comments are welcome!
[1] https://lkml.org/lkml/2014/7/8/428
--------------------------------------------------------------------------------
Josh Cartwright (1):
mfd: add support for Qualcomm SPMI PMICsStanimir Varbanov (2):
mfd: document DT bindings for Qualcomm SPMI PMICs
ARM: dts: qcom: add pm8941 and pm8841 PMICs device nodes.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 64 +++++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 37 +++++++++++ drivers/mfd/Kconfig | 15 +++++ drivers/mfd/Makefile | 1 + drivers/mfd/qcom-spmi-pmic.c | 67 ++++++++++++++++++++ 5 files changed, 184 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt create mode 100644 drivers/mfd/qcom-spmi-pmic.c--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Hi Pramod,
Quoted 20 lines · Pramod Gurav
Hi Stanimir.
Quoted 18 lines · Stanimir Varbanov
Hello all,
Changes since v3:
- rename the driver to qcom-spmi-pmic - suggested by David Collins
- spmi regmap config now initialize .fast_io to true
- added generalized comptatible string in DT binding document and driver
- I dropped the pm8921 rename patch for now, it will be subject of another patchset later on.regards,
Stan--------------------------------------------------------------------------------
Changes since v2:
- 1/4 - added new line, signed-off-by / acked-by andmodule_authors.
- 3/4 - the subject has been changed.
Quoted 8 lines
Quoted 4 lines
The previous v2 can be found at [1].
I'm still waiting Acks for:
- 4/4 from Qualcomm folks.If I am not missing something obvious, this patch needs to be resent as it does not apply on top of patches in this series. I tried applying and it fails in
Kconfig.
I dropped 4/4 from v4. See above what has been changed since v3.
Signature · 2 lines
regards, Stan
Hi Lee,
There are no comments on this set for more then month, could you queue up 1/3 and 2/3 for 3.18 merge window?
Quoted 78 lines · Stanimir Varbanov
Hello all,
Changes since v3:
- rename the driver to qcom-spmi-pmic - suggested by David Collins
- spmi regmap config now initialize .fast_io to true
- added generalized comptatible string in DT binding document and driver
- I dropped the pm8921 rename patch for now, it will be subject of another patchset later on.regards,
Stan--------------------------------------------------------------------------------
Changes since v2:
- 1/4 - added new line, signed-off-by / acked-by andmodule_authors.
- 3/4 - the subject has been changed.The previous v2 can be found at [1].
I'm still waiting Acks for:
- 4/4 from Qualcomm folks.
- 2/4 and 3/4 from DT folks.The patchset is ready to merge version and also it can be treated as an intermediate step until we find a solution for non-translatable peripheral addresses.
[1] https://lkml.org/lkml/2014/7/17/877
--------------------------------------------------------------------------------
Hello everyone,
Here is the continuation of patch sets sent recently about Qualcomm QPNP SPMI PMICs.
The previous version of the patch set can be found at [1].
Changes since v1:
- removed completely custom *of* parser
- renamed the mfd driver from qpnp-spmi to pm8xxx-spmi
- nowMFD_PM8XXX_SPMIKconfigoption depends on SPMIRemoving of the custom *of* parser leads to that that the *reg* devicetree property cannot exist and therefore cannot be parsed to get PMIC peripheral resources. I took this step aside because no one from mfd drivers does this parsing. This will lead to inconvenience in the peripheral drivers to define internally the SPMI base addresses depending on the compatible property i.e. PMIC version.
Comments are welcome!
[1] https://lkml.org/lkml/2014/7/8/428
--------------------------------------------------------------------------------
Josh Cartwright (1):
mfd: add support for Qualcomm SPMI PMICsStanimir Varbanov (2):
mfd: document DT bindings for Qualcomm SPMI PMICs
ARM: dts: qcom: add pm8941 and pm8841 PMICs device nodes.../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 64 +++++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 37 +++++++++++ drivers/mfd/Kconfig | 15 +++++ drivers/mfd/Makefile | 1 + drivers/mfd/qcom-spmi-pmic.c | 67 ++++++++++++++++++++ 5 files changed, 184 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt create mode 100644 drivers/mfd/qcom-spmi-pmic.c--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
regards, Stan