summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBibek Basu <bbasu@nvidia.com>2014-06-13 14:49:16 +0530
committerRiham Haidar <rhaidar@nvidia.com>2014-06-16 21:48:59 -0700
commit824a87782ac13779f9e8e21e847c4b6dac653208 (patch)
tree87f6c8bb7992cfa977a927906bc3b0db760c05db
parentbf96be80df967de93273eefb04b0d6db75836472 (diff)
mfd: as3722: Documentation for oc_pg_ctrl masking
Update Documentation for device tree update for optional oc_pg_ctrl_masking feature Bug 1518725 Bug 1419425 Change-Id: I309533849d48d61aefebd8f477e79b79ed4127fb Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/423185 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit
-rw-r--r--Documentation/devicetree/bindings/mfd/as3722.txt13
-rw-r--r--include/dt-bindings/mfd/as3722.h11
2 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/as3722.txt b/Documentation/devicetree/bindings/mfd/as3722.txt
index b013fd21e798..e15f80508014 100644
--- a/Documentation/devicetree/bindings/mfd/as3722.txt
+++ b/Documentation/devicetree/bindings/mfd/as3722.txt
@@ -24,6 +24,19 @@ Optional properties:
- ams,battery-backup-charge-mode: Enable or Disable Backup Battery charger during various mode. It can take four
values from 0 to 3 for Disable, Enable in Active Mode, Enable in Active and Standby mode,
Enable in Active, Standby and poweroff Mode respectively. Default value is 0 for Disable.
+- ams,oc-pg-mask: Enable or disable various powergood or overcurrent or
+ ac_ok mask. The multiple values can be ORed when provided the
+ value of this property. include/dt-binding/mfd/as3722 defines the
+ macro for different masks.
+ AS3722_OC_PG_MASK_AC_OK: AC_OK PG_OC mask
+ AS3722_OC_PG_MASK_GPIO3
+ AS3722_OC_PG_MASK_GPIO4
+ AS3722_OC_PG_MASK_GPIO5
+ AS3722_OC_PG_MASK_PWRGOOD_SD0
+ AS3722_OC_PG_MASK_OVCURR_SD0
+ AS3722_OC_PG_MASK_VRESFALL
+ AS3722_OC_PG_MASK_POWERGOOD_SD6
+ AS3722_OC_PG_MASK_OVCURR_SD6
Optional submodule and their properties:
=======================================
diff --git a/include/dt-bindings/mfd/as3722.h b/include/dt-bindings/mfd/as3722.h
index 1846e51f58c9..81ef48bcadd8 100644
--- a/include/dt-bindings/mfd/as3722.h
+++ b/include/dt-bindings/mfd/as3722.h
@@ -19,4 +19,15 @@
#define AS3722_BBCMODE_ACT_STBY 2
#define AS3722_BBCMODE_ACT_STBY_OFF 3
+
+/* Power Good OC Mask macro */
+#define AS3722_OC_PG_MASK_AC_OK 0x1
+#define AS3722_OC_PG_MASK_GPIO3 0x2
+#define AS3722_OC_PG_MASK_GPIO4 0x4
+#define AS3722_OC_PG_MASK_GPIO5 0x8
+#define AS3722_OC_PG_MASK_PWRGOOD_SD0 0x10
+#define AS3722_OC_PG_MASK_OVCURR_SD0 0x20
+#define AS3722_OC_PG_MASK_POWERGOOD_SD6 0x40
+#define AS3722_OC_PG_MASK_OVCURR_SD6 0x80
+
#endif