Commit graph

575377 commits

Author SHA1 Message Date
Harry Yang
0ceb2fcb8f qpnp-smb2: introduce workaround bit mask
Add a bit mask to enable workarounds only if they are needed for a
particular hardware revision.

Change-Id: Ibd9a896ff6746a48ddab249d7c8ab762ed3c2fbe
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-04 12:52:16 -07:00
Nicholas Troast
d430da6679 qpnp-fg-gen3: smb-lib: notify userspace when SOC changes
Currently the SOC in userspace is not being updated with the latest SOC
from the fuel gauge. Add power supply changed events when the delta SOC
interrupt fires, empty SOC interrupt fires, or when the charging status
changes to full.

Change-Id: I4bbf404639a97dcc443c9ecc8391623e2fff13fd
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:33 -07:00
Nicholas Troast
7885b7b062 ARM: dts: msm: enable FG cycle counting for PMICOBALT
The fuel gauge can count the number of times the battery has charged
across a particular SOC range. Enable it.

Change-Id: I5adc7c2fca73aad765062360cf560eae2eee7d1e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:33 -07:00
Nicholas Troast
c10ab2638c qpnp-fg-gen3: add support for bucket cycle counter
The SOC range is divided into buckets. Whenever the battery is charged
across a bucket we increment the counter for that bucket. These cycle
counters are exposed through the "cycle_counter" property, and buckets
are selected by modifying the "cycle_counter_id" property.

Change-Id: I923c657132d071eff4b5bc61c00fb90de8dde62c
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:32 -07:00
Nicholas Troast
4dcc8dbd38 smb-lib: notify userspace upon usb plugin interrupt
Currently userspace will be notified whenever the Type-C changed
interrupt fires. The charging status reflects whether or not the charger
has a valid input power source. The valid input power source status
follows vbus and not the Type-C changed logic, so in some cases the
charging status may not yet be updated when the userpace is notified
that the USB power supply has changed.

Send a USB power supply changed event when both the Type-C changed
interrupt fires, and the USB plugin interrupt fires.

Change-Id: I50cdd8c706b10f08dc7f322ea02358f3dbce521e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:31 -07:00
Subbaraman Narayanamurthy
4f7f110863 of_batterydata: add snapshot of DT bindings documentation for batterydata
This DT bindings documentation snapshot is taken as of msm-3.18
'commit b428af643156 ("power: qpnp-fg: configure thermal coefficients based on battery type")'

While at it, change the name used in the documentation from
Qualcomm to Qualcomm Technologies, Inc.

CRs-Fixed: 1068593
Change-Id: Ib359e41b7381149a270a5772540bbc80f920919f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-09-30 12:25:52 -07:00
Subbaraman Narayanamurthy
ff753ada17 power: qpnp-fg-gen3: fix SRAM encodings
There are some encoding changes to the following configurations
in pmi8998 SRAM. Update them.

For both v1.1 and v2.0,
- No sign bit for charge termination current

For v2.0,
- 6 bit encoding for empty voltage and vbatt_low

While at it, fix the SRAM byte location from byte 2 to byte 3 for
configuring empty voltage threshold in pmi8998v2.0.

CRs-Fixed: 1068592
Change-Id: I3a301aed1b23ab78aa86b24c11eb750502adab2f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-09-30 10:41:55 -07:00
Nicholas Troast
3603cc87ba qpnp-smb2: add missing battery psy properties for healthd
healthd expects battery voltage, current, temperature, and technology from
the battery power supply. Add them.

Change-Id: I85f589030903ead938af2712875eb5daa81710d9
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-29 21:08:05 -07:00
Nicholas Troast
a3946ad93e qpnp-fg-gen3: add algorithm flags debugfs file
The fuel gauge has several algorithm flags which are useful for
debugging. Add a debugfs file called alg_flags to expose them.

