Commit graph

8189 commits

Author SHA1 Message Date
Linux Build Service Account
510fc66816 Merge "regulator: qpnp-labibb: make IBB discharge resistor configuration optional" 2017-01-30 07:04:55 -08:00
Padmanabhan Komanduru
c9deb68c63 msm: mdss: dp: add support for DP PHY register offset property
Add a DT property to specify DP PHY register offset for display
port. There is a register offset difference for a few DP PHY
registers between msm8998 and SDM660 and hence this is needed.
Add changes to program DP PHY registers by accounting for this
register offset difference wherever applicable.

Change-Id: I515432830ae6c3fa3223f0c97af7b0a3965afc40
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-01-29 23:28:19 -08:00
Padmanabhan Komanduru
7180cae8ed msm: mdss: dp: featurize MDSS display port configuration settings
Display port settings for logical to physical lane mapping and AUX
configurations are different between msm8998 and SDM660. Add support
to parse these settings from MDSS DT file. Add the relevant settings
for the same in msm8998 MDSS device tree node.

Change-Id: I5046b2523928e34ef42924f495dfc754d9ac6ea7
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-01-30 12:45:54 +05:30
Linux Build Service Account
8ba01a8781 Merge "msm: mdss: Add low persistence mode support for display" 2017-01-28 08:41:40 -08:00
Linux Build Service Account
c2f507c20f Merge "Revert "drm/msm/sde: add driver for sde support"" 2017-01-28 00:47:17 -08:00
Linux Build Service Account
d3ec5fa6cf Merge "defconfig: sdm660: Enable CDSP loader driver" 2017-01-28 00:46:52 -08:00
Linux Build Service Account
46b116edc8 Merge "clk: qcom: mdss: add support for MDSS DP PLL for SDM660" 2017-01-28 00:46:32 -08:00
Govind Singh
3a27615253 ath10k: platform driver for WCN3990 SNOC WLAN module
WCN3990 is integrated 802.11ac chipset with SNOC
bus interface. Add snoc layer driver registration
and associated ops.

CRs-Fixed: 1112488
Change-Id: I6106c617514609bd3fe41d9bbfbd34bf0588ef36
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-01-27 12:44:20 +05:30
Subbaraman Narayanamurthy
aac48797c8 regulator: qpnp-labibb: make IBB discharge resistor configuration optional
IBB discharge resistor configuration needs to be decided on the
mode (LCD/AMOLED) along with the capacitor used on the hardware
platform. On hardware platforms that uses pmi8998, this would be
configured in the bootloader and HLOS should not be modifying it
based on the mode.

Hence, remove the property in msm-pmi8998.dtsi. Change the device
tree property to optional so that the driver can probe even when
the property is not specified.

Also, remove the code that force discharge resistor configuration
to 300KOhms for AMOLED mode as it can be done either in the
bootloader or through device tree.

CRs-Fixed: 1115531
Change-Id: I0da5db166bb99a732978c287e97566f649686f42
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-26 19:06:29 -08:00
Hemant Kumar
1eec2157d8 usb: dwc3: Update core clock rate based on USB port speed.
Core clock rate can be reduced or increased based on operating
speeds. Controller starts in Super Speed mode (higher core clock
rate) and it will operate in super or high or full or low speed
upon device connection. Update the core clock rate based on bus
speed to allows system to operate in better low power state (such
as SVS1/SVS2 based on system configuration). High Speed rate for
core clock is programmed from dtsi. Super Speed rate will be used
if High speed core clock rate is not provided for backward
compatibility.

Change-Id: I265149d34de19ab50bd7f106a670a7112bfae384
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-01-26 14:03:10 -08:00
Vladimir Zapolskiy
280d00a942 ARM: dts: imx31: fix clock control module interrupts description
commit 2e575cbc930901718cc18e084566ecbb9a4b5ebb upstream.

The type of AVIC interrupt controller found on i.MX31 is one-cell,
namely 31 for CCM DVFS and 53 for CCM, however for clock control
module its interrupts are specified as 3-cells, fix it.

