Commit Graph

29305 Commits

Author SHA1 Message Date
Linux Build Service Account
29b5b88785 Merge "iommu: arm-smmu: Add hibernation support for slave-side secure devices" 2018-05-08 21:03:53 -07:00
Linux Build Service Account
a5c3d38a84 Merge "thermal: qpnp-adc-tm: Update adc_tm register offsets for PMIC5" 2018-05-08 21:03:40 -07:00
Jishnu Prakash
d09bc698d8 thermal: qpnp-adc-tm: Update adc_tm register offsets for PMIC5
Few adc_tm registers have different offsets on PMIC5 compared
to PMIC4. Update logic to account for PMIC5 registers.

Change-Id: Icd55ceb9d358facc2e815541effe35a3e43b486c
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2018-05-07 09:49:14 +05:30
Sunil Paidimarri
c822ad53b1 Documentation: Add doc for smmu EMAC support in sdxpoorwills
Add DT bindings documentation for EMAC smmu support.

Change-Id: I37fea9e7bb898dcb3395975ed19fd86ed96ff2eb
CRs-Fixed: 2236527
Acked-by: Nisha Menon <nmenon@qti.qualcomm.com>
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2018-05-05 11:35:04 -07:00
Linux Build Service Account
470b970828 Merge "msm: mdss: dsi: add support to set state for mode switch commands" 2018-05-04 05:21:54 -07:00
Linux Build Service Account
7a8bd77820 Merge "msm: mdss: add backlight gpio invert support for display" 2018-05-04 05:21:50 -07:00
Linux Build Service Account
83a1f7abdd Merge "msm: mdss: add support to control dcs brightness with HS state" 2018-05-04 05:21:49 -07:00
Linux Build Service Account
a2549fdc6f Merge "msm: kgsl: Add multiple fuses based speed bin" 2018-05-04 05:21:38 -07:00
Linux Build Service Account
f6e5aa3233 Merge "power: smb1360: Add snapshot of smb1360 charger" 2018-05-03 19:59:31 -07:00
Linux Build Service Account
806adab08e Merge "power: smb5: add support to read USB voltage and current" 2018-05-03 19:59:21 -07:00
Linux Build Service Account
85b7ad65fd Merge "ARM: dts: msm: configure dma scheduling line for nt35597 truly panel" 2018-05-03 19:58:51 -07:00
Linux Build Service Account
46838cf1ad Merge "Merge android-4.9.91 (bb94f9d) into msm-4.9" 2018-05-03 09:02:12 -07:00
Linux Build Service Account
78667dedc6 Merge "Merge android-4.9.90 (dd1e37e) into msm-4.9" 2018-05-03 09:02:10 -07:00
Sunil Khatri
93c50b8f8e msm: kgsl: Add multiple fuses based speed bin
Add multiple fuses based speed bin. This enables
support for different GPU Fmax frequencies based
on speed bin value.

