Commit graph

8189 commits

Author SHA1 Message Date
Linux Build Service Account
bbcb8ab2b1 Merge "clk: qcom: Add support for GCC clock for MSMFalcon" 2016-09-30 18:23:55 -07:00
Linux Build Service Account
778103250b Merge "power: qpnp-fg-gen3: fix SRAM encodings" 2016-09-30 18:23:53 -07:00
Linux Build Service Account
e9ad6b6beb Merge "msm: ipa: unlock WLAN doorbell register access" 2016-09-30 18:23:45 -07:00
Linux Build Service Account
3661c2fbd0 Merge "ARM: dts: msm: Add 2.3 GHz performance cluster support on MSMCOBALT v2" 2016-09-30 18:23:42 -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
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
Alan Kwong
d18d83c45d drm/msm/sde: add max clock property for sde
Add max clock property for sde. This property defines
the maximum allowable clock in Hz.

Change-Id: I4e8f40593345abb970c08b837c76d79f1f8a0581
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-09-30 10:21:32 -07:00
Ingrid Gallardo
1675d1884a msm: mdss: add mdp guard window property
For some panels, the mdp kickoff transaction must
be controlled and only triggered when the scanline
is within certain region. This change adds the
support to control the scanline where the kickoff
can be triggered through panel properties and
if the scanline is not within this region, then
driver will wait for an extra delay that is also
configurable through a panel property.

Change-Id: I06bc6b03f77109adfed428b876915f59d3b5bbfd
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-29 16:42:40 -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
50edc528ba Merge "msm: pcie: configurable PERST propagation delay" 2016-09-29 11:19:57 -07:00
Linux Build Service Account
d099799530 Merge "msm: camera: Add a driver to control IR CUT device" 2016-09-29 11:19:56 -07:00
Linux Build Service Account
a04c752c85 Merge "msm: camera: Export IR CUT device to mm-qcamera-daemon" 2016-09-29 11:19:54 -07:00
Taniya Das
496c9d2780 clk: qcom: Add support for GCC clock for MSMFalcon
Add support for the global clock controller found on MSMFalcon
based devices. This should allow most clocks for peripherals other than
multimedia clocks.

Change-Id: I1ec6309f32c658177580cc0601083d32bcdfad20
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-09-29 23:20:59 +05:30
Deepak Katragadda
7c7db2d4d9 clk: msm: clock-osm: Support many-to-one OSM freq to CPR corner mapping
The current OSM framework does not support mapping multiple OSM
clock frequencies to the same CPR virtual corner. Enable this
support and update the current clock DT entries accordingly.

CRs-Fixed: 1070684
Change-Id: I3422848cabf221f497eb91f9aae5905e34ebdc84
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-27 14:41:04 -07:00
Skylar Chang
b0756920f3 msm: ipa: unlock WLAN doorbell register access
Request TZ to unlock WLAN doorbell register for ipa
uC access for offload data path.

Change-Id: Ia79b1d8a9a0213c2f5296140bff7a36d3f035e21
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-26 17:57:12 -07:00
Mitchel Humpherys
0c46d7f488 msm: kgsl: Remove obsolete IOMMU domain attribute
The DOMAIN_ATTR_COHERENT_HTW_DISABLE IOMMU domain attribute is being
removed.  SMMU coherency will be configured through the SMMU device tree
nodes moving forward.  Remove the obsolete option.

Change-Id: I4bbbfb90fe172e048cc9504c4e6be5f36501b485
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-26 17:42:52 -07:00
Mitchel Humpherys
7e079d086f msm: ipa: Remove obsolete IOMMU domain attribute
The DOMAIN_ATTR_COHERENT_HTW_DISABLE IOMMU domain attribute is being
removed.  SMMU coherency will be configured through the SMMU device tree
nodes moving forward.  Remove the obsolete option.

Change-Id: I35c9e8ac92cd2e69ff6980f5314eebb0f74a6d46
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-26 17:42:43 -07:00
Linux Build Service Account
1b95c57dc7 Merge "ASoC: msmcobalt: add support for MI2S and AUX PCM" 2016-09-24 02:00:40 -07:00
Linux Build Service Account
33b8c0517b Merge "input: touchscreen: Change late_init call to module_init" 2016-09-24 02:00:31 -07:00
Caesar Wang
5be0ba2900 iio: adc: rockchip_saradc: reset saradc controller before programming it
commit 543852af8e5902aee8f7c72c89e1513663e0f696 upstream.

