Commit graph

24357 commits

Author SHA1 Message Date
Linux Build Service Account
1b8c9dabd1 Merge "qpnp-fg-gen3: Add support to configure auto recharge voltage" 2016-11-29 07:44:07 -08:00
Linux Build Service Account
ed5bf14e0e Merge "ARM: dts: msm: Modify ACD_EXTINT_CFG value for msm8998 v2" 2016-11-28 23:57:36 -08:00
Linux Build Service Account
a471456332 Merge "msm: mdss: hdmi: fix potential null deference errors" 2016-11-28 23:56:42 -08:00
Linux Build Service Account
d664e19659 Merge "ARM: dts: msm: add UFS_RESET pin ctrl data for msm8998" 2016-11-28 14:56:37 -08:00
David Collins
466d6afc2d clk: msm: clock-osm: add support for MEM ACC threshold voltage
Add support for configuring the highest memory accelerator
(MEM ACC) threshold voltage.  This threshold voltage is used at
runtime to determine which CPRh virtual corner to program into
the OSM sequencer registers in place of the fixed MEM ACC
configuration specified in the OSM LUT.

CRs-Fixed: 1088429
Change-Id: Ida29eaca139c1ddd6439d11a8bd51526366f2a34
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-11-28 14:54:29 -08:00
David Collins
1a9d62db8e regulator: cprh-regulator: add support for MEM ACC threshold voltage
Add support for configuring the memory accelerator (MEM ACC)
threshold voltage and the MEM ACC crossover voltage.
The threshold voltage is used to restrict the floor to ceiling
voltage range of all corners so that they cannot cross the
the MEM ACC threshold voltage due to CPR operation.  The
crossover voltage is set when switching the MEM ACC
configuration.

If specified, the APM and MEM ACC crossover voltages are added
to the array of corners after all true corners.  If both are
specified, then the APM crossover corner is added before the MEM
ACC crossover corner (i.e. last corner = MEM ACC crossover and
second to last corner = APM crossover).

CRs-Fixed: 1088429
Change-Id: I2b9b746071579ba9d4bcdcfb6cb755ca08a73182
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-11-28 14:51:18 -08:00
Subbaraman Narayanamurthy
3089ab690e qpnp-fg-gen3: Add support to configure auto recharge voltage
Auto recharge happens when the charging is complete and the
battery SOC or voltage had dropped below certain threshold.
Along with having an option to configure recharge SOC threshold,
a way to configure recharge voltage threshold is required. Add
it. By default, charger is configured to resume charging only
based on the signal from FG based on battery voltage.

Change-Id: I0cd6ca6679c19bbdf4ad980a22d9976396028316
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-28 11:04:43 -08:00
Linux Build Service Account
24f3e90971 Merge "qpnp-smb2: add support to configure auto recharge" 2016-11-25 17:46:50 -08:00
Subhash Jadavani
0c82737188 scsi: ufs: add UFS device reset support
Some platforms may have a SOC pin/gpio connected to UFS device's
RST_n to allow the UFS device reset. This change adds support to
trigger device reset on such platforms.

Change-Id: Ie4faa47fb76837dba909f9a3d0dfe11bc69659e1
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-11-24 07:55:03 -08:00
Linux Build Service Account
a9a8ec4cae Merge "msm: vidc: parse 10-bit bus entries for msmfalcon" 2016-11-24 06:13:39 -08:00
Linux Build Service Account
57f5019a62 Merge "clk: qcom: Add support for MMCC clock for MSMFalcon" 2016-11-24 06:13:26 -08:00
Runmin Wang
1289f98375 msm: 8998: Replace cobalt with 8998
Update the code name from msmcobalt to msm8998. As a result, update
the filename containing "cobalt" and files content containing "cobalt".

CRs-Fixed: 1070840
Change-Id: I2c7b95e3e2a2fec7730724da9eeb86a39a77faf1
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2016-11-22 13:07:05 -08:00
Subbaraman Narayanamurthy
027e7227e2 qpnp-smb2: add support to configure auto recharge
Currently, smb2 charger uses VBT_LT_CHG_RECHARGE_THRESH signal
from FG to enable auto recharge by default. Add support to
configure smb2 charger to use SOC_LT_CHG_RECHARGE_THRESH signal
from FG if needed.

