diff options
| author | Baolin Wang <baolin.wang@linaro.org> | 2019-02-13 07:32:48 -0500 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2019-02-18 05:33:21 -0500 |
| commit | 02643475a8d3cd0b763d278c5fc5e60e190e685c (patch) | |
| tree | 48e509ebbb9a5f443bbaee0851bcae14d5461a12 | |
| parent | a47954095395412832ebe7a20023606b6375f153 (diff) | |
arm64: dts: sprd: Add SC27XX fuel gauge device
Add Spreadtrum SC27XX fuel gauge device node to calculate the
battery capacity.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
| -rw-r--r-- | arch/arm64/boot/dts/sprd/sc2731.dtsi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index dbf6242ef3b5..4a79ddf0ef11 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi | |||
| @@ -70,6 +70,11 @@ | |||
| 70 | #size-cells = <1>; | 70 | #size-cells = <1>; |
| 71 | hwlocks = <&hwlock 12>; | 71 | hwlocks = <&hwlock 12>; |
| 72 | 72 | ||
| 73 | fgu_calib: calib@6 { | ||
| 74 | reg = <0x6 0x2>; | ||
| 75 | bits = <0 9>; | ||
| 76 | }; | ||
| 77 | |||
| 73 | adc_big_scale: calib@24 { | 78 | adc_big_scale: calib@24 { |
| 74 | reg = <0x24 0x2>; | 79 | reg = <0x24 0x2>; |
| 75 | }; | 80 | }; |
| @@ -90,6 +95,19 @@ | |||
| 90 | nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; | 95 | nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; |
| 91 | }; | 96 | }; |
| 92 | 97 | ||
| 98 | fgu@a00 { | ||
| 99 | compatible = "sprd,sc2731-fgu"; | ||
| 100 | reg = <0xa00>; | ||
| 101 | bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; | ||
| 102 | io-channels = <&pmic_adc 3>, <&pmic_adc 6>; | ||
| 103 | io-channel-names = "bat-temp", "charge-vol"; | ||
| 104 | monitored-battery = <&bat>; | ||
| 105 | nvmem-cell-names = "fgu_calib"; | ||
| 106 | nvmem-cells = <&fgu_calib>; | ||
| 107 | interrupt-parent = <&sc2731_pmic>; | ||
| 108 | interrupts = <4>; | ||
| 109 | }; | ||
| 110 | |||
| 93 | vibrator@ec8 { | 111 | vibrator@ec8 { |
| 94 | compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; | 112 | compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; |
| 95 | reg = <0xec8>; | 113 | reg = <0xec8>; |