Change-Id: I9799111c2ccdafee405a4612c342e809720eb612
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2018-05-03 19:40:50 +05:30
Arulpandiyan Vadivel
ca42345027 power: smb1360: Add snapshot of smb1360 charger
Initial snapshot of smb1360 driver is taken from msm-3.18
kernel version @ commit f8b6819d0432d6 ("msm: ipa: Fix to
handle NULL pointer dereference")

Add PMIC charger and fuel gauge drivers to msm-4.9. The power
directory structure has changed in kernel version 4.9. Align
smb1360 driver from msm-3.18 kernel with new directory structure.

Since USB driver uses the extcon framework for communication,
extcon support and USB power supply support is added.

Change-Id: Iaef0ef4ac9a48b09dde8bd9067ed0495f20e00d8
Signed-off-by: Arulpandiyan Vadivel <avadiv@codeaurora.org>
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2018-05-02 17:24:53 +05:30
Arulpandiyan Vadivel
55e32400e4 power: charger: Add snapshot of qpnp-linear-charger
Initial snapshot of qpnp-linear-charger driver is taken from msm-3.18
kernel version @ commit f8b6819d0432d6 ("msm: ipa: Fix to handle
NULL pointer dereference")

Change spmi driver framework to platform driver. Add support to access
spmi registers via register mapping. Also add USB power supply and
extcon support to notify usb insertion/removal.

Change-Id: I8a6ee04540b99c5abd958a7bcbc77c3e7da4d2e5
Signed-off-by: Arulpandiyan Vadivel <avadiv@codeaurora.org>
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2018-05-02 17:21:45 +05:30
Arulpandiyan Vadivel
cec0f9c0b7 power: vm-bms: Add snapshot of qpnp-vm-bms driver
Initial snapshot of vm-bms device driver is taken from msm-3.18
kernel version @ commit f8b6819d0432d6 ("msm: ipa: Fix to
handle NULL pointer dereference")

Add vm-bms, batterydata-interface, battery-lib support
Change spmi driver framework to platform driver framework in 4.9
kernel. Add support to access spmi register via regmap.

Change-Id: Ic2133fcf8dc73e6c1327a8583ccdaa2f5695cfbe
Signed-off-by: Arulpandiyan Vadivel <avadiv@codeaurora.org>
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2018-05-02 17:19:36 +05:30
Ashay Jaiswal
20688264bd power: smb5: add support to read USB voltage and current
Add support to read USB voltage and current via ADC channels,
this is used by user-space daemon for VBUS optimisation.

Change-Id: I2e0a7455295958d3c55acdb3f657213343fe3598
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2018-05-02 14:08:18 +05:30
Patrick Daly
addf1f836f iommu: arm-smmu: Add hibernation support for slave-side secure devices
Some targets restrict HLOS access to certain iommu context banks.
Previously these context banks were indicated by the client driver by
setting the IOMMU_DOMAIN_ATTR_SECURE_VMID property. However, the iommu
driver may require this knowledge at probe time, before all client drivers
are available. Therfore pass this information as a devicetree flag.

Additionally, add ops for hibernation.

Change-Id: I2abf9beaa0d17315f0b9399889cd89f0afd8bb7e
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2018-05-01 17:02:49 -07:00
Padmanabhan Komanduru
c7438af682 clk: msm: mdss: add support for DSI 12nm PLL driver
Add change to support DSI PLL 12nm driver for SDM439 target. DSI PLL
is needed to drive the DSI host controller and DSI PHY interface.

Change-Id: I955db504f57c32f5f16a86f586f44c894d893feb
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2018-04-30 08:56:16 +05:30
Linux Build Service Account
08530a3ae5 Merge "usb: dwc3: Pass USB connector type info from device tree" 2018-04-27 10:24:52 -07:00
Linux Build Service Account
8d7a4b59d9 Merge "arm: msm: ipa: Add support to get MHI config dynamically" 2018-04-26 11:04:05 -07:00
Linux Build Service Account
08ae4390f1 Merge "ARM: dts: msm: enable navigation virutal keys for 8917 QRD" 2018-04-26 11:03:56 -07:00
Linux Build Service Account
94d9d19f4a Merge "defconfig: Enable MPM support for msm8909" 2018-04-26 11:03:45 -07:00
Linux Build Service Account
2bb367d37f Merge "ARM: dts: msm: Add support for clocks for SDM439/429" 2018-04-26 02:41:56 -07:00
Linux Build Service Account
9c2ff6c2f0 Merge "power: qpnp-smbcharger: Add POWER_SUPPLY_PROP_MAX_PULSE_ALLOWED property" 2018-04-26 02:41:48 -07:00
Mohammed Javid
73cd4d290b arm: msm: ipa: Add support to get MHI config dynamically
Add support to get platform info with respect
to MHI dynamically for sdx20.

Change-Id: Ie38df2d3bbe80856a0b7cd49511ce64cb9aa4ce8
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-04-26 13:19:51 +05:30
Sandeep Panda
402506b6bc drm/msm/dsi-staging: add support for custom cmd dma scheduling
Some panels take more time to post-process the video data sent
from dsi host and hence BTA acknowledgment may take more than
one line time. This will cause dsi host to miss out sync packets
and which in turn will manifest as corruption on display panel.
To fix this, dsi host should send the BTA request after some
specified lines, once vertical active area ends. This change
adds support for configuring the custom line number at which
command dma needs to be scheduled to avoid such issues.

Change-Id: I3c83310dd755881c78fed9486f81f71d1e29916e
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2018-04-26 11:55:28 +05:30
Raja Mallik
452ce8cb3c drivers: irqchip: qcom: Add MSM8909 pin data for MPM
Add MPM pin interrupt mapping for msm8909 chip.

Change-Id: I6b7c467bc3ea7216abb0afc157440e005a3bdfa5
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>
2018-04-25 22:28:14 -07:00
Mohan Pallaka
186e942a25 input: gen_vkeys: squash commit from 3.14-kernel
Squash and apply the following changes taken from the msm-3.14
kernel branch as of msm-3.14
commit 8139d0b4e7a6d ("ARM: dts: msm: Set flag to manage clks")

c24a3df input: gen_vkeys: Make y_offset an optional property
bb2ac18 vkeys: gen_vkeys: Add key position offset
1a6d213 input: Add support for virtual key generation

Fix checkpatch errors.

Change-Id: Ie0e14d201a42632af57ff23dc85cec8881125e5a
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
2018-04-25 22:14:27 -07:00
Linux Build Service Account
cd4a99b679 Merge "ARM: dts: msm: Add audio support for QCS605 lc variant" 2018-04-24 23:37:29 -07:00
Linux Build Service Account
33529763be Merge "ARM: dts: msm: Add devicetree files for sdxpoorwills ATP" 2018-04-24 23:37:08 -07:00
Linux Build Service Account
10b948a845 Merge "clk: msm: gcc: add support for MDSS clocks for SDM439" 2018-04-24 23:37:07 -07:00
Linux Build Service Account
2bc19c821a Merge "drivers: soc: qcom: spm: Add support for 16bit vlevel" 2018-04-24 23:37:04 -07:00
Hemant Kumar
5657f9ddd2 usb: dwc3: Pass USB connector type info from device tree
Currently driver is using power supply property to query
USB connector type. But on some targets power supply property
may not be available. Hence pass the connector type info from
HW platform specific device tree file using qcom,connector-type-uAB
property.

Change-Id: I17e18a12cb9520e36d02b207cffcd26a85f84f88
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2018-04-24 11:50:29 -07:00
Linux Build Service Account
3cea09465b Merge "power: qpnp-qg: Add a workaround to force recharge" 2018-04-24 11:05:38 -07:00
Linux Build Service Account
a63d83c1a9 Merge "msm: ADSPRPC: Root process creation in Sensors PD" 2018-04-24 11:05:30 -07:00
Odelu Kukatla
678382be26 clk: msm: gcc: Add support for clocks for SDM439
Add a new compatible flag for sdm439 and update
the required clock lookup table accordingly.
Also add support for cpu quad core configuration.

Change-Id: Ie12c98e0a939992b975de0db79b20798ce12371b
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2018-04-24 04:07:42 -07:00
Linux Build Service Account
cb1f2ba4b2 Merge "ARM: dts: msm: Add DT support for SDA450" 2018-04-23 14:46:21 -07:00
Anirudh Ghayal
88c91971fe power: qpnp-smbcharger: Add POWER_SUPPLY_PROP_MAX_PULSE_ALLOWED property
Use this property to specify the maximum pulses which can be allowed
during HVDCP3. The DT property 'qcom,max-pulse-allowed' can be
specified to initialize this value.

CRs-Fixed: 1047232
Change-Id: I3d1aa92b16d2103b7f3df88ca948423c202b17ef
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Signed-off-by: Vamshi Krishna B V <vbv@codeaurora.org>
2018-04-23 20:58:07 +05:30
Maulik Shah
addea89dc7 drivers: soc: qcom: spm: Add support for 16bit vlevel
SPM regulator driver can send 16bit voltage levels to be sent to
pmic arbiter for certain PMICs. SAW VCTL can have max pmic data
width as 8bit.

Update spm driver to send lower 8bit of voltage level first and
then send upper 8bit to PVC port. Voltage change happens when
upper 8bit is written to PMIC registers.

Change-Id: Iff1d1976adfe75058f6c64d4212c78d88422278c
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>
2018-04-23 05:00:39 -07:00
Padmanabhan Komanduru
1853d7fd71 clk: msm: gcc: add support for MDSS clocks for SDM439
Add a new compatible flag for sdm439/sdm429 for support of
MDSS clocks required for the functionality of MDSSS DSI PLL
and MDP/rotator vote clocks.

Change-Id: Ib32c901983687e33894a78da9da0dde479582f1d
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2018-04-23 17:08:27 +05:30
Maria Yu
8ccdd081ac ARM: dts: msm: Add DT support for SDA450
Add device tree support for SDA450 mtp and cdp
board support with PMI8950 and PMI632.

Change-Id: Ie121da2de9b609f63892846395f15f59653bfd72
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
2018-04-23 14:03:37 +08:00
Anirudh Ghayal
4dc8b708c9 input: qpnp-power-on: Add support for TWM config
TWM (traditional watch mode) is a low-power mode
configuration on the BG platform. Add a notification
callback to be notified of an entry into this mode.

Add logic to skip the PS_HOLD reset configuration and
initiate the PBS trigger if TWM mode is enabled.
The PBS trigger configures the PMIC for TWM entry.

Change-Id: I31a48c8d2506a668b18737ec3da827cff27b830d
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2018-04-22 20:17:16 -07:00
Anirudh Ghayal
fa0300c5e0 misc: qpnp-misc: Add support for TWM mode
TWM (Traditional watch mode) is a low power mode supported
on the BG platform. PMIC is  configured differently
while entering into TWM mode.

Add a sysfs node to -

1. Allow the BG daemon to enable/disable TWM mode.

echo 1 > /sys/class/pmic_twm/twm_enable --> Enable TWM mode
echo 0 > /sys/class/pmic_twm/twm_enable --> Clear TWM mode

2. Allow the BG daemon to check the TWM_EXIT state.

cat /sys/class/pmic_twm/twm_exit
Value of "1" indicates exit from TWM state

Also, add a notifier to notify other modules of the TWM enable
configuration.

Change-Id: Ide2f56a80d7b21d3def6a640db71512c20d30015
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2018-04-22 20:16:34 -07:00
Linux Build Service Account
f7e700eebd Merge "msm: crypto: Add support for map and unmap ioctls" 2018-04-21 14:34:18 -07:00
Linux Build Service Account
a90764e625 Merge "power: qpnp-fg-gen3: add support to register with thermal core framework" 2018-04-21 00:34:39 -07:00
Linux Build Service Account
207aa6b63c Merge "leds: qti-tri-led: Add breath feature for tri-led" 2018-04-21 00:34:14 -07:00
Anirudh Ghayal
20386de84e power: qpnp-qg: Update SOC handling at cold temperature
Update the following at cold-

1. VBAT EMPTY and LOW threshold
2. Minimum delta SOC threshold

Change-Id: I42bdc8dbc515b997e03e7887f7b9541e68413eed
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2018-04-21 10:41:14 +05:30
Yahui Wang
0c1acb02b0 msm: mdss: add support to control dcs brightness with HS state
Some special panels may need high speed mode to send brightness
to avoid panel issues, adding this change can make a better user
experience using these panels.

Change-Id: Id2cd4b3652892cc7677d7c6863a67d93e24d980f
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2018-04-20 03:11:55 -07:00