diff options
-rw-r--r-- | Documentation/devicetree/bindings/mfd/as3722.txt | 13 | ||||
-rw-r--r-- | include/dt-bindings/mfd/as3722.h | 11 |
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 |