Age | Commit message (Collapse) | Author |
|
Prints the battery temp on kernel log only when temp changes from
last handled value.
This reduce the battery temp printing on kernel log on every 5 sec.
Change-Id: Ie56f0ab05d56b8e9b4c5d5a8ed49bb4ed281f913
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/365373
(cherry picked from commit f90327564fb5df3f9979b5ecaf16071d931a546e)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I1d77d597d5d4f5244ee65b49639679cf9072389c
Reviewed-on: http://git-master/r/365865
|
|
Add supply propery PRESENT to have sysfs "present" for battery.
bug 1421004
Change-Id: I87f42d90e2f2ec386df0934277f84a37b37fcf4e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/364394
(cherry picked from commit 4f207dd8e023a15f75cecdb8ab8d1f08c2a52295)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I78386e4ec7ed4a1212b46949587f4e030f3a9e2e
Reviewed-on: http://git-master/r/365863
|
|
BQ2419x support thermal charging based on JEITA. This is default
on HW and can not disable by SW.
Provide mechanims to add more thermal profiling based on platform
along with HW support to match the paltform specific requirements.
bug 1435980
Change-Id: I6b6bed8639924e698c953d965248c752d08ad46d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/363841
(cherry picked from commit cbc4d5e75a7a41af4dc0609c58a045e401ae9cde)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I4400ca4cd557dddc3b2f9610d0fc0c10a05cd038
Reviewed-on: http://git-master/r/365861
|
|
If requested configuration for input voltage limit, charger
current limit, precharge/termination current limit etc is
more than allowed value then set the value to maximum possible.
Change-Id: Ide4c6425e230f00c2a91872fb3c052caf6904f29
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/364297
(cherry picked from commit 9ae4f4c12f36edf39ef8289857e1938793eb355d)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Ic956afe5716872158975554e1342feafa46fbdf7
Reviewed-on: http://git-master/r/365860
|
|
Sometimes platform needs to adjust the SoC reporting to framework
based on battery its use and parameter programmed on the FG.
Adjust SoC read from device to 0 to 100% before reporting to framework
based on (minimum_soc, maximum_soc) possible on that platform.
bug 1445682
Change-Id: Ia69f4061598fc9dbbed502e6eb8f3f7a7dfd8529
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/364206
(cherry picked from commit a806b7208e72be7ee3f884471bf8f90275592144)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Iec6c5ef18a53cbb4be940f6827d2207509b96f26
Reviewed-on: http://git-master/r/365859
|
|
Add API to provide to adjusting the fuel gauge reading SoC
to equivalent 0 to 100% based on parameter.
This need min and max soc which will be converted to 0 to 100%.
Below min soc will be 0% and above max_soc will be the 100%.
Change-Id: Idc74e0116b53905c639cac79001345ab8062a8dd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/364205
(cherry picked from commit 9141c29df2e7d0ac1e096f345ad7d44607385c76)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I45b52a2b92b7961024fa5f7f428638f1ff5320c2
Reviewed-on: http://git-master/r/365858
|
|
Based on battery soc value battery health
and other battery information passed to framework layer,
to sync with battery information such as health and capacity
level moving get_scaled_soc api to work thread.
Change-Id: I9aad0a7ade95973773629da84855c89d4acc170d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/363680
(cherry picked from commit 45c06515b2eff991c5e91df8e863ccb2f0a672a6)
Reviewed-on: http://git-master/r/364208
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Make kernel threshold SoC as 0% and scale the SoC read from device
as:
Read from device: 0 to threshold -> report 0%
Read from device: threshold+1 to 100% -> report as 1 to 100%.
Change-Id: I08db7ebc08f3f9bb7e69d7397ce5b5d7a98f516a
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/361480
(cherry picked from commit 826bbd7843f06a960f8f7832fd29f6357164646d)
Reviewed-on: http://git-master/r/364229
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Simplify the code implementation for the sysfs of output
charging and remove non-required helper function.
Change-Id: Iff285063770bd2101cf564c75a93c409db2f7ea8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/363840
(cherry picked from commit 80acde0bbc82f84e8af55ee7e1585d1647403828)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I641e36d7a6c3800fa54bf91e7e6a8f02a82e7998
Reviewed-on: http://git-master/r/364220
|
|
Make kernel threshold SoC as 0% and scale the SoC read from device
as:
Read from device: 0 to threshold-> report 0%
Read from device: threshold + 1 to 100% -> report as 1 to 100%.
Change-Id: I05fb167296357b5ec49936241c27078f9ffe2c41
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362908
(cherry picked from commit d25b59b584db946fac0d15d6c85f099b65ccd31c)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I5359eeed1d7ea7ec3980ec99a868d1f2c3318ae6
Reviewed-on: http://git-master/r/363836
|
|
The bootloader and kernel usage the same configuration of fuel
gauge and so SoC read from device is same on both the places.
It is require to run the kernel properly and shutdown gracefully,
the minimum base SoC for the kernel is more than the bootloader
0% SoC.
Add generic API for scaling the reported SoC on kernel based on
kernel thresold SoC. This thresold SoC will be used by BL to jump
to kernel and kernel will report this thresold as 0% SoC.
Change-Id: Ie1787e21f8a41ce10e05fac992d524c1565c70de
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362907
(cherry picked from commit 06a087a259d68f9134fb07b1f06e6ce176aef015)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: If801ae8b05479b1bdb9c97d8d36453fc40f24623
Reviewed-on: http://git-master/r/363835
Reviewed-by: Automatic_Commit_Validation_User
|
|
Initialising the driver as per recommended programing sequence as
per application manual.
Change-Id: Ib1b737f6aa5ab7a261e16381e9c9dca4274d0ecd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362906
(cherry picked from commit 043a8f84ece196e44cfc05cb5c61c349c5e4eb22)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I1207f7e4335f967f81169f20b12cf859359e61ce
Reviewed-on: http://git-master/r/363834
|
|
Driver is supported only from DT registration and
hence it is not require to make the platform data
as public.
Hence moving platform data to driver only and removing
related header file.
Change-Id: I5a13f7f2be23e88923a1a8e4deba105088ab17da
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362905
(cherry picked from commit fb66e65c7c753bbb75684b81294de736f2ff8d1f)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I6892d8805360d760a8844cd46b2b5fcde92c8271
Reviewed-on: http://git-master/r/363833
Reviewed-by: Automatic_Commit_Validation_User
|
|
For the i2c devices, it is not require to provide the
of_device_id data as framework look the client_id for
driver matching.
Hence removing this from driver.
Change-Id: Ib53bd92eafbb625b52e432e79fec883c24c318a1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362904
(cherry picked from commit c74bb4e60187e682c1c13135b1cdd810bbcaad34)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I137f4e9aacc375bd8d5d165a3e632f159c522b70
Reviewed-on: http://git-master/r/363832
Reviewed-by: Automatic_Commit_Validation_User
|
|
To help on debugging, add debugfs interface to dump all register
content of the device.
Change-Id: Ia715019f354bc78a9eb1a785dbc1435b530b237e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362903
(cherry picked from commit 1f3aeab1de43ea5fd9619190063b114b3c7b44c1)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I36030759607d1c93686c82708c28b2d786afce23
Reviewed-on: http://git-master/r/363831
|
|
Prints number of parameter in probe for the quick
reference for a parameter table.
Also use this for checking whether device present on
bus or not and remove the duplicate code for acheiving
same.
Change-Id: I529128aaadea2ef9ed24bbe4a625955604cc382d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362902
(cherry picked from commit 7171d55660b00c6ed594195058ad16e37fcdcbc0)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Ia773e3fa2405f4318b4ed05e23ea5b8785880e31
Reviewed-on: http://git-master/r/363830
Reviewed-by: Automatic_Commit_Validation_User
|
|
Allow the i2c transfer on as3722 device during power off/reset
of the system. This call happen in atomic context.
Bug 1443347
Change-Id: Ib85d57e03dbd6c972b34c464bb33fe60a6aa0c94
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/363720
|
|
Allow the i2c transfer on palmas device during power off/reset
of the system. This call happen in atomic context.
Bug 1443347
Change-Id: I40fbdd53ef0af3efe448633ea324339884bff355
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/362876
(cherry picked from commit 4220552e2deccab22303e74a2a8ecd1e7862ea65)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Ic153e5e20273e4cbabcced2c42afa7128b656a53
Reviewed-on: http://git-master/r/363718
|
|
Added programming of thermistor_b, intial_rsoc and status bit
in LC709203f FG driver.
Bug 1447012
Change-Id: I69b0219e6bfffb307c6cfd66beba691a912fd93b
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/362013
(cherry picked from commit 3169bbeacc41085bd509e796fff1d6d0e4399320)
Reviewed-on: http://git-master/r/363139
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Make sure that charger paramaters are more than their
offset value and round the register value as per their
behavior.
Change-Id: I892b222fefdcc05147e2cced1dc7c35824b873f2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/361911
(cherry picked from commit fefddd517d42ffc1d708b2d27280323fcd662aae)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: Ief0611d1d14beb41924419c5fd9ec64e33df10f0
Reviewed-on: http://git-master/r/363201
|
|
Add support to configure the charger voltage limit based on
battery used on platform.
bug 1445682
Change-Id: Ibdc9d852f06504d8052ccc736ac3938ccc1aa88b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/361478
(cherry picked from commit 56f5517a05b95e4be5be8af0c2c9ffac89b28bcd)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: If0b3d0b8e666ad9ea39b2ee7813b2fcd31531e7d
Reviewed-on: http://git-master/r/363199
|
|
Fix compilation error:
/**
bq2471x-charger.c: In function 'bq2471x_check_manufacturer':
bq2471x-charger.c:143:2: warning: passing argument 3 of 'bq2471x_read'
from incompatible pointer type [enabled by default]
bq2471x-charger.c:98:12: note: expected 'unsigned int *' but argument is
of type 'uint16_t *'
bq2471x-charger.c: In function 'bq2471x_show_chip_version':
bq2471x-charger.c:166:2: warning: passing argument 3 of 'bq2471x_read'
from incompatible pointer type [enabled by default]
bq2471x-charger.c:98:12: note: expected 'unsigned int *' but argument is
of type 'uint16_t *'
bq2471x-charger.c: In function 'bq2471x_hw_init':
bq2471x-charger.c:186:11: warning: unused variable 'val' [-Wunused-variable]
bq2471x-charger.c: In function 'bq2471x_probe':
bq2471x-charger.c:339:6: warning: passing argument 1 of 'dev_name'
from incompatible pointer type [enabled by default]
In file included from linux/i2c.h:30:0,
from bq2471x-charger.c:25:
device.h:741:27: note: expected 'const struct device *' but argument is
of type 'struct device **'
bq2471x-charger.c:277:11: warning: unused variable 'val' [-Wunused-variable]
**/
Change-Id: I0f6710c4d7dcf5157b169fdf3245c8067003e650
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/360088
(cherry picked from commit 9555fa8aef8a773de4a0b25ac880e4a95593c0ef)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I6b1a92c85a8fdbed58ff86ff929db8a689a5ceca
Reviewed-on: http://git-master/r/362841
|
|
Fix compilation error:
/**
sbs-battery.c:959:8: warning: initialization from incompatible pointer type [enabled by default]
sbs-battery.c:959:8: warning: (near initialization for 'sbs_pm_ops.resume') [enabled by default]
sbs-battery.c:959:8: warning: initialization from incompatible pointer type [enabled by default]
sbs-battery.c:959:8: warning: (near initialization for 'sbs_pm_ops.thaw') [enabled by default]
sbs-battery.c:959:8: warning: initialization from incompatible pointer type [enabled by default]
sbs-battery.c:959:8: warning: (near initialization for 'sbs_pm_ops.restore') [enabled by default]
*/
Change-Id: I1afccaec7337762d4cf376c58bed9c3f4f7e47a4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/360086
(cherry picked from commit 2ec66177fd788a21da73cc2b98373781eab1fe06)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I4f9746dc05216fed337cc062060019fe84d45a5b
Reviewed-on: http://git-master/r/362840
|
|
Fix compilation error:
/**
battery-charger-gauge-comm.c: In function 'battery_charger_thermal_monitor_wq':
battery-charger-gauge-comm.c:104:28: warning: unused variable 'node' [-Wunused-variable]
**/
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I34a281c50586281bd0487e1d4ce3ea9dc445a851
Reviewed-on: http://git-master/r/360085
(cherry picked from commit e771bb94cc832e0939f3afc09a667cf20048c05c)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I818ce1e136320aa1d8586b7167d41e8a3e5fd6cb
Reviewed-on: http://git-master/r/362839
|
|
add vendor name prefix ti to the BQ2491x charger
driver platform data parameters.
Update the binding doc and all the dts files
accordingly.
Change-Id: I61097c80cdfa4e6b6cfd98fc63b8c13c96d09cf9
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/362738
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Added support such that battery temp can either be
obtained from lc709203f FG or PMIC-ADC.
Change-Id: I605db6994a89761a5dd688cc08420df3837f1fe8
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/360725
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
I2C SMBus is to be used to access the device as the
read/writes involve CRC-8.
Change-Id: I15bc697efa839db3ca6152f4500b4adc715cd903
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/360724
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
The device reads temp in deci-kelvin. The temperature
property need to be provided in deci-celcius to the
power supply framework.
Correcting the reporting value to report on deci-celcius.
bug 1447012
Change-Id: I04e7e3877ac284f8075a3233d9a2702fbef44e31
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/360802
Reviewed-by: Automatic_Commit_Validation_User
|
|
Add support for configuring following parameters based on platforms:
input_voltage_limit
fast_charge_current_limit
pre_charge_current_limit
termination_current_limit
ir_compensation_register
ir_compensation_voltage
thermal_regulation_threshold
This will make the driver to use on differnet platforms optimised
for given platforms.
bug 1402856
Change-Id: I4013708d9e3b5fdf25fbdc0cbc8b79c24c719044
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/360800
|
|
Cleanups and rewrite the option to disable suspend during
high current charging to make the option simple.
Change-Id: Ib30e01664f948ae844e6b8c293d0f4004b98c7ef
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/359388
|
|
When suspend is enabled during the high charging current then only
configure system to wakeup from suspend.
Otherwise, disable suspend during high current charging till charging
done.
bug 1436408
bug 1445136
Change-Id: I5c82acd5ea06bcde4f2fc277e88487342a7b127d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/359386
|
|
if bc_dev is null the parent_dev won't be there
if (!bc_dev) {
- dev_err(bc_dev->parent_dev, "Invalid parameters\n");
return -EINVAL;
}
Change-Id: I5f5f789242195445aadcad0be3676e05f80ef7b2
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/357883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
As regulator need maximum current is microamp, pass it on microamp
from DTS file.
Correct the driver to manipulate this value correctly.
Change-Id: Ifaa65b9f220ad550f2f7bd12be3c8e8a07184fed
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/358768
|
|
Ignore the current machine constraints for charger regulator to
avoid configuring charger driver to maximum supported current.
Change-Id: If4b5721b667b8b206b9a00d5c16e8b0b542cc9d3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/358767
|
|
Registering vbus regulator after charging regulator so that
charging can be keep enabling in vbus regulator initialisation.
Change-Id: I401a386765b72f464f9ead4b403c970161ae5580
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/358765
|
|
Add sysfs for overriding charging current and status.
bug 1438180
Change-Id: I8c270fb0adca0cef5706490804a660a88b36bc37
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/358249
|
|
Get thermal zone name from DT. If DT has the thermal-zone
properties then sw thermal effect will be enabled otherwise
the sw thermal effect will be disabled.
Change-Id: I48f3d78a51570273e9798cbbdd627ce613e6a085
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/358680
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
|
|
Register the thermal zone and implement thermal effect of charging
only when thermal zone name is provided by client.
Change-Id: I887a1a9e0167f3bdd3c4b287d1fb14a023a36dbf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/358679
GVS: Gerrit_Virtual_Submit
|
|
enable thermal feature only if thermal zone name
provided through battery charger, gauge driver
platform data.
Bug 1429629
Change-Id: I8e40442c51f49d8a75a00780c59aff2aa180ffb5
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/357119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
update max17048 chip version number.
max17048 check battery returning ENODEV value always
due to wrong max17048 version number.
moving max17048 version prints to check battery api.
Change-Id: I9395f326f1843acf9152d5fbd4734e900c3dff2e
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/357571
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
probe() calls max17048_check_battery() which returns
an error if battery version is not correct. This
check returns a int but probe() uses return value
as unsigned. This causes version<0 check to not
work.
fixed return goto on error as code was calling
power_supply_unregister() twice on error.
This fixes the kernel crash I was seeing.
Change-Id: Ic5eeda39a151bd643b553385faad999b89ec96ed
Signed-off-by: Philip Rakity <prakity@nvidia.com>
(cherry picked from commit 22664168aa1707e57927c6b8a2324db10b8cd6a8)
Reviewed-on: http://git-master/r/357118
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
If charger cable is not connected, then do not set rtc alarm during
suspend.
Bug 1436408
Change-Id: I45eddabe7136c7c406dc75785c5794e0a2900983
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/356957
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Register the irq only when battery presents as we need
interrupt only when charging enabled.
Change-Id: I4ea403998ad0bdebdabb93fa14d2f8001963bb3d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/357066
|
|
This cleans the exit path and simplify remove function.
Change-Id: I819f9f59ee61f22b005f34d616b369520991cd90
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/357065
Reviewed-by: Automatic_Commit_Validation_User
|
|
Add status property in the charger subnode to make this node
as valid or invalid so that property overide can be simple.
Change-Id: I9c735341a990846ae0f15198692e0b009e57c7b9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/357064
|
|
Enable/Disable LP0 entry of board when charger is connected
based on value of configuration variable passed through platform
data.
Bug 1417638
Change-Id: Ic84e4aff3b7d5d983a44e1f8c2bf3b4391339373
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/348402
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Added support in bq27441 driver such that the device
is not initialized if already done.
Bug 1344962
Change-Id: I5b749fcc014ab817cb0493a095003952ca9fe5d3
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/354140
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Added device tree support for lc709203f driver.
Bug 1388336
Change-Id: I5f5a3c73bd87c058d5a620d472e6f35620b71f3b
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/353054
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
Added support to check for slave presence through an
I2C transfer in driver probe. Driver will exit if
the slave is not detected.
Change-Id: Ib741b6f5070e62f78b49d6b895d6d1b6f899a6ea
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/350908
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
|
|
add support to read battery temperature using Fuel
gauge driver.
Change-Id: I2f82c8f70f032ea811fd16077f3c647d66344e70
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/353145
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|