mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/2] regulator: act8945a: add regulator driver for the sub-device of ACT8945A MFD
@ 2016-02-05  4:33 Wenyou Yang
  2016-02-05  4:33 ` [PATCH v5 1/2] regulator: act8945a: add regulator driver for ACT8945A Wenyou Yang
  2016-02-05  4:33 ` [PATCH v5 2/2] regulator: add documentation for ACT8945A's regulator DT bindings Wenyou Yang
  0 siblings, 2 replies; 6+ messages in thread
From: Wenyou Yang @ 2016-02-05  4:33 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Pawel Moll, Ian Campbell,
	Kumar Gala
  Cc: Krzysztof Kozlowski, Javier Martinez Canillas, Lee Jones,
	Peter Korsgaard, Nicolas Ferre, linux-arm-kernel, linux-kernel,
	devicetree, Wenyou Yang

The ACT8945A is a Multi Function Device with the following subdevices:
 - Regulator
 - Charger

This patch set is to add regulator driver for ACT8945A.
It is based on the patch set:
	http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/405258.html

Changes in v5:
 - remove the OF table.
 - due to the mfd cell .of_compatible removal, use the platform
   device's parent of_node to read the property and assign it
   to the config.dev->of_node.
 - move the config assignment out of the for loop.
 - due the mfd cell .of_compatible removal, update the compatibe
   description and example

Changes in v4:
 - change the name "act8945a-pmic" to "act8945a-regulator"
   to align mfd subdevice's name.

Changes in v3:
 - use the core regulators_node and of_match implementation,
   remove the redundant code.
 - use the core dev_get_regmap(dev->parent) code, remove
   the redundant code.
 - change the regulator name to easily implement macro.
 - use a space after #define, not tabs.
 - add OF match table.

Changes in v2:
 - add more help information in Kconfig.
 - update the file header with short version license and author line.
 - remove unused structure, struct act8945a_pmic.
 - substitute of_property_read_bool() for of_get_property().
 - due to removing the member of stuct act8945a_dev, dev.
 - remove the unnecessary print out.
 - use module_platform_driver(), instead of subsys_initcall().
 - substitute MODULE_LICENSE("GPL") for MODULE_LICENSE("GPL v2").
 - add Acked-by Rob Herring.

Wenyou Yang (2):
  regulator: act8945a: add regulator driver for ACT8945A
  regulator: add documentation for ACT8945A's regulator DT bindings

 .../bindings/regulator/act8945a-regulator.txt      |   80 ++++++++++
 drivers/regulator/Kconfig                          |    9 ++
 drivers/regulator/Makefile                         |    1 +
 drivers/regulator/act8945a-regulator.c             |  165 ++++++++++++++++++++
 4 files changed, 255 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/act8945a-regulator.txt
 create mode 100644 drivers/regulator/act8945a-regulator.c

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v3 2/2] regulator: add documentation for ACT8945A's regulator DT bindings
@ 2016-01-20  6:55 Wenyou Yang
  2016-01-27 18:38 ` Applied "regulator: add documentation for ACT8945A's regulator DT bindings" to the regulator tree Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Wenyou Yang @ 2016-01-20  6:55 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala
  Cc: Krzysztof Kozlowski, Javier Martinez Canillas, Lee Jones,
	Peter Korsgaard, Nicolas Ferre, linux-arm-kernel, linux-kernel,
	devicetree, Wenyou Yang

This patch adds documentation for the DT bindings of the regulator
subdevice of ACT8945A MFD.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Acked-by: Rob Herring <robh@kernel.org>
---

Changes in v3:
 - change the regulator name.

Changes in v2:
 - add Acked-by Rob Herring.

 .../bindings/regulator/act8945a-regulator.txt      |   78 ++++++++++++++++++++
 1 file changed, 78 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/act8945a-regulator.txt

diff --git a/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt b/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt
new file mode 100644
index 0000000..0e08a3e
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt
@@ -0,0 +1,78 @@
+Device-Tree bindings for regulators of Active-semi ACT8945A Multi-Function Device
+
+Required properties:
+ - compatible: "active-semi,act8945a-regulator"
+
+Optional properties:
+- active-semi,vsel-high: Indicates if the VSEL pin is set to logic-high.
+  If this property is missing, assume the VSEL pin is set to logic-low.
+
+Optional input supply properties:
+  - vp1-supply: The input supply for REG_DCDC1
+  - vp2-supply: The input supply for REG_DCDC2
+  - vp3-supply: The input supply for REG_DCDC3
+  - inl45-supply: The input supply for REG_LDO1 and REG_LDO2
+  - inl67-supply: The input supply for REG_LDO3 and REG_LDO4
+
+Any standard regulator properties can be used to configure the single regulator.
+
+The valid names for regulators are:
+	REG_DCDC1, REG_DCDC2, REG_DCDC3, REG_LDO1, REG_LDO2, REG_LDO3, REG_LDO4.
+
+Example:
+
+	pmic {
+		compatible = "active-semi,act8945a-regulator";
+		active-semi,vsel-high;
+
+		regulators {
+			vdd_1v35_reg: REG_DCDC1 {
+				regulator-name = "VDD_1V35";
+				regulator-min-microvolt = <1350000>;
+				regulator-max-microvolt = <1350000>;
+				regulator-always-on;
+			};
+
+			vdd_1v2_reg: REG_DCDC2 {
+				regulator-name = "VDD_1V2";
+				regulator-min-microvolt = <1100000>;
+				regulator-max-microvolt = <1300000>;
+				regulator-always-on;
+			};
+
+			vdd_3v3_reg: REG_DCDC3 {
+				regulator-name = "VDD_3V3";
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+			};
+
+			vdd_fuse_reg: REG_LDO1 {
+				regulator-name = "VDD_FUSE";
+				regulator-min-microvolt = <2500000>;
+				regulator-max-microvolt = <2500000>;
+				regulator-always-on;
+			};
+
+			vdd_3v3_lp_reg: REG_LDO2 {
+				regulator-name = "VDD_3V3_LP";
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+			};
+
+			vdd_led_reg: REG_LDO3 {
+				regulator-name = "VDD_LED";
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+			};
+
+			vdd_sdhc_1v8_reg: REG_LDO4 {
+				regulator-name = "VDD_SDHC_1V8";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+			};
+		};
+	};
-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-05 18:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-05  4:33 [PATCH v5 0/2] regulator: act8945a: add regulator driver for the sub-device of ACT8945A MFD Wenyou Yang
2016-02-05  4:33 ` [PATCH v5 1/2] regulator: act8945a: add regulator driver for ACT8945A Wenyou Yang
2016-02-05 18:58   ` Applied "regulator: act8945a: add regulator driver for ACT8945A" to the regulator tree Mark Brown
2016-02-05  4:33 ` [PATCH v5 2/2] regulator: add documentation for ACT8945A's regulator DT bindings Wenyou Yang
2016-02-05 18:58   ` Applied "regulator: add documentation for ACT8945A's regulator DT bindings" to the regulator tree Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2016-01-20  6:55 [PATCH v3 2/2] regulator: add documentation for ACT8945A's regulator DT bindings Wenyou Yang
2016-01-27 18:38 ` Applied "regulator: add documentation for ACT8945A's regulator DT bindings" to the regulator tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®