SARADC controller needs to be reset before programming it, otherwise
it will not function properly.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-iio@vger.kernel.org
Cc: linux-rockchip@lists.infradead.org
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-24 10:07:37 +02:00
Linux Build Service Account
df02701d1f Merge "ARM: dts: msm: update PCIe reset clks for MSM8996 and msmcobalt" 2016-09-23 20:19:00 -07:00
Kuirong Wang
6ec8311450 ASoC: msmcobalt: add support for MI2S and AUX PCM
Add support for audio over MI2S and AUX PCM interfaces
so that applications have flexibility to select MI2S/AUX
PCM interfaces in addition to Slimbus.

CRs-Fixed: 1047362 1047365
Change-Id: I48e6680b026391d8e77bbdcba4fb59ed90b13581
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-23 16:41:41 -07:00
Nicholas Troast
654b1238ef qpnp-smb2: support batteryless platforms
Currently a device without a battery will shutdown soon after boot since
the SOC will be 0. Add a DT property called "qcom,batteryless-platform"
which indicates that the device does not have a battery. If this
property is set then charging will be disabled, and all of the necessary
battery parameters will be faked to ensure normal operation.

Change-Id: I6943b7f5565ad95eddb9e3d30de5efbc47106e3d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-23 09:10:09 -07:00
Sriharsha Allenki
cb0d99c23f thermal: tsens: Enable TSENS for msmtriton
Temperature sensor (TSENS) driver provides ability to
thermal clients to read from on-die temperature sensors.
msmtriton supports reading from 12 on-die temperature
sensors and clients can set temperature thresholds and
receive notification.

Change-Id: Ia296ff112456f8959a2c769ab1e7afbccec23ba1
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2016-09-23 15:00:21 +05:30
Bingzhe Cai
db3a2341f0 input: touchscreen: power off touch panel during suspend
Allow turn off touch panel power and reconfigure related GPIOs
to maximize power saving.

Change-Id: I25d7dc8abbd6dae4c54ee14f8feaf5701f64fd95
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-21 01:55:22 -07:00
Linux Build Service Account
9e2d528dc4 Merge "msm: camera: Add support for reset controller framework" 2016-09-20 10:20:44 -07:00
Shantanu Jain
ccd9ea31e2 input: touchscreen: Add fw_name sysfs entry in Goodix driver
Add fw_name sysfs entry in Goodix driver. This entry allows
user to read and write firmware name from sysfs.

Change-Id: I69585d757f1a6dc40834a99ee67c872bf6f3ea13
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-20 04:25:22 -07:00
Linux Build Service Account
620685750e Merge "ARM: dts: msm: enable scan dump for msmcobalt" 2016-09-19 23:28:02 -07:00
Tony Truong
8963c2ab15 msm: pcie: add support for reset controller framework
The current api which performs the clock reset is moved
to use the reset framework, so support the changes in PCIe
driver for the same. The reset framework requires to get
reset handle and perform assert/deassert of the resets.

Change-Id: I1ca8bb386673f0db020554659f69c71b540e3dcc
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-09-19 10:34:16 -07:00
Linux Build Service Account
f18d5b789d Merge "msm: camera: Add support for camera on version 2 of msmcobalt" 2016-09-17 12:59:53 -07:00
Vivek Veenam
b53eb89873 msm: camera: Export IR CUT device to mm-qcamera-daemon
Extend sensor_info structure with one more field to be able to export
the IR CUT device to mm-qcamera-daemon.

Change-Id: I63da161f90bce2c33d1e7e9d5822c8635e307fd5
Signed-off-by: Vivek Veenam <vveenam@codeaurora.org>
2016-09-16 10:30:35 -07:00
Vivek Veenam
3951ec5f08 msm: camera: Add a driver to control IR CUT device
This driver is able to control a IR CUT device. The interface to
user space is:
CFG_IR_CUT_INIT
CFG_IR_CUT_OFF
CFG_IR_CUT_ON
CFG_IR_CUT_RELEASE

Change-Id: I30d1c4e6c40b8e58a70f06db9e05231b4c7f676f
Signed-off-by: Vivek Veenam <vveenam@codeaurora.org>
2016-09-16 10:29:29 -07:00
Linux Build Service Account
7ba1c55052 Merge "ARM: dts: msm: enable bwmon4 for cpubw monitor for msmcobalt" 2016-09-16 09:21:59 -07:00
Linux Build Service Account
38f8a6a313 Merge "input: touchscreen: pull down reset and interrupt pin before GT9xx powerup" 2016-09-15 22:51:49 -07:00
Tony Truong
9ed2e815c0 msm: pcie: configurable PERST propagation delay
Provide clients the option to change the time delay
after PCIe asserts or de-asserts PERST GPIO. The required
delay for successful link training differs on each endpoint.

