diff options
author | Tony Lindgren <[email protected]> | 2017-05-31 17:19:20 -0700 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2017-06-08 13:05:49 +0200 |
commit | 1483384b0caac0a84896d03ebc53737bb889064e (patch) | |
tree | cb8a19c7fa48dcc70ffd9af2d277b2b1f9710d54 | |
parent | 1d2495e8c2d976208e8bb52d52b4e529e3b1ff75 (diff) |
dt-bindings: power: supply: cpcap-battery: Add binding
Add binding for cpcap pmic battery.
Cc: [email protected]
Cc: Marcel Partap <[email protected]>
Cc: Michael Scott <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Acked-by: Rob Herring <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/cpcap-battery.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt b/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt new file mode 100644 index 000000000000..d21b1cdf530f --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt @@ -0,0 +1,27 @@ +Motorola CPCAP PMIC battery driver binding + +Required properties: +- compatible: Shall be "motorola,cpcap-battery" +- interrupts: Interrupt specifier for each name in interrupt-names +- interrupt-names: Should contain the following entries: + "lowbph", "lowbpl", "chrgcurr1", "battdetb" +- io-channels: IIO ADC channel specifier for each name in io-channel-names +- io-channel-names: Should contain the following entries: + "battdetb", "battp", "chg_isense", "batti" + +Example: + +cpcap_battery: battery { + compatible = "motorola,cpcap-battery"; + interrupts-extended = < + &cpcap 5 0 &cpcap 3 0 + &cpcap 20 0 &cpcap 54 0 + >; + interrupt-names = + "lowbph", "lowbpl", + "chrgcurr1", "battdetb"; + io-channels = <&cpcap_adc 0 &cpcap_adc 1 + &cpcap_adc 5 &cpcap_adc 6>; + io-channel-names = "battdetb", "battp", + "chg_isense", "batti"; +}; |