fuel gauge: rk817: Enable ADC samplingThe ADC sampling functions for USB voltage and system voltagewill yield incorrect measurements if not properly enabled.Change-Id: I74b46292a5bcb36f248f92423
fuel gauge: rk817: Enable ADC samplingThe ADC sampling functions for USB voltage and system voltagewill yield incorrect measurements if not properly enabled.Change-Id: I74b46292a5bcb36f248f924233afaab2760101c4Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
show more ...
fuel gauge: rk817: Supporting battery charging with JEITA standardsImplementing JEITA charging protocols is critical for enhancing batterysafety and prolonging service life. Based on battery spec
fuel gauge: rk817: Supporting battery charging with JEITA standardsImplementing JEITA charging protocols is critical for enhancing batterysafety and prolonging service life. Based on battery specifications andoperating temperatures, it is necessary to adjust charging voltages andcurrents dynamically.Change-Id: Ie11d386477f5047d1ed1d88cf0cff7df77e091a7Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
fuel gauge: rk817: Resolve the issue of shutting down and chargingRK817 supports shutdown charging, but the software does not do this.The software determines that the rsoc has increased during shu
fuel gauge: rk817: Resolve the issue of shutting down and chargingRK817 supports shutdown charging, but the software does not do this.The software determines that the rsoc has increased during shutdownand updates the increased rsoc to the dsoc.Change-Id: If6f8a3d3969222d02fd96658a5e60bae46906461Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
fuel gauge: add cw221x supportSigned-off-by: shengfei Xu <xsf@rock-chips.com>Change-Id: Ib1fa91f5cd90878ccbb0e79f55ca63c2eae26109
power: fuel gauge: add charger callbackset_charger_voltage: set the charger voltageset_charger_enable/disable: control the charger functionset_charger_current: set the charger currentget_tempera
power: fuel gauge: add charger callbackset_charger_voltage: set the charger voltageset_charger_enable/disable: control the charger functionset_charger_current: set the charger currentget_temperature: get the battery temperatureSigned-off-by: shengfei Xu <xsf@rock-chips.com>Change-Id: Ie2788d9711d0bd7f095338f1590a2816dd402a87
fuel gauge: rk817: fix battery can not charge to fullSigned-off-by: Chen Shunqing <csq@rock-chips.com>Change-Id: I4de6df9206a68206e6a87604002128d9e81fbafe
fuel gauge: rk817: restore the save remain cap to the fuelgaugeSolve the dsoc inconsistent with before shutdown.Signed-off-by: shengfei Xu <xsf@rock-chips.com>Change-Id: I7f06f31fd0b897609c670d0
fuel gauge: rk817: restore the save remain cap to the fuelgaugeSolve the dsoc inconsistent with before shutdown.Signed-off-by: shengfei Xu <xsf@rock-chips.com>Change-Id: I7f06f31fd0b897609c670d091a9236506e0f9ae4
power: fg_cw201x: compatible with kernel5.10Signed-off-by: Chen Shunqing <csq@rock-chips.com>Change-Id: I4ef4d46be72ee5021359b5e4c7629fe76b680f26
fuel gauge: rk816/8: Add nonstandard charger checkTreat as AC_CHARGER.Signed-off-by: Joseph Chen <chenjh@rock-chips.com>Change-Id: I0419e06c1c0bcaf5e29a2065bd8767ac4fa02b23
fuel gauge: rk817: check if battery is existSigned-off-by: Shunqing Chen <csq@rock-chips.com>Change-Id: I6778e6725dc0231a46942d7226abecb98ef71bb8
fuel gauge: rk816: support different sample resistorChange-Id: Ib08c82e837cbded07e1002ea0941f3180fdfde1dSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
rockchip: spl: support low power detectSigned-off-by: Jason Zhu <jason.zhu@rock-chips.com>Change-Id: Ibcb5996369348d31248596dcdb5018ad6526786e
fuel gauge: rk817/rk809: add for splSigned-off-by: shengfei Xu <xsf@rock-chips.com>Signed-off-by: Joseph Chen <chenjh@rock-chips.com>Change-Id: I700d796d2b506c7defad416feba1074de185441c
fuel gauge: rk817/rk809: fix get rsoc errorSigned-off-by: Shunqing Chen <csq@rock-chips.com>Change-Id: Id946d56c9aafef87bb864218155e1b2353991140
power: fg_cw201x: replace fdt functionsSigned-off-by: Shunqing Chen <csq@rock-chips.com>Change-Id: Id03c367e619444f5f76ecbb36f831e09959d2888
fuel gauge: rk817/rk809: fix the issue of dsoc cannot reach 100Change-Id: I8b5c995509df71f23fdf73381ac0e55de727b5c2Signed-off-by: Shunqing Chen <csq@rock-chips.com>
power: rename the include file phy-rockchip-usb2.hChange-Id: I3725130115907555aad9ad4e669601b5059c8066Signed-off-by: Jianing Ren <jianing.ren@rock-chips.com>
power: fuel gauge: allow fuel gauge in SPLSometimes we need low power test in spl. Update the configto allow this.Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>Change-Id: I0c7d035cb55e0698
power: fuel gauge: allow fuel gauge in SPLSometimes we need low power test in spl. Update the configto allow this.Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>Change-Id: I0c7d035cb55e06980d1c2fd28ceef5adee4d7197
dm: fuel gauge: rename fuel_gauge_get_soc() to fuel_gauge_update_get_soc()New name is more accurate about internal implementation..Change-Id: I16891f5f614fbb17f1e65e04ef4d8a713c8624f3Signed-off-
dm: fuel gauge: rename fuel_gauge_get_soc() to fuel_gauge_update_get_soc()New name is more accurate about internal implementation..Change-Id: I16891f5f614fbb17f1e65e04ef4d8a713c8624f3Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
fuel gauge: rk817/rk809: fix code errorChange-Id: I297015130144cb3c41e45a2030b729edd61498ceSigned-off-by: Shunqing Chen <csq@rock-chips.com>
power: fg_cw201x: add capability callbackThis is only a fuel gauge IC.Change-Id: I003dee494aa89b388f5ef68381ce16227d7f9c65Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
power: fuel gauge: add capability callbackReturn "FG_CAP_FUEL_GAUGE | FG_CAP_CHARGER" as default valuewhen there's not implementation, which compatibles with all fg drivers.Change-Id: Ie71e1271e
power: fuel gauge: add capability callbackReturn "FG_CAP_FUEL_GAUGE | FG_CAP_CHARGER" as default valuewhen there's not implementation, which compatibles with all fg drivers.Change-Id: Ie71e1271e504c63be42af41551e10e8c2c7d89acSigned-off-by: Joseph Chen <chenjh@rock-chips.com>
fuel gauge: rk817/rk809: only rk809 need pull-up and pull-down resistorChange-Id: I9c88a0cf11205ba351305eb37bd1e725ed203dcaSigned-off-by: Shengfei Xu <xsf@rock-chips.com>
power: fuel gauge: fix rk818/rk816 gpio_desc null pointer issueChange-Id: I2289eed51eadb0b7b11e9c81d6154f27f138c97fSigned-off-by: Shunqing Chen <csq@rock-chips.com>
fuel gauge: rk817/rk809: add charge detect for rk809Change-Id: I481793e5e307534deefa15a9f71de75752170dc8Signed-off-by: Shunqing Chen <csq@rock-chips.com>
123