summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorRam Chandrasekar <rkumbako@codeaurora.org>2016-03-11 14:29:09 -0700
committerJeevan Shriram <jshriram@codeaurora.org>2016-05-12 15:05:01 -0700
commit92ad7a30f32fc98af6b7567300d05a6fadb28c9d (patch)
tree549653f3b9976feb5bd004c92b9b382e2866b1f5 /Documentation
parent9383bcf86ad0fb0617ae64930315070148ac26ae (diff)
power: bcl_peripheral: Support new bcl peripheral
Add support for the new version of bcl peripheral introduced in PMIcobalt. The new support includes, 1. support the new address space 2. set the new Ibat too high threshold 3. set the new vbat low comparator threshold 4. set the new vbat too low comparator threshold 5. enable the LMH DCVSh monitor algorithm, when the thresholds are configured. CRs-Fixed: 1010115 Change-Id: I6dad908bbc673ff1b7f7d3d05fecdfc8f48b5815 Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/arm/msm/bcl.txt26
1 files changed, 18 insertions, 8 deletions
diff --git a/Documentation/devicetree/bindings/arm/msm/bcl.txt b/Documentation/devicetree/bindings/arm/msm/bcl.txt
index 86e38587e485..42acaa49c2a5 100644
--- a/Documentation/devicetree/bindings/arm/msm/bcl.txt
+++ b/Documentation/devicetree/bindings/arm/msm/bcl.txt
@@ -149,28 +149,39 @@ scaling factors should be configured to handle Vbat in micro-volt and Ibat in
micro-amps.
Required Parameters:
-- compatible: must be qcom,msm-bcl
+- compatible: must be either
+ 1. 'qcom,msm-bcl' for bcl peripheral without LMH DCVSh
+ interface
+ 2. 'qcom,msm-bcl-lmh' for bcl peripheral with LMH DCVSh interface.
- reg: <a b> where 'a' is the starting register address of the PMIC
peripheral and 'b' is the size of the peripheral address space.
If the BCL inhibit current derating feature is enabled, this must also
contain the PON spare registers as well. Example: <a b c d> where
c is the first PON spare register that will be written and d is the
- size of the registers space needed to be written.
+ size of the registers space needed to be written. Certain version
+ of PMIC, can send interrupt to LMH hardware driver directly. In that
+ case the shadow peripheral address space should be mentioned along
+ with the bcl peripherals address.
- reg-names: a list of names of the registers corresponding to the reg
- property. The fuel gauge peripheral should be "fg_user_adc" and the
- PON spare should be "pon_spare".
+ property. The fuel gauge peripheral should be "fg_user_adc", the
+ PON spare should be "pon_spare", and the bcl-lmh shadow peripheral
+ should be "fg_lmh".
-interrupts: <a b c> Where 'a' is the SLAVE ID of the PMIC, 'b' is
the peripheral ID and 'c' is the interrupt number in PMIC.
- interrupt-names: user defined names for the interrupts. These
interrupt names will be used by the drivers to identify the
interrupts, instead of specifying the ID's.
+- qcom,ibat-polling-delay-ms: Software polling interval for monitoring ibat
+ low threshold.
+- qcom,vbat-polling-delay-ms: Software polling interval for monitoring vbat
+ high threshold.
+
+Optional parameters for peripheral with LMH DCVSh interface:
- qcom,vbat-scaling-factor: The scaling factor to be used for converting
the raw vbat ADC value to milli-volt.
- qcom,vbat-gain-numerator: The numerator of the vbat gain correction factor.
- qcom,vbat-gain-denominator: The denominator of the vbat gain correction
factor.
-- qcom,vbat-polling-delay-ms: Software polling interval for monitoring vbat
- high threshold.
- qcom,ibat-scaling-factor: The scaling factor to be used for converting
the raw ibat ADC value to micro-amps.
- qcom, ibat-gain-numerator: The numerator of the ibat gain correction factor.
@@ -180,8 +191,7 @@ Required Parameters:
factor.
- qcom, ibat-offset-denominator: The denominator of the ibat offset
correction factor.
-- qcom,ibat-polling-delay-ms: Software polling interval for monitoring ibat
- low threshold.
+
Optional Parameters:
- qcom,inhibit-derating-ua: The amount that the bcl current high trip threshold
should be lowered by when the bcl peripheral is operating in a