Skip to contentSkip to conversation

mfd: AS3722: add dt node properties for system power controller

PATCH In review Laxman Dewangan 4 participants 5 messages Dec 20, 2013 – Dec 24, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 mfd: AS3722: add dt node properties for system power controller

ams AS3722 device supports the power off by turning off its all rails.

Add dt node properties to enable this functionality on this device.

---
Changes form V1:
- Rephrase sentence and mention that propery is boolean type.
- Added Tested by.

 Documentation/devicetree/bindings/mfd/as3722.txt |   11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/devicetree/bindings/mfd/as3722.txt +11 -0
index fc2191e..8edcb9b 100644
@@ -112,6 +112,15 @@ Following are properties of regulator subnode.
 		ams,enable-tracking: Enable tracking with SD1, only supported
 			by LDO3.
 
+Power-off:
+=========
+AS3722 supports the system power off by turning off all its rail. This
+is provided through pm_power_off.
+The device node should have the following properties to enable this
+functionality
+ams,system-power-controller: Boolean, to enable the power off functionality
+        through this device.
+
 Example:
 --------
 #include <dt-bindings/mfd/as3722.h>
@@ -120,6 +129,8 @@ ams3722 {
 	compatible = "ams,as3722";
 	reg = <0x48>;
 
+	ams,system-power-controller;
+
 	interrupt-parent = <&intc>;
 	interrupt-controller;
 	#interrupt-cells = <2>;
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 2/2 power: reset: as3722: add power-off driver

ams AS3722 supports the power off functionality to turn off system.

Add power off driver for ams AS3722.

---
Changes from V1:
- Just added tested by.

 drivers/power/reset/Kconfig           |    6 +++
 drivers/power/reset/Makefile          |    1 +
 drivers/power/reset/as3722-poweroff.c |   96 +++++++++++++++++++++++++++++++++
 3 files changed, 103 insertions(+)
 create mode 100644 drivers/power/reset/as3722-poweroff.c
drivers/power/reset/Kconfig +6 -0
index 9b3ea53..6d452a7 100644
@@ -6,6 +6,12 @@ menuconfig POWER_RESET
 
 	  Say Y here to enable board reset and power off
 
+config POWER_RESET_AS3722
+	bool "ams AS3722 power-off driver"
+	depends on MFD_AS3722 && POWER_RESET
+	help
+	  This driver supports turning off board via a ams AS3722 power-off.
+
 config POWER_RESET_GPIO
 	bool "GPIO power-off driver"
 	depends on OF_GPIO && POWER_RESET
drivers/power/reset/Makefile +1 -0
index 3e6ed88..a5b4a77 100644
@@ -1,3 +1,4 @@
+obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
 obj-$(CONFIG_POWER_RESET_GPIO) += gpio-poweroff.o
 obj-$(CONFIG_POWER_RESET_MSM) += msm-poweroff.o
 obj-$(CONFIG_POWER_RESET_QNAP) += qnap-poweroff.o
drivers/power/reset/as3722-poweroff.c new file +96 -0

96 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#3 lore raw
In reply to Laxman Dewangan
Quoted 6 lines · Laxman Dewangan

ams AS3722 device supports the power off by turning off its all rails.

Add dt node properties to enable this functionality on this device.

I'm guessing I can use this as an Ack?

Quoted 37 lines

---
Changes form V1:
- Rephrase sentence and mention that propery is boolean type.
- Added Tested by.

 Documentation/devicetree/bindings/mfd/as3722.txt |   11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/devicetree/bindings/mfd/as3722.txt +11 -0
index fc2191e..8edcb9b 100644
@@ -112,6 +112,15 @@ Following are properties of regulator subnode.
 		ams,enable-tracking: Enable tracking with SD1, only supported
 			by LDO3.
 
+Power-off:
+=========
+AS3722 supports the system power off by turning off all its rail. This
+is provided through pm_power_off.
+The device node should have the following properties to enable this
+functionality
+ams,system-power-controller: Boolean, to enable the power off functionality
+        through this device.
+
 Example:
 --------
 #include <dt-bindings/mfd/as3722.h>
@@ -120,6 +129,8 @@ ams3722 {
 	compatible = "ams,as3722";
 	reg = <0x48>;
 
+	ams,system-power-controller;
+
 	interrupt-parent = <&intc>;
 	interrupt-controller;
 	#interrupt-cells = <2>;
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#4 lore raw
Quoted 10 lines · Lee Jones
Quoted 6 lines · Laxman Dewangan

ams AS3722 device supports the power off by turning off its all rails.

Add dt node properties to enable this functionality on this device.

I'm guessing I can use this as an Ack?

You mean for the DT binding? I'm not actually in MAINTAINERS for DT binding reviews any more, but this binding change is identical to that which appears in a bunch of other drivers, so I'd tend not to think it needs an ack.