This will enable charging to resume again when battery SOC drops
below the automatic recharge SOC threshold (configured in FG)
while charger is inserted and SOC goes down after the charge
termination had happened.

Change-Id: Ic68cd12cc861d04e107b70e2b96200483f13da26
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-21 13:07:19 -08:00
Taniya Das
48638ac98d clk: qcom: Add support for MMCC clock for MSMFalcon
Add support for the multimedia clock controller found on MSMFalcon
based devices. This should allow most clocks for multimedia peripherals
which includes display, video, camera etc.

Change-Id: If8aa0b094af5ff82fe66c95e3ef2f13632950d2e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-21 12:42:02 +05:30
Linux Build Service Account
7ee7f710ec Merge "leds: qpnp-wled: Add support to configure auto PFM for pmicobalt" 2016-11-18 01:55:01 -08:00
Linux Build Service Account
d52c401860 Merge "leds: qpnp-wled: Add support to configure AUTO_GM settings" 2016-11-17 10:08:45 -08:00
Linux Build Service Account
a1716776fd Merge "leds: qpnp-flash-v2: Add support for configuring OTST thresholds" 2016-11-17 10:08:38 -08:00
Linux Build Service Account
f645e3ce31 Merge "leds: qpnp-flash-v2: Add support for thermal derate features" 2016-11-17 10:08:37 -08:00
Fenglin Wu
596b431a5f leds: qpnp-wled: Add support to configure auto PFM for pmicobalt
The WLED boost controller in pmicobalt supports auto PFM mode when
LCD mode is selected. Auto PFM mode is enabled by default except
on some specific hardware versions. Add a property to specify
AUTO_PFM_THRESHOLD for the boost controller so that it can enter
PFM mode when the adaptive headroom voltage falls below the
threshold.

CRs-Fixed: 1081738
Change-Id: I964b3452d0cdb3618b4ab446655ae75fa3a1049d
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2016-11-17 19:38:14 +08:00
Linux Build Service Account
4b1c2e228c Merge "leds: qpnp-wled: Add support to configure VREF_CONTROL for pmicobalt" 2016-11-17 02:22:35 -08:00
Linux Build Service Account
15c0f0e20c Merge "msm: cpp: Use the src clock node to read the cpp src clock rate" 2016-11-17 02:22:34 -08:00
Deepak Kushwah
12f1d93f05 msm: vidc: parse 10-bit bus entries for msmfalcon
MSM falcon supports 10-bit decode. This commit will
parse 10-bit entries from dtsi and will use
corresponding bus table based on session type.

Change-Id: I7e3655be5c3ea0800499cf24c05899f3d518bbd6
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
CRs-Fixed: 1087798
2016-11-15 22:28:05 -08:00
Linux Build Service Account
5c2a834f84 Merge "msm: pcie: support configurable wr halt size for PCIe" 2016-11-15 04:07:55 -08:00
Linux Build Service Account
4c014824b9 Merge "leds: qpnp-flash-v2: Add support for programming led clamp currents" 2016-11-15 04:07:25 -08:00
Subbaraman Narayanamurthy
ef5d639067 leds: qpnp-flash-v2: Add support for configuring OTST thresholds
Add support for configuring the three thermal mitigation
thresholds from device tree.

CRs-Fixed: 1060212
Change-Id: Iafb7915e196a18b5f8076dda8fb06a4bd71a8e6e
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-14 19:52:52 -08:00
Subbaraman Narayanamurthy
5c312a4f74 leds: qpnp-flash-v2: Add support for thermal derate features
Add support to configure thermal debounce, hysteresis and
ramp down rates from device tree.

CRs-Fixed: 1060212
Change-Id: Iabe79bae5f9471c3c6128ed21efd04de00739daa
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-14 19:52:32 -08:00
Subbaraman Narayanamurthy
98ac2b9cfa leds: qpnp-flash-v2: add support to read pmic revid
There are some features which needs to be enabled based on the
PMIC. PMIC information such as subtype, revision can be obtained
from revid peripheral. Hence add support to read pmic revid.