Change-Id: I7d1e4d5cc421b800d2f00b6d23f6ff19ba4c4c7d
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-09-15 13:37:20 -07:00
Linux Build Service Account
7ad50395d8 Merge "defconfig: enable spss-utils driver for msmcobalt" 2016-09-15 07:33:00 -07:00
Linux Build Service Account
1da961163d Merge "scsi: ufs: Add support for reset controller framework" 2016-09-15 07:32:58 -07:00
Linux Build Service Account
0df70d17dd Merge "input: touchscreen: Use proper conventional functions for debug" 2016-09-15 07:32:51 -07:00
Bingzhe Cai
04d9861b14 input: touchscreen: add multiple config data support for GT9xx
Goodix GT9xx touchscreen driver supports up to six groups of config
data and uses hardware GPIO configuration to select which one will
be used. This change allows these six config groups to be loaded
from devicetree.

Change-Id: I9dfd698e7084164688dd964ed914d5eecc75ecd3
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-15 12:19:17 +05:30
Rohit Gupta
e549f7bdb0 PM / devfreq: bimc-bwmon: Add support for version 4
The version 4 of the BIMC BWMON hardware now has provisions for
counting bytes transferred at a high sampling rate.

Modify the existing driver and governor algorithm to
take advantage of that.

Change-Id: I5080297aef7e310d5c1a19098c177ddecb729c25
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-09-14 15:46:48 -07:00
Shashank Mittal
0c6d3141a3 soc: qcom: move scan dump memory allocation
Allocate memory for scan dump collection along with CPU context
allocation.
This will help in debugging crashes very early during boot up.

Change-Id: Icbb2a60683ecca303cbd48576d80d0a765610c8f
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-09-14 11:07:00 -07:00
Robin Randhawa
245dcdb6ab Documentation: DT bindings for energy model cost data required by EAS
EAS (energy aware scheduling) provides the scheduler with an alternative
objective - energy efficiency - as opposed to it's current performance
oriented objectives. EAS relies on a simple platform energy cost model
to guide scheduling decisions. The model only considers the CPU
subsystem.

This patch adds documentation describing DT bindings that should be used to
supply the scheduler with an energy cost model.

Signed-off-by: Robin Randhawa <robin.randhawa@arm.com>
2016-09-14 14:48:50 +05:30
Amit Nischal
f556cace66 scsi: ufs: Add support for reset controller framework
The current api which performs the clock reset is moved to use the reset
framework, so support the changes in ufs driver for the same. The reset
framework requires to get reset handle and perform assert/deassert of the
resets.

Change-Id: I78d833639772cf541e563cbf9fae1aa75ec6a7da
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-09-13 18:02:30 -07:00
Viswanadha Raju Thotakura
26cdd44df4 msm: camera: Add support for camera on version 2 of msmcobalt
EQ bias is enabled in of msmcobalt version 2 csiphy.
Differentiate this setting with new version 2 camera dt file.

CRs-Fixed: 1050172
Change-Id: I5781453f2b2a81b9cf5f7fb643e021b53879583e
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-09-13 10:19:45 -07:00
Linux Build Service Account
48e1a69c5f Merge "icnss: Add support of monitoring vph_pwr" 2016-09-13 05:43:50 -07:00
Amir Samuelov
bc718d5081 soc: qcom: add secure processor subsystem (spss) utils driver
The spss-util driver provides utilities required for the SPSS.
It provides the fuse state for key selection.
It provides the SPSS HW version.

Change-Id: I70c37d64db351db86e3d1d5dddb810257c68d72f
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-09-13 04:35:26 -07:00
Shantanu Jain
0ddb25d00e input: touchscreen: Add dynamic detection support to Goodix driver
Add dynamic detection support to goodix driver, where
the driver tries to read the chip id and make sure
it is communicating with the right chip.

gtp_read_version is modified to gtp_read_fw_version
which reads the firmware version from the controller
and will be used during fw update process.

Change-Id: I2dc51b84f817413da6bf9b266e2fe7e0bb09c4bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:53:38 -07:00
Linux Build Service Account
0ac10439ff Merge "input: touchpanel: Add FB notifications support to GT9xx" 2016-09-12 14:42:24 -07:00
Yuanyuan Liu
d44c09c2b9 icnss: Add support of monitoring vph_pwr
Add support of monitoring runtime phone power. Driver configures two
threshold values and receives notifications when phone power
crosses either high or low threshold. Driver then sends indication to
WLAN FW, which will vote for different regulator power mode based on the
indication.

CRs-Fixed: 1050198
Change-Id: I0614286f1b2a3446d40ad4d82e24a6e8f91069e1
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 10:04:37 -07:00