Fixes: ef0e4a606f ("ARM: mx31: Replace clk_register_clkdev with clock DT lookup")
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-26 08:23:47 +01:00
Narendra Muppalla
7401b2226b Revert "drm/msm/sde: add driver for sde support"
This reverts 'commit 54a4a3fb41 ("drm/msm/sde: add
driver for sde support")'
This is partial change for display drm driver,
that will break drm/sde merge commit.

Change-Id: Iea6b08608a30979232826efba8fbb2a631d93f83
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2017-01-25 17:44:38 -08:00
Laxminath Kasam
82dc8dd4bc ARM: dts: msm: Disable WSA for internal codec SDM660
Disable WSA nodes on internal codec using
bool property.

Change-Id: Ia404609382f12279ab091cbb69a16a2060ac7fb4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-25 18:01:38 +05:30
Padmanabhan Komanduru
e2d34afade clk: qcom: mdss: add support for MDSS DP PLL for SDM660
Model and configure MDSS Display Port PLL for SDM660 target.
Add changes to define and register DP VCO, divider and mux clocks
as per common clock infrastructure.

Change-Id: Ice83e21323087e81e2f30998260be85120e41fa8
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-01-25 14:45:26 +05:30
Osvaldo Banuelos
89ae37eba0 clk: msm: clock-osm: support MEM-ACC threshold voltage for Silver cluster
Add support for configuring the memory accelerator (MEM-ACC)
threshold voltage for the Silver cluster. This threshold
voltage is used to resolve the MEM-ACC crossover virtual corner
number required by the OSM sequence to program MEM-ACC settings
based on a voltage threshold.

CRs-Fixed: 1113780
Change-Id: Iba58a23ae0d30429da629afa9d5f9cb34e025543
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2017-01-24 17:24:38 -08:00
Sathish Ambley
224c188111 msm: CDSP: Enable CDSP loader driver
Add CDSP loader driver to bring compute DSP out of reset
during boot.

Change-Id: I2571e2158fcf7706efc5a5922da24f22755eeed7
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-23 09:56:24 -08:00
Linux Build Service Account
b2664632f0 Merge "msm: ipa: SDM660 miscellaneous changes" 2017-01-23 04:04:09 -08:00
Utkarsh Saxena
a7d1c3be7f msm: ipa: SDM660 miscellaneous changes
Add support to Enable/Disable uc monitor holb feature.

sdm660 does not  support uc monitor holb feature.
Make changes to get this param via device tree to
support devices which handle holb monitoring via IPA uC.

sdm660 supports WLAN offload. Make changes to configure
wlan pipes on IPA2.6L needed to support WLAN offload.

Change-Id: I07e099ffb7833e4790dda1fd4864f3f61acb2a45
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-01-22 16:13:52 +05:30
Pratik Patel
10f058a6e2 iommu: arm-smmu: Move to using bus bandwidth voting for bus clocks
Bus clocks are managed via bus apis and hence move to using them for
enabling bus clocks. The previous method could enable a bus clock at a
higher than required frequency, wasting power.

The power on sequence is regulator on, bus vote, and then enable
remaining clocks.

Remove all clocks which are of RPM_SMD type (including mmssnoc_axi_clk)
since these are managed by the bus driver. Using an active-only bus vote
instead should save power when APPS is power collapsed.

Keep the mmss_mnoc_ahb_clk because it is a branch clock type which is
not managed by the bus driver. No active-only mode is available for this
clock.

Change-Id: I3b35d81098b8bd5299b27e85d27aa959e7cf415a
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2017-01-20 16:05:03 -08:00
Dhaval Patel
c58bfaf5bb drm/msm/sde: parse csc type dtsi entry to select valid csc
msm8998 supports 10bit csc while msm8996 supports csc only.
This patch adds the dtsi entry to select the correct csc
type while parsing hardware catalog to configure the
valid csc hardware block.

