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>
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>
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>
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>
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>
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>
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>
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>
Add support to get platform info with respect
to MHI dynamically for sdx20.
Change-Id: Ie38df2d3bbe80856a0b7cd49511ce64cb9aa4ce8
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>