Commit 6be57bd2 authored by Baolin Wang's avatar Baolin Wang Committed by Sebastian Reichel

dt-bindings: power: supply: Add nvmem properties to calibrate FGU

Add nvmem properties to calibrate FGU from eFuse controller.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 872bcf83
...@@ -11,6 +11,8 @@ Required properties: ...@@ -11,6 +11,8 @@ Required properties:
- 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 channel to get temperature.
- io-channel-names: Should be "bat-temp". - io-channel-names: Should be "bat-temp".
- nvmem-cells: A phandle to the calibration cells provided by eFuse device.
- nvmem-cell-names: Should be "fgu_calib".
- monitored-battery: Phandle of battery characteristics devicetree node. - monitored-battery: Phandle of battery characteristics devicetree node.
See Documentation/devicetree/bindings/power/supply/battery.txt See Documentation/devicetree/bindings/power/supply/battery.txt
...@@ -47,6 +49,8 @@ Example: ...@@ -47,6 +49,8 @@ Example:
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>;
io-channel-names = "bat-temp"; io-channel-names = "bat-temp";
nvmem-cells = <&fgu_calib>;
nvmem-cell-names = "fgu_calib";
monitored-battery = <&bat>; monitored-battery = <&bat>;
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment