Commit graph

582596 commits

Author SHA1 Message Date
Nicholas Troast
969526076d power: supply: qcom: fix OTG soft start failure with higher capacitance
Currently hardware based OTG soft start will fail when enabling OTG with
high capacitance.

Fix this by implementing a software based OTG soft start sequence in
addition to the underlying hardware OTG soft start.

This soft start workaround will begin when an OTG over-current interrupt
is triggered.

Change-Id: I2f3fd5f1bb6e792b2b353eb241d83548e33f563b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 16:45:59 -08:00
Nicholas Troast
5836501ea4 iio: qcom-tadc: set all threshold comparators directions
The threshold comparators should be set to "<=". Set them.

Change-Id: I45cf6dd7f165d20e2f2dbc6fce7fd321b4ac145a
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:40:07 -08:00
Nicholas Troast
8b06c790dd ARM: dts: msm: enable temperature change IRQ for SMB138X
The temperature change IRQ is used to update the parallel power supply
when the temperature of the connector changes. Enable it.

Change-Id: I26582ffc2c98183c75f5c302386416e840bd6ed0
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:40:07 -08:00
Nicholas Troast
271a607ef0 smb138x-charger: enable connector temp thermal regulation source
The connector thermal regulation source must be enabled in order to
receive temperature-change interrupts. Enable it.

Change-Id: I9bb2d3eaf3bba1b1f40bfd724060f2fa437235b5
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:40:06 -08:00
Nicholas Troast
82ca1cbfca smb138x-charger: configure connector temp thresholds
Add a device tree property qcom,connector-temp-max-mdegc to configure
the connector temperature at which mitigation should start.

This will set the thresholds for when the temperature-change IRQ will
fire.

Change-Id: I47df477b56a6654fbf94b5bb0f7dfdfb80e2f16e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:40:00 -08:00
Nicholas Troast
294cded42d power: supply: qcom: support CONNECTOR_THERM_ZONE property
Use the CONNECTOR_THERM_ZONE property to show the current thermal zone
of the USB connector temperature.

Change-Id: Ia9a85055d68ed08aa9be5b2b66e3e6389ec2e6c3
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:39:39 -08:00
Nicholas Troast
6cce933457 power_supply: add CONNECTOR_THERM_ZONE property
The CONNECTOR_THERM_ZONE property shows which thermal zone the
connector temperature is currently in.

Change-Id: I669344feea13f34f98ee808cae5649766543201a
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:39:39 -08:00
Nicholas Troast
e2cc95080f smb138x-charger: handle temperature change IRQ
The temperature change IRQ is used to notify the CTM driver that the
connector temperature has changed. Enable it.

Change-Id: Ibda88fcac6044c0f9a1db96be70b7e7f99e6fb73
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:39:38 -08:00
Nicholas Troast
6611bb8976 smb138x-charger: configure charger temperature threshold
The charger temperature threshold should be configured for thermal
balancing. Add a device tree property to configure the temperature
threshold. A default value will be used in the absence of this property.

Change-Id: I5d64a8012a9c13c578714d91f1e7e4426cef235a
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 13:39:29 -08:00
Nicholas Troast
abaead7bc3 iio: qcom-tadc: enable hardware conversion triggers
The hardware conversion triggers are required for thermal regulation.
Enable them.

Change-Id: I4172f7ae8df437ba3a49e6abae587298bc11d78b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 09:49:24 -08:00
Nicholas Troast
401dea940e iio: qcom-tadc: add threshold write support
The TADC hardware supports configuring temperature thresholds. Add
support for configuring these thresholds via the IIO framework.

Change-Id: Ib673965eb9b8265874580c8c26f72c85590151c2
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-07 09:49:09 -08:00
Sandeep Panda
41294f7888 ARM: dts: msm: update nt35597 truly panel init sequence
Update the nt35597 truly panel init sequence to reduce the
high latency issue seen across suspend resume cycles on
SDM660 target.

Change-Id: I0d71cebd5571fac293a8b0f401d882342fbd9106
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2017-02-07 16:32:46 +05:30
Linux Build Service Account
2aa89ab3ff Merge "ARM: dts: msm: add sink capabilities to PMI8998 PD PHY" 2017-02-07 02:08:16 -08:00
Linux Build Service Account
674a9404b9 Merge "power: qcom: apm: correct various coding style issues" 2017-02-07 02:08:14 -08:00
Linux Build Service Account
f33991b048 Merge "power: qcom: apm: replace msmtitanium code name with MSM8953" 2017-02-07 02:08:14 -08:00
Linux Build Service Account
25d36cd064 Merge "clk: qcom: Update the dp pixel clock flags" 2017-02-07 02:08:13 -08:00
Linux Build Service Account
ad4234306a Merge "clk: qcom: Update the display port determine rate RCG ops" 2017-02-07 02:08:12 -08:00
Linux Build Service Account
69ca7214e3 Merge "sched: fix argument type in update_task_burst()" 2017-02-07 02:08:11 -08:00
Linux Build Service Account
a2c6971ce7 Merge "sysctl: define upper limit for sched_freq_reporting_policy" 2017-02-07 02:08:10 -08:00
Linux Build Service Account
15d2d5b37f Merge "msm: vidc: Return buffers from driver on streamon failure" 2017-02-07 02:08:09 -08:00
Linux Build Service Account
80a663ad0c Merge "ARM: dts: msm: Define power configuration for msm8996 and msm8998" 2017-02-07 02:08:08 -08:00
Linux Build Service Account
cadd944dcd Merge "msm: vidc: Handle perf mode configuration" 2017-02-07 02:08:07 -08:00
Linux Build Service Account
6260ba37fc Merge "msm_vidc: Clear pendingq when releasing buffers" 2017-02-07 02:08:06 -08:00
Linux Build Service Account
020ec68b48 Merge "ARM: dts: msm: Update Temperature sensor support for sdm630" 2017-02-07 02:08:05 -08:00
Linux Build Service Account
94118f2c4f Merge "ARM: dts: msm: Enable zone dma flag for sdm660/630" 2017-02-07 02:08:00 -08:00
Prashanth Bhatta
44023d5261 icnss: After recovery probe if not done already
Recovery can be initiated any time and can happen during driver
register also. With current implementation, if recovery starts
just before driver register then probe call back will not be
called as FW is not ready yet but probe call back will not be
called even after FW ready indication. Fix this case by calling
probe call back after FW ready if driver is registered but probe
call back is not called during driver register.

CRs-fixed: 2002797
Change-Id: Ia1ea812a1bac3204ad95a62b7c6e55511753f2db
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2017-02-06 23:55:43 -08:00
Sandeep Panda
30b7964f29 ARM: dts: msm: update truly fhd panel init sequence
Update truly FHD panel init sequence to fix corruption
issues. Also enable dfps feature for the video mode panel
on SDM660 target with the updated sequence.

Change-Id: Ife010a0fccefad802877fd50f222587be36d24aa
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2017-02-07 12:23:35 +05:30
Taniya Das
0b6b50f4e4 clk: qcom: Update the dp pixel clock flags
Display port pixel clock source is required to propagate the set rate to
parent, so update the flags for the same. The lowsvs frequency has got
updated to 154MHz, update the same.

Change-Id: I67a5ff3b5fb18c2ce986c5f431f4e41a78fe13a5
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-02-07 12:08:51 +05:30
Taniya Das
038297471d clk: qcom: Update the display port determine rate RCG ops
The display port PLL generates only limited set of frequency combinations.
As fractional dividers are not required to be used, update the RCG ops to
take care of the same.

Change-Id: I601273fee044ef128dbc7c2e23bc2d8ce10e31dc
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-02-07 12:08:50 +05:30
Jack Pham
aacc57aa29 ARM: dts: msm: add sink capabilities to PMI8998 PD PHY
Add a property to the PD PHY peripheral to specify the default
sink capabilities for USB PD as 5V @ 3A, 9V @ 3A and 12V @ 2.25A.
These are common values that should be supported on most boards,
but can be overridden as necessary.

Change-Id: I5ea95d2f0532c59f7d83cb608d939ad28a8bb28e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-06 17:54:42 -08:00
Jack Pham
b76105e359 usb: pd: Read sink capabilities from device tree
Add a device tree property to allow specifying the supported
set of sink capabilities. If not specified, fall back to a
single capability of 5V @ 3A.

Change-Id: I394061d9f3070099e35b651ce4b63a7993343bf1
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-06 17:54:33 -08:00
Harry Yang
caec7b3e2e qcom: qnovo: Fix QNOVO IADC_OFFSET, STRM_CTRL and PPCNT settings
Factory QNOVO IADC OFFSET trim values are wrong polarity. To fix it,
update both (reg QNOVO_IADC_OFFSET_0 and QNOVO_IADC_OFFSET_1) with
their two's compliment, respectively.

Factory setting of QNOVO_STRM_CTRL is also wrong. It controls
polarity of the raw IADC bitstream. To get the correct IADC bitstream
polarity, set 0 to register QNOVO_STRM_CTRL.

Set range [1,255] for QNOVO PPCNT parameter, so the right value can
be written.

Change-Id: I7be948b09c96aae4077a8f010c951c6ebd22a0fa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-06 17:27:59 -08:00
Ingrid Gallardo
7050086662 msm: mdss: fix mdp vbif qos priorities
Current driver read if any nrt vbif is present
and if it is not, the number of qos priority
levels gets wiped out, causing the driver
not to program the vbif qos priority levels for
the rt client. Fix this problem by making sure
that if a vbif nrt does not exist in the platform,
driver only ignore the nrt settings, but keeps
programming the vbif rt.

Change-Id: I2fe5eea5a2ff852b22a59cdb0139b17f3dd7c494
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2017-02-06 16:07:10 -08:00
Linux Build Service Account
01e31721d2 Merge "ASoC: msm: qdsp6v2: Fix range check logic of port index" 2017-02-06 13:21:40 -08:00
Linux Build Service Account
6b46ac2168 Merge "ASoC: wcd-spi: add system suspend and resume functionality" 2017-02-06 13:21:39 -08:00
Linux Build Service Account
f445080d51 Merge "ARM: dts: msm: correct vote on ldo11 for vddio on sdm660" 2017-02-06 13:21:38 -08:00
Linux Build Service Account
c462c1320a Merge "msm: kgsl: Add NULL check for kgsl_midframe before accessing it" 2017-02-06 13:21:37 -08:00
Linux Build Service Account
e4de610870 Merge "ASoC: msm: remove duplicate mixer control" 2017-02-06 13:21:36 -08:00
Linux Build Service Account
dac38dcfe2 Merge "ARM: dts: msm: Enable GPU NAP state on SDM660" 2017-02-06 13:21:35 -08:00
Linux Build Service Account
bdec82ffe9 Merge "ARM: dts: msm: Add msm-core device for sdm630" 2017-02-06 13:21:34 -08:00
Harry Yang
b334b8bf94 ARM: dts: msm: Configure PMI8998 GPIO6 for discharge FET ctrl signal
The QNOVO discharge FET gate is driven by PMI8998 GPIO pin. Configure
GPIO6 to route the internal QNOVO discharge FET control signal to the
pin.

Change-Id: I4dea54c1952d0da21f2bdb8a41b421cab558cafa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-06 12:29:15 -08:00
Linux Build Service Account
20e1ed9259 Merge "ASoC: sdm660-cdc: Add 4-mic DMIC support" 2017-02-06 04:23:53 -08:00
Linux Build Service Account
39dc977caf Merge "ASoC: msm: qdsp6v2: Add mixer controls for PRI/SEC TDM" 2017-02-06 04:23:52 -08:00
Linux Build Service Account
5f0c116c60 Merge "ARM: dts: msm: Add video support for SDM630" 2017-02-06 04:23:51 -08:00
Linux Build Service Account
979e8f753c Merge "ARM: dts: msm: Update venus clock cycles for SDM660" 2017-02-06 04:23:50 -08:00
Linux Build Service Account
c892e8fa89 Merge "cfg80211: export interface stopping function" 2017-02-06 04:23:48 -08:00
Linux Build Service Account
2511ad49fa Merge "spcom: print error message on lock ion failure" 2017-02-06 04:23:48 -08:00
Linux Build Service Account
58666f9527 Merge "defconfig: remove the cti config for perf of sdm660" 2017-02-06 04:23:47 -08:00
Linux Build Service Account
854146dae5 Merge "ARM: dts: msm: enable correct power sequence of smmu and mdss GDSCs" 2017-02-06 04:23:46 -08:00
Linux Build Service Account
46c51a37b4 Merge "msm: mdss: Do not apply bl scale if current back light is zero" 2017-02-06 04:23:45 -08:00