Change-Id: Ibeeea88e2e0745e98e8bfdfa3e086263d82e7bac
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-29 21:08:05 -07:00
Linux Build Service Account
46692be6dd Merge "net: cnss: Add support to get fw files for QCA SDIO target" 2016-09-29 11:21:14 -07:00
Linux Build Service Account
36b224f262 Merge "icnss: update logs for QMI rejected messages" 2016-09-29 11:21:13 -07:00
Linux Build Service Account
25303294bd Merge "Migrate mpq demux driver from kernel 3.18 to 4.4" 2016-09-29 11:21:12 -07:00
Linux Build Service Account
6e395a551f Merge "Migrate demux driver from kernel 3.18 to 4.4" 2016-09-29 11:21:11 -07:00
Linux Build Service Account
97706eea54 Merge "usb: dwc3: fix overriding core clock rate to default max" 2016-09-29 11:21:11 -07:00
Linux Build Service Account
bc716d0f35 Merge "msm: pcie: verify EP is accessible before conf restore" 2016-09-29 11:21:10 -07:00
Linux Build Service Account
cc2b944d66 Merge "soc: qcom: pil: add PBL spare error status" 2016-09-29 11:21:09 -07:00
Linux Build Service Account
a888aabc80 Merge "ASoC: wcd934x: enable rate converter clock for AANC" 2016-09-29 11:21:08 -07:00
Linux Build Service Account
6d162862f4 Merge "ASoC: msmcobalt: Enable msmcobalt to use audio notifier" 2016-09-29 11:21:06 -07:00
Linux Build Service Account
f5b7228107 Merge "drivers: soc: Add Audio Notifier, PDR, and SSR drivers" 2016-09-29 11:21:05 -07:00
Linux Build Service Account
c5d7e7b615 Merge "msm: ipa3: hal: change FnR prints to low" 2016-09-29 11:21:04 -07:00
Linux Build Service Account
87eb81341d Merge "msm: ipa3: change FnR prints to low" 2016-09-29 11:21:03 -07:00
Linux Build Service Account
1b35a9d9cb Merge "soc: qcom: glink: Fix uninitialzed return value." 2016-09-29 11:21:02 -07:00
Linux Build Service Account
f8a523fad1 Merge "soc: qcom: glink_ssr: Fix uninitialized variable" 2016-09-29 11:21:01 -07:00
Linux Build Service Account
793392fb5f Merge "msm: kgsl: Add memory and periphery clock control for A540" 2016-09-29 11:21:00 -07:00
Linux Build Service Account
e18b1f64de Merge "ASoC: wcd934x: Avoid pop during dsd path tear down" 2016-09-29 11:20:58 -07:00
Linux Build Service Account
71acb6aa27 Merge "ARM: dts: msm: enable more FG interrupts for PMICOBALT" 2016-09-29 11:20:57 -07:00
Linux Build Service Account
2d26c815e5 Merge "qcom-charger: fg-util: add float decode function" 2016-09-29 11:20:56 -07:00
Linux Build Service Account
c3e6753c03 Merge "ARM: dts: msm: modify VDD_APC0/1 CPR voltages for msmcobalt v2" 2016-09-29 11:20:56 -07:00
Linux Build Service Account
522270d25b Merge "ARM: dts: msm: correct PM8005 S1 min/max voltage for msmcobalt" 2016-09-29 11:20:55 -07:00
Linux Build Service Account
658a0f5fe1 Merge "ARM: dts: msm: modify VDD_GFX CPR voltage adjustments for msmcobalt v2" 2016-09-29 11:20:53 -07:00
Linux Build Service Account
425322249a Merge "msm: mink: Accept zero args for invoke command" 2016-09-29 11:20:52 -07:00
Linux Build Service Account
a7d7221fa3 Merge "ARM: dts: msm: add slimbus7 and slimbus8 cpu dais for msmcobalt" 2016-09-29 11:20:51 -07:00
Linux Build Service Account
ae9014335d Merge "ARM: dts: msm: Add bus name to venus pil for MSMCOBALT" 2016-09-29 11:20:50 -07:00
Linux Build Service Account
be6bc701ce Merge "msm: kgsl: Revisit the GPU snapshot dumping" 2016-09-29 11:20:49 -07:00
Linux Build Service Account
76d2d17c13 Merge "ASoC: wcd934x: Add dapm ignore suspend for backend dais" 2016-09-29 11:20:48 -07:00
Linux Build Service Account
c2663a6470 Merge "diag: Fix possible buffer corruption by proper typecasting" 2016-09-29 11:20:48 -07:00
Linux Build Service Account
612fafbe3e Merge "input: touchscreen: Change dev_pm_ops for Goodix driver" 2016-09-29 11:20:33 -07:00
Linux Build Service Account
5ec3200668 Merge "ASoC: msm: initialize the params array before using it" 2016-09-29 11:20:32 -07:00
Linux Build Service Account
c60a678c0e Merge "ASoC: msmcobalt: send ANC config for WCD9340 codec" 2016-09-29 11:20:31 -07:00
Linux Build Service Account
45bd3054fc Merge "ARM: dts: msm: Fix smem rpm xprt entry for msmfalcon" 2016-09-29 11:20:31 -07:00
Linux Build Service Account
f6d68e27bf Merge "sched: constrain HMP scheduler tunable range with in better way" 2016-09-29 11:20:30 -07:00
Linux Build Service Account
fbf3c441eb Merge "defconfig: msmcortex: Enable core control" 2016-09-29 11:20:18 -07:00
Linux Build Service Account
95ce9d98db Merge "sched/core_ctl: Integrate core control with cpu isolation" 2016-09-29 11:20:17 -07:00
Linux Build Service Account
461424e5ec Merge "sched/core_ctl: Refactor cpu data" 2016-09-29 11:20:17 -07:00
Linux Build Service Account
bbf8724641 Merge "core_ctrl: Move core control into kernel" 2016-09-29 11:20:17 -07:00
Linux Build Service Account
a18b94fe05 Merge "ARM: dts: msm: Update TSENS sensor ID for MSMCOBALT" 2016-09-29 11:20:15 -07:00
Linux Build Service Account
e84d273d90 Merge "thermal: tsens: Update sensor ID index" 2016-09-29 11:20:14 -07:00
Linux Build Service Account
dee200e246 Merge "net: ipc_router: fix NULL pointer de-reference issue" 2016-09-29 11:20:14 -07:00
Linux Build Service Account
2ef6e7b165 Merge "soc: qcom: Listen to SUBSYS_AFTER_SHUTDOWN notification" 2016-09-29 11:20:13 -07:00
Linux Build Service Account
06b25aaee0 Merge "ASoC: wcd9335: add handset speaker gain mixer control" 2016-09-29 11:20:12 -07:00