Commit 02643475 authored by Baolin Wang's avatar Baolin Wang Committed by Arnd Bergmann

arm64: dts: sprd: Add SC27XX fuel gauge device

Add Spreadtrum SC27XX fuel gauge device node to calculate the
battery capacity.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent a4795409
...@@ -70,6 +70,11 @@ efuse@380 { ...@@ -70,6 +70,11 @@ efuse@380 {
#size-cells = <1>; #size-cells = <1>;
hwlocks = <&hwlock 12>; hwlocks = <&hwlock 12>;
fgu_calib: calib@6 {
reg = <0x6 0x2>;
bits = <0 9>;
};
adc_big_scale: calib@24 { adc_big_scale: calib@24 {
reg = <0x24 0x2>; reg = <0x24 0x2>;
}; };
...@@ -90,6 +95,19 @@ pmic_adc: adc@480 { ...@@ -90,6 +95,19 @@ pmic_adc: adc@480 {
nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; nvmem-cells = <&adc_big_scale>, <&adc_small_scale>;
}; };
fgu@a00 {
compatible = "sprd,sc2731-fgu";
reg = <0xa00>;
bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>;
io-channels = <&pmic_adc 3>, <&pmic_adc 6>;
io-channel-names = "bat-temp", "charge-vol";
monitored-battery = <&bat>;
nvmem-cell-names = "fgu_calib";
nvmem-cells = <&fgu_calib>;
interrupt-parent = <&sc2731_pmic>;
interrupts = <4>;
};
vibrator@ec8 { vibrator@ec8 {
compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator";
reg = <0xec8>; reg = <0xec8>;
......
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