mfd: AS3722: add dt node properties for system power controller
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
@@ -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
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
@@ -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
@@ -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
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.
Signed-off-by Laxman Dewangan <[email protected]>Tested-by Stephen Warren <[email protected]>
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@@ -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
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.
Signed-off-by Laxman Dewangan <[email protected]>Tested-by Stephen Warren <[email protected]>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.
Re: [PATCH V2 2/2] power: reset: as3722: add power-off driver
In reply to Laxman DewanganQuoted 10 lines · Laxman Dewangan
ams AS3722 supports the power off functionality to turn off system.
Add power off driver for ams AS3722.
Signed-off-by Laxman Dewangan <[email protected]>Tested-by Stephen Warren <[email protected]>---
Changes from V1:
- Just added tested by.
Both applied, thanks a lot!
Anton