]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
mfd: max77620: Add DT binding details for backup battery
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 9 Nov 2017 12:25:58 +0000 (17:55 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 10 Nov 2017 14:19:01 +0000 (06:19 -0800)
Add DT binding details for DT properties and nodes for
backup battery and low battery monitoring configurations.

Bug 2020512

Change-Id: I374e99faae115e4f77aaea4273d6600fbb20a06c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1595615
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Documentation/devicetree/bindings/mfd/max77620.txt

index 2ad44f7e48801502e21458ed8a3639d0af6592fd..f56ca766e2b129cd66954a11b85fedc175282238 100644 (file)
@@ -110,6 +110,55 @@ For DT binding details of different sub modules like GPIO, pincontrol,
 regulator, power, please refer respective device-tree binding document
 under their respective sub-system directories.
 
+Backup Battery:
+==============
+This sub-node configure charging backup battery of the device. Device has
+support of charging the backup battery. The subnode name is "backup-battery".
+The property for backup-battery child nodes as:
+Presence of this child node will enable the backup battery charging.
+
+Optional properties:
+       -maxim,backup-battery-charging-current: Charging current setting.
+                       The device supports 50/100/200/400/600/800uA.
+                       If this property is unavailable then it will
+                       charge with 50uA.
+       -maxim,backup-battery-charging-voltage: Charging Voltage Limit Setting.
+                       Device supports 2500000/3000000/3300000/350000uV.
+                       Default will be set to 2500mV. The voltage will be roundoff
+                       to nearest lower side if other than above is configured.
+       -maxim,backup-battery-output-resister: Output resistor on Ohm.
+                       Device supports 100/1000/3000/6000 Ohms.
+There is another name of these properties to reduce the property name
+length to meet ePAPR specs. The another name is without vendor as
+follows:
+       maxim,backup-battery-charging-current ->backup-battery-charging-current
+       maxim,backup-battery-charging-voltage -> backup-battery-charging-voltage
+       maxim,backup-battery-output-resister->backup-battery-output-resister
+
+Low-Battery Monitor:
+==================
+This sub-node configure low battery monitor configuration registers. Device has
+support for low-battery monitor configuration through child DT node
+"low-battery-monitor".
+
+Optional properties:
+       - maxim,low-battery-dac-enable: Enable low battery DAC.
+       - maxim,low-battery-dac-disable: Disable low battery DAC.
+       - maxim,low-battery-shutdown-enable: Enable low battery shutdown.
+       - maxim,low-battery-shutdown-disable: Disable low battery shutdown.
+       - maxim,low-battery-reset-enable: Enable low battery reset.
+       - maxim,low-battery-reset-disable: Disable low battery reset.
+
+There is another name of these properties to reduce the property name
+length to meet ePAPR specs. The another name is without vendor as
+follows:
+       maxim,low-battery-dac-enable->low-battery-dac-enable
+       maxim,low-battery-dac-disable->low-battery-dac-disable
+       maxim,low-battery-shutdown-enable->low-battery-shutdown-enable
+       maxim,low-battery-shutdown-disable->low-battery-shutdown-disable
+       maxim,low-battery-reset-enable->low-battery-reset-enable
+       maxim,low-battery-reset-disable->low-battery-reset-disable
+
 Example:
 --------
 #include <dt-bindings/mfd/max77620.h>