Change-Id: Ie7a94f59e58b8f1b0816afda2496449694629205
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-14 18:44:28 -08:00
Linux Build Service Account
327b9b6314 Merge "Documentation: sched: Update frequency guidance explanations" 2016-11-11 20:05:45 -08:00
Dhaval Patel
a42b1f1045 msm: mdss: turn off the phy during idle pc only if panel supports
Commit ff19fe24e621ae5dc90f7e45fe4cfe159a647d15 ("mdss:
dsi: turn off phy power supply during static screen")
turns off the dsi phy during idle pc for phy rev 2.0. DSI
lanes are in floating state after dsi phy power off and
all panels may not be able to handle it. This change
allows to turn on the feature based on panel capability.

Change-Id: I9b166df254128a8a53c567f88971779b9ad0f36c
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2016-11-11 12:07:41 -08:00
Subbaraman Narayanamurthy
561bfca197 leds: qpnp-flash-v2: Add support for programming led clamp currents
Allow the mitigation clamp current values for the leds to be
configured through the device tree.

CRs-Fixed: 1060212
Change-Id: I23bf67fba7cef2735db436899a9d5b3306e5a77f
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-11 11:59:15 -08:00
Subbaraman Narayanamurthy
05939b3db2 leds: qpnp-flash-v2: modify regulator control for switch devices
Currently multiple regulator devices can be specified for LED
switch device though a switch device may just require one supply.
Also, before the switch device is enabled, voltage request is
sent to set the maximum voltage. This is not needed with the
regulators like BoB being used as supply for the switch device.
Just enabling the regulator is enough during switch operation.
Modify the way the regulator is obtained and controlled for
switch operation.

Since BoB regulator is configured by the bootloader properly
for flash operation, remove them from the supply list of LED
switch devices on pmicobalt and pm2falcon.

While at it, fix the way device tree properties are read from
flash/torch, switch devices.

CRs-Fixed: 1083246
Change-Id: I8eb5f305f89bc18ad4b735bd89cbf259f0e1ea11
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-11 11:59:15 -08:00
Syed Rameez Mustafa
48cda09051 Documentation: sched: Update frequency guidance explanations
Following the introduction of the top-tasks approach towards frequency
guidance, the documentation on frequency guidance needs to be updated.
Update the same with new and accurate information.

Change-Id: If7deee97c09666b7d9513f79c0e278c430acfdfd
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-11-11 11:37:53 -08:00
Linux Build Service Account
a80049346b Merge "regulator: qpnp-labibb: add support to configure PFM for LAB regulator" 2016-11-10 22:49:43 -08:00
Fenglin Wu
c8f85b42fe leds: qpnp-wled: Add support to configure AUTO_GM settings
WLED in pmicobalt supports AUTO_GM configuration in CTRL_VLOOP_COMP_GM
register. Add two properties to enable auto-gm and set auto-gm threshold.
Meanwhile, move "qcom,loop-ea-gm" property outside of AMOLED constraint
because WLED in LCD mode also support it.

CRs-Fixed: 1081738
Change-Id: Iee99e9d1b999c84ece075d2f17e9cdf6aef9a2ac
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2016-11-11 14:31:38 +08:00
Fenglin Wu
e146a32840 leds: qpnp-wled: Add support to configure VREF_CONTROL for pmicobalt
WLED module in pmicobalt has different VREF_CONTROL settings with current
WLED module which is existing in pmi8994/pmi8952, including min voltage,
max voltage, step size and default voltage. Add support for it.

CRs-Fixed: 1081738
Change-Id: Ibaa555cec8cfd296125af3e6277df5331f5c438b
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2016-11-11 14:19:05 +08:00
Tony Truong
c25e50abe9 msm: pcie: support configurable wr halt size for PCIe
Clients of PCIe determine the size and transfer speed of
incoming IP packets. In order to ensure ordering of all
packets, each client requires different PCIe write halt
sizes. Thus, make this PCIe setting configurable.

Change-Id: I208c8c83a8f5ee8efadf01175f60d70fb4bf48cf
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-11-10 18:25:33 -08:00
Linux Build Service Account
208399ba94 Merge "ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt" 2016-11-10 15:14:32 -08:00
Linux Build Service Account
dc30c737b0 Merge "regulator: qpnp-labibb: Rename properties to reflect the vendor" 2016-11-10 15:14:32 -08:00
Linux Build Service Account
73ab51e35d Merge "ASoC: msm: refactor machine driver for msmfalcon" 2016-11-10 15:14:24 -08:00
Linux Build Service Account
d654f842d9 Merge "msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill" 2016-11-10 15:14:21 -08:00
Linux Build Service Account
13840c574e Merge "msm: ipa: Add support to configure WAN RX desc size" 2016-11-10 15:14:19 -08:00
Subbaraman Narayanamurthy
08cbd79f44 regulator: qpnp-labibb: add support to configure PFM for LAB regulator
As per the hardware documentation, PFM needs to be disabled for
LAB regulator during slow start. When the display is turned off,
PFM needs to be disabled with the default current limit. When the
display is turned on, after VREG_OK interrupt fires, PFM needs to
be enabled after overriding the current limit. Add support for
it. Currently this is required only for pmicobalt.

While at it, fix the current limit configuration for LAB
regulator.

CRs-Fixed: 1024407
Change-Id: Icb3781ca31dd8474cfca077c52593dc69d011127
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Subbaraman Narayanamurthy
83dd0b0ca0 ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt
Set LAB's precharge time to max 500us to optimize the precharge
behavior as suggested in the hardware documentation.

CRs-Fixed: 1084297
Change-Id: I118f4254686caf498087847916b7710662ab31e7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Subbaraman Narayanamurthy
bcac9ef54a regulator: qpnp-labibb: Rename properties to reflect the vendor
Currently, some properties in LABIBB regulator driver are having
prefix "qpnp" which is not reflecting the vendor. Change it to
"qcom" to reflect the vendor name correctly and also match with
other DT properties.

CRs-Fixed: 1071971
Change-Id: I182dddc29f3d7c7b449b56ac7fb84e74061cf3a4
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Harshdeep Dhatt
00e0494320 msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill
Add a quirk to set LMLOADKILLDIS bit in A5XX_VPC_DBG_ECO_CNTL
and clear LMLOADKILLDIS bit in A5XX_HLSQ_DBG_ECO_CNTL registers.
This is done to avoid a VPC corner case with local memory(LM)
which leads to corrupt internal state on A540 and its derivatives.

CRs-Fixed: 1036444
Change-Id: I31008433f19924bb35560d3e35fe0665e73751d5
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-11-08 15:15:25 -07:00
Sunil Paidimarri
41d38586f9 msm: ipa: Add support to configure WAN RX desc size
Embedded tputs depend on WAN RX desc size, but, every target
has its own limitations of memory and embedded tputs goals.
So, add parameter to configure WAN RX desc size through device tree.

Change-Id: I28c550058dd990c9c8cd368a2677097c7f057ccd
CRs-Fixed: 1081543
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-11-08 13:48:42 -08:00
Linux Build Service Account
bd04f6926f Merge "qpnp-fg-gen3: support configuring ESR FCC based on charging status" 2016-11-08 11:19:11 -08:00
Linux Build Service Account
cb51868198 Merge "msm: mdss: add multiple partial update support" 2016-11-08 11:18:38 -08:00
Linux Build Service Account
54525872ba Merge "ARM: dts: msm: Enable ACD on msmcobalt v2" 2016-11-08 11:18:23 -08:00
Krishnankutty Kolathappilly
17c4d6584e msm: cpp: Use the src clock node to read the cpp src clock rate
Use the src clock binding to read the cpp src clock rate intead of
using the list rate api from clock driver.

CRs-Fixed: 1079648
Change-Id: I2ebdc0c41c521e56a400d685b6254174cffdc14b
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
2016-11-08 10:48:16 -08:00