Change-Id: I376f1e485a5de4a95d03e395e06d10b043036cb0
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2017-01-19 14:25:57 -08:00
Linux Build Service Account
ca24c4decc Merge "ASoC: wcd934x: Add support for USB Type-C analog audio" 2017-01-19 09:52:36 -08:00
Linux Build Service Account
15942a33a3 Merge "ASoC: msm: qdsp6v2: Add ASM low latency loopback support" 2017-01-19 09:52:24 -08:00
Yahui Wang
e6819350df msm: mdss: Add low persistence mode support for display
Snapshot of low persistence mode changes as of
26cfe58bd94a ("msm: mdss: Add support for low persistence
display mode") and a805a3e1e791 ("arm64/dts: angler: Don't
blank screen when leaving low persistence mode"), to add
low persistence mode support for display. Also, add some
changes to optimize the implementation for LP mode and
fix crash issue when VR APP is up.

CRs-Fixed: 1104888 1108207
Change-Id: I509fb5c87d93e2416882942a226cb9b48bc1d3bf
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2017-01-19 17:59:01 +08:00
Phani Kumar Uppalapati
f42b8d1625 ASoC: wcd934x: Add support for USB Type-C analog audio
Add playback and capture support when an analog wired
accessory is inserted into USB Type-C receptacle through
an USB type-c to 3.5mm analog audio adapter.

CRs-Fixed: 1102048
Change-Id: I36126ecdb0d2683d27d78dea9256bee0be67c1a6
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2017-01-18 09:39:24 -08:00
Linux Build Service Account
e0e7879548 Merge "qpnp-fg-gen3: remove support for configuring external sense" 2017-01-18 05:31:22 -08:00
Linux Build Service Account
14bfad67bb Merge "power_supply: add power supply property to support debug battery" 2017-01-18 05:31:21 -08:00
Subbaraman Narayanamurthy
bb16d850b4 qpnp-fg-gen3: remove support for configuring external sense
External sense configuration is not supported. Hence remove it.

Change-Id: If65eb8c4d9720d4c4e9d913c91c8b33f420f29d1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-17 14:23:13 -08:00
Nicholas Troast
d4b9ff94df power: align qcom drivers with msm-4.9 kernel
The power directory structure has changed in kernel version 4.9. Align
msm-4.4 with this new directory structure.

Change-Id: Iba729f8ef33245ea78cdc05276ba8f5593191509
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-01-17 12:21:07 -08:00
Jiangen Jiao
923b11d089 ARM: dts: msm: Add QRD SDM630 EVT2 SKU1 dts file
Add device tree support for QRD630 EVT2 SKU1 board.

Change-Id: I8cea2b9b0995905297d69951694178dccfea65f7
Signed-off-by: Jiangen Jiao <jiangenj@codeaurora.org>
2017-01-17 16:13:10 +08:00
Amir Samuelov
3763023d7d spss_utils: select spss test/prod/hybrid firmware to load
Select which SPSS firmware to load based on 2 fuses.

Change-Id: I7080cc0b58c38965ed7e58808431cf487008de9e
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-01-15 21:54:58 -08:00
Linux Build Service Account
f34742edd2 Merge "ASoC: wcd-mbhc: set moisture thresholds for NO jack" 2017-01-15 07:06:01 -08:00
Linux Build Service Account
719eabd0a1 Merge "msm: mdss: add backlight gpio invert support for display" 2017-01-13 17:02:57 -08:00
Linux Build Service Account
afef96cab0 Merge "smb-lib: fix Type-C removal detection with OTG" 2017-01-13 17:02:48 -08:00
Linux Build Service Account
fe716a1881 Merge "drm/msm/sde: add driver for sde support" 2017-01-12 22:39:13 -08:00
Abhijit Kulkarni
54a4a3fb41 drm/msm/sde: add driver for sde support
Initial DRM/KMS driver to support snapdragon display engine.

Change-Id: I2f93d7cd24acf77359682f90b6b9647017ed62ba
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Signed-off-by: Krishna Srinivas Kundurthi <kskund@codeaurora.org>
2017-01-12 11:08:55 -08:00
Derek Chen
efb830ca3e ASoC: msm: qdsp6v2: Add ASM low latency loopback support
Add ASM low latency loopback support.
ICC (in-car communication) use case needs the low latency
ASM loopback to satisfy the latency requirement.

CRs-fixed: 998118
Change-Id: If225e809072f4296bc22028da29e589137e5799d
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2017-01-11 12:42:08 -08:00
Nicholas Troast
9645aa1f61 smb-lib: fix Type-C removal detection with OTG
When VCONN is enabled while OTG is disabled the CC line which is not
configured for VCONN can be internally pulled down. If the Type-C plug
were removed then Type-C detection would still see that Rd is applied and
not detect the removal.

Fix this by ensuring that OTG is enabled while VCONN is enabled. If OTG
were disabled due to an over-current event then VCONN must also be
disabled.

Implement a retry mechanism if over-current is detected on either VCONN or
VBUS.

Change-Id: Iccfb923bce8f06c7c1270943211ce134ea9ef616
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-01-10 11:38:45 -08:00
Taniya Das
6a6c254115 clk: qcom: Add support to register GPU rbcpr clocks
GPU RBCPR clocks needs to registered separately, as GFX CPR would require
the rbcpr clocks to register the regulator handle.

Change-Id: I59def76e7dd69600be8faf47eb867a97ab04739e
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-10 20:54:51 +05:30
Yahui Wang
92172af176 msm: mdss: add backlight gpio invert support for display
Some platforms may use external gpio to enable and disable backlight,
and we may need to invert this gpio according to HW design,
so add support for that.

CRs-Fixed: 1109294
Change-Id: Ib5e895eebcc38d185e8b703c3d895781b43c58c7
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2017-01-10 14:51:52 +08:00
Yeleswarapu Nagaradhesh
a47c09691b ASoC: wcd-mbhc: set moisture thresholds for NO jack
Set moisture threshold values depending on the HW
configuration for NO Jack.

CRs-Fixed: 1099543
Change-Id: If995d462f1aeffb443471580520b1c8b5abca811
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2017-01-05 20:20:07 +05:30
Linux Build Service Account
fa69f96bbb Merge "msm: mdss: rename dsi phy version for msm8996 and sdm660" 2017-01-05 02:08:55 -08:00
Linux Build Service Account
0aac3e19af Merge "qpnp-fg-gen3: add support for configuring ESR filter coefficients" 2017-01-05 02:08:42 -08:00
Linux Build Service Account
8bb66a7e41 Merge "regulator: cprh-kbss: add support for sdm660 kbss cpr instances" 2017-01-04 03:25:37 -08:00
Linux Build Service Account
246e930ecb Merge "ARM: dts: msm: Add initial device tree for SDA630" 2017-01-04 03:25:36 -08:00
Linux Build Service Account
db25c7c878 Merge "ARM: dts: msm: Add device tree for SDM630 CDP, MTP and RCM" 2017-01-04 03:25:35 -08:00
Linux Build Service Account
94e93c87d5 Merge "ARM: dts: msm: Add initial device tree for SDM658" 2017-01-04 03:25:35 -08:00
Tirupathi Reddy
a8af09abd1 regulator: cprh-kbss: add support for sdm660 kbss cpr instances
sdm660 CPU CPR controllers support full hardware closed-loop CPR
operation also known as CPR hardening. Extend the cprh-kbss-regulator
driver to handle CPU subsystem specific power requirements of
the sdm660 chip.

CRs-Fixed: 1105923
Change-Id: I2e24a061a5ad4ee959dd578da9e811ac7700702c
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-01-04 09:19:00 +05:30
Subbaraman Narayanamurthy
15c1d49794 qpnp-fg-gen3: add support for configuring ESR filter coefficients
As per the hardware documentation, add support for configuring
ESR tight and broad filters for normal and low temperature. This
is needed as the low temperature ESR filter coefficients are not
functional in the hardware.

All the filter values (in terms of percentage) can be configured
through the device tree. When the battery temperature goes below
10 C or user configured temperature threshold, ESR filter values
of room temperature will be applied to ESR low temperature
filters. Once the battery temperature goes above 10 C, original
values will be applied back to ESR low temperature filters.

Change-Id: I347f194f96ace3036a3c49efe0306d9f909cef36
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-03 19:30:25 -08:00
Linux Build Service Account
8d0f36c59c Merge "ASoC: msm: Changes in machine driver to enable mclk" 2017-01-03 08:43:34 -08:00
Tanya Dixit
bc6d0c8cdd ASoC: msm: Changes in machine driver to enable mclk
Provide the support to enable MCLK output to external
audio connections. Also, update configuration to set
bit clock as EBIT in slave mode.

CRs-Fixed: 1094763
Change-Id: If07f31a6c37c7b8b23eb74b25a1e15990043cb92
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-03 11:40:26 +05:30