summaryrefslogtreecommitdiff
path: root/include/linux/qpnp (follow)
Commit message (Collapse)AuthorAge
* pwm: qpnp-pwm: add api for synchronous enable of pwmsScott Mertz2022-07-27
| | | | | Change-Id: Ibe4d8f8f8c9dbb89434cd633a049bd9e216af6f4 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
* pwm: qpnp-pwm: add api for synchronous enable of pwmsScott Mertz2019-12-23
| | | | Change-Id: I29d8a2a3dc7adff734bdbbd0e9969323b86e461f
* qpnp: revid: Add support to read TP RevRama Krishna Phani A2017-08-17
| | | | | | | | | | Some PMICs software drivers (PM660) require the TP revision information to implement specific logic. Add an optional property qcom,tp-rev-valid to check if support for TP REV is available in the REVID peripheral for the PMIC. Change-Id: Ia7a344e60bedcc6fb28d9ed9f18dc29a3d7f4fd7 Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
* regulator: qpnp-oledb: Clear SPARE_CTL register during disableKiran Gunda2017-04-19
| | | | | | | | | | OLEDB_SPARE_CTL register bit is set by the PBS during the display enable and is used during the display suspend to trigger the PBS event. Hence, move clearing of the OLEDB_SPARE_CTL register to regulator disable. Also enable the force_pd_ctl only for DRAX-A revisions <=2.0. Change-Id: I339cefc91f94f772bc4f84e85f2471e1a73e4aed Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
* qpnp-revid: add smb1355 definitionsAbhijeet Dharmapurikar2017-04-07
| | | | | | | Add revision definitions for smb1355 i2c charger chip. Change-Id: I60429c6462a2faa70df71d3440afe696a13fcab0 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* include: qpnp-revid: Add PM660L version infoAnirudh Ghayal2017-04-01
| | | | | | | Add PM660L v1.1 version macros. Change-Id: I14c3f2110efc474686df488748b0a671f34ced90 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
* qpnp-revid: add pm660 1.0 and 1.1 definitionsSubbaraman Narayanamurthy2017-03-27
| | | | | | | Add revision definitions for pm660 v1.0 and v1.1. Change-Id: I7aefdbe07d6c01562f9ffb17616419880cea1831 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* qpnp-revid: move pmi8998 and pm660 FAB_ID definitions to qpnp-revid.hSubbaraman Narayanamurthy2017-03-27
| | | | | | | | | | FAB_ID can be used across multiple drivers that gets revid information from qpnp-revid driver. Move the FAB_ID definitions in RR_ADC driver for pmi8998 and pm660 so that they can be reused by other clients. Change-Id: Ia61af56244161c948b0f458a77e699c1cac871b1 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
* soc: qcom: qpnp-pbs: Add PBS driver supportKiran Gunda2017-02-27
| | | | | | | | | The PBS driver helps the client drivers to trigger the PBS event to execute the PBS RAM configuration as requested by the client driver. Change-Id: Ic5d1290ffa0b66ac7a8f68529aafcf0b871ee3e8 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
* input: move qpnp-power-on driver into input/misc directoryDavid Collins2017-01-06
| | | | | | | | | | | | Move the qpnp-power-on driver from the drivers/input directory into the drivers/input/misc directory. This is the standard location where other power key drivers are kept. Also make a small fix to use octal instead of symbolic permissions for the ship_mode_en module parameter. Change-Id: I4d80c2ca0f161bd443dbfe0fcef822459c9fe44b Signed-off-by: David Collins <collinsd@codeaurora.org>
* msm: Rename msmfalcon/apqfalcon to sdm660/sda660Neeraj Upadhyay2016-12-28
| | | | | | | | | Update the code name from msmfalcon/apqfalcon to sdm660/sda660. As part of this, update the filename containing "falcon" and files content containing "falcon". Change-Id: Iec85862251b9e1b4dcc8bdce8b214ce87c0049bc Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
* msm: 8998: Replace cobalt with 8998Runmin Wang2016-11-22
| | | | | | | | | | | Update the code name from msmcobalt to msm8998. As a result, update the filename containing "cobalt" and files content containing "cobalt". CRs-Fixed: 1070840 Change-Id: I2c7b95e3e2a2fec7730724da9eeb86a39a77faf1 Signed-off-by: Runmin Wang <runminw@codeaurora.org> Signed-off-by: Kyle Yan <kyan@codeaurora.org> Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
* platform: qpnp-revid: Add REVID details for PM/PM2FALCONAnirudh Ghayal2016-10-25
| | | | | | | | Add PMIC subtype details for PMFALCON and PM2FALCON. CRs-Fixed: 1082022 Change-Id: Iad90353f66cf5ad7f83e3fc252d82cec45abce60 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
* qpnp: revid: Add support to read FAB ID for PMICOBALTSiddartha Mohanadoss2016-10-07
| | | | | | | | | | PMICOBALT supports reading the FAB ID from the REVID peripheral. Add an optional property qcom,fab-id-valid to check if support for FAB ID is available in the REVID peripheral for the PMIC. Change-Id: If8212618baa7533b008228a71740acf1d6c72a52 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
* Merge "msm: qpnp-haptic: Update function declarations"Linux Build Service Account2016-08-29
|\
| * msm: qpnp-haptic: Update function declarationsClyde Byrd III2016-08-23
| | | | | | | | | | | | | | | | | | | | The header file currently has incorrect function declaration when CONFIG_QPNP_HAPTIC is disabled and set to be compiled or set as a module. Declare the functions static and inline them. CRs-fixed: 1058405 Change-Id: I69b7e5542f561735ed044bdaf49f855b57777c84 Signed-off-by: Clyde Byrd III <cbyrd@codeaurora.org>
* | qcom-charger: smb138x: fix buck damage on v1.1 hardwareAbhijeet Dharmapurikar2016-08-17
|/ | | | | | | | | | | | | | | | Buck damage was observed because the OOB comparator activated when HSFET was on, causing a direct short from VBUS to ground. Fix this on V1.1 by increasing the OOB comparator threshold. On 2.0 this is fixed by ensuring the OOB comparator activates only after HSFET minimum on time. This in turn guarantees that HSFET and LSFET won't be on at the same time. Since the driver needs to detect the version of the smb, make use of the qpnp-revid module. CRs-Fixed: 1055113 Change-Id: I0a7946db2f1bdacf1974fb508da46f2ed4dadadc Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* thermal: qpnp-adc-tm: Update reverse threshold and notificationSiddartha Mohanadoss2016-07-26
| | | | | | | | | | | | | | Add support to scale reverse thresholds on VADC_TM refresh peripheral for voltage measurements such as vbatt, vph_pwr, thermistor channels, PMIC die temperature. VADC_TM refresh uses one interrupt for high and low threshold notification. Update the sequence to check the respective sensors status for high/low threshold crossing for the VADC_TM refresh and notify the clients on a threshold crossing. Change-Id: I070b537e14b505bc247f2f5e6a0e125f1d0fbb81 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
* platform: qpnp-revid: add definitions for pmicobalt versionsAbhijeet Dharmapurikar2016-06-01
| | | | | | | | | | Some workarounds need to be applied only for v1.0 and v1.1 of pmicobalt. For drivers to check and compare the versions, add definitions for pmicobalt versions. CRs-Fixed: 1018090 Change-Id: I3c6c0b470c7d15802c7cf4cb8ced85548dbb81c7 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* thermal: qpnp-adc-tm: Support refreshed BTM driverSiddartha Mohanadoss2016-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | The BTM (Battery temperature module) peripheral driver on the PMIC (Power management IC) supports threshold monitoring and notifies clients when thresholds are crossed. PMCOBALT supports refreshed BTM peripheral register interface and the driver uses compatible property qpnp-adc-tm-hc to distinguish using the refreshed peripheral. The external client interface with the driver remains the same. Updates include handling the interrupt when the thresholds are crossed,programming the threholds and configuring the hardware based on the refreshed design. BTM peripheral needs the VADC_HC peripheral to compute the gain/offset that are used to reverse compute the threhold values to ADC code. Some of the reverse computation API's such as calculating thermistor thresholds require the gain and offset values before computing the ADC code to be programmed. This requires modification to the existing calibration API in the VADC_HC driver to calculate the reference calibration points and store these values for clients to use in the reverse computation Change-Id: I989cfa4f40e7f1671f04dfa9d4c3fe2ccbbc44ab Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
* platform: qpnp-revid: switch to PMCOBALT and PMICOBALT namesDavid Collins2016-04-27
| | | | | | | | Change the PMIC names to use PMCOBALT and PMICOBALT. Change-Id: Ia2c9be4ec36f522968364ebb66190278cfbb9244 CRs-Fixed: 1007932 Signed-off-by: David Collins <collinsd@codeaurora.org>
* platform: qpnp-revid: add support for PM8005David Collins2016-04-12
| | | | | | | | | The subtype register value for PM8005 is 0x18. Add this to the list of known PMICs. Change-Id: I5cd316784f1339975a973e63c962fae6cb9db852 CRs-Fixed: 986619 Signed-off-by: David Collins <collinsd@codeaurora.org>
* qpnp: revid: fix the use of TYPE and SUBTYPEAbhijeet Dharmapurikar2016-03-22
| | | | | | | | | | | | | | The TYPE for a PMIC chip is always 0x51. There is no need to define it for each PMIC chip. Also the SUBTYPE of a PMIC chip doesn't change with versions. Have a single definition of the SUBTYPE per PMIC chip. Also, the driver uses integer indexes to get to the pmic name, instead use the SUBTYPE to index in the pmic names array. Change-Id: Ie1c43f3db0d4a395307253aad347ad93624a1203 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* thermal: qpnp-adc-tm: Enable VADC_TMSiddartha Mohanadoss2016-03-22
| | | | | | | | | | This snapshot is taken as of msm-3.18 commit dbdb6776f (Merge "msm: camera: Add dummy sub module in sensor pipeline") Fixup compilation to support int type for temperature value as part of thermal ops API upgrade. Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
* spmi_devices: change to platform_devicesAbhijeet Dharmapurikar2016-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change to using upstream spmi bus architecture. All the spmi devices, marked by spmi-dev-container, become platform devices. spmi-slave-container devices become spmi_devices each representing a slave. The read/write functions use regmap api's instead of calls to spmi_ext_register_read/write() implemented by the spmi bus. This regmap is instantiated per slave. The spmi bus helper functions like spmi_get_irq get changed to their platform bus equivalents. Change Kconfig files include * Remove dependence on OF_SPMI, MSM_QPNP_INT * There were few places where an earlier commit dcc2aedc80746acee589e4b47d3e6adf5d3ec253 missed adding dependence on SPMI along with MSM_SPMI. Fix them. * Add depends on ARCH_MSM. ARCH_MSM is used for internal builds. Change the nodes in DTSI files to confirm to the modified drivers. Update their binding docs to drop spmi-dev-container and spmi-slave-container; Finally update defconfig to use upstream SPMI. Change-Id: Ic85bff27c09c84b152cb38acbc3cadd05c0ec57a Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* qpnp: Add snapshot of some qpnp, regulator and charger driversAbhijeet Dharmapurikar2016-03-01
| | | | | | | | | This snapshot is taken as of msm-3.18 commit 9da4ddc (Merge "clk: msm: clock-gcc: Associate gfx rail voting with gfx3d branch") Change-Id: Idd2f467f1f1863a156d1757589dfe78158f0e43f Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
* pwm: qpnp: Add dummy interface functionsIvan T. Ivanov2016-03-01
Enable client drivers, which are using these non-standard PWM API's (FB_MSM_MDSS), to be compiled when QPNP PWM is not enabled. Change-Id: Id7add4009591ec4f3bd095b989aa7f8c0169dfa4 Signed-off-by: Ivan T. Ivanov <iivano@codeaurora.org> Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>