dt-bindings: power: sc27xx: Add one IIO channel to read charge voltage

Add one IIO channel named "charge_vol" to read the charge voltage for
the SC27XX fuel gauge controller.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Baolin Wang 2019-01-15 18:32:34 +08:00 committed by Sebastian Reichel
parent 2a7b0a29b3
commit 257afa58e6

View File

@ -9,8 +9,8 @@ Required properties:
"sprd,sc2731-fgu". "sprd,sc2731-fgu".
- reg: The address offset of fuel gauge unit. - reg: The address offset of fuel gauge unit.
- battery-detect-gpios: GPIO for battery detection. - battery-detect-gpios: GPIO for battery detection.
- io-channels: Specify the IIO ADC channel to get temperature. - io-channels: Specify the IIO ADC channels to get temperature and charge voltage.
- io-channel-names: Should be "bat-temp". - io-channel-names: Should be "bat-temp" or "charge-vol".
- nvmem-cells: A phandle to the calibration cells provided by eFuse device. - nvmem-cells: A phandle to the calibration cells provided by eFuse device.
- nvmem-cell-names: Should be "fgu_calib". - nvmem-cell-names: Should be "fgu_calib".
- monitored-battery: Phandle of battery characteristics devicetree node. - monitored-battery: Phandle of battery characteristics devicetree node.
@ -47,8 +47,8 @@ Example:
compatible = "sprd,sc2731-fgu"; compatible = "sprd,sc2731-fgu";
reg = <0xa00>; reg = <0xa00>;
battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
io-channels = <&pmic_adc 5>; io-channels = <&pmic_adc 5>, <&pmic_adc 14>;
io-channel-names = "bat-temp"; io-channel-names = "bat-temp", "charge-vol";
nvmem-cells = <&fgu_calib>; nvmem-cells = <&fgu_calib>;
nvmem-cell-names = "fgu_calib"; nvmem-cell-names = "fgu_calib";
monitored-battery = <&bat>; monitored-battery = <&bat>;