Commit Graph

14 Commits

Author SHA1 Message Date
Anirudh Ghayal
70d3a84c25 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>
Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
2019-12-04 20:57:26 -08:00
Jishnu Prakash
01f0b0740b platform: qpnp-revid: Add REVID support for PM8008, SMB1355 and SMB1390
Add PMIC subtypes for PM8008, SMB1355 and SMB1390.

Change-Id: I03929a86686aa5e3affde1c7a208f29e1639aadd
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
2019-08-27 12:26:41 +05:30
Kiran Gunda
db9d9a9fb3 platform: qpnp-revid: Add REVID support for PM6125
Add PMIC subtype and revid details for PM6125.

Change-Id: Ibd185198ba74e31a0c89f640e7de4fdb94f4157d
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2018-11-23 12:41:34 +05:30
Ashay Jaiswal
737e5c99d1 platform: qpnp-revid: Add REVID support for PM8150A/PME9205
Add PMIC subtype and revid details for PM8150A/PME9205.

Change-Id: I9dc0a90c4da297fdba54bbb653e1565efded4d44
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2018-11-22 05:59:11 -08:00
Anirudh Ghayal
cbaf7cd811 platform: qpnp-revid: Add revision 2.0 for PM8150B
Add 2.0 revision macros for PM8150B to detect
for software workarounds.

Change-Id: I1373eac98ab5556ef079ccdef0bd3097163257bf
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2018-07-18 13:05:09 +05:30
Kiran Gunda
482bb1b850 platform: qpnp-revid: Add REVID support for SM6150
Add PMIC subtype and revid details for SM6150 and PM6150L.

Change-Id: Ic8f6e2fffa84a8be36e4553fbf103675d81cbbec
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2018-06-26 14:54:52 +05:30
Subbaraman Narayanamurthy
f74ebc7f5e platform: qpnp-revid: Add revision 2.0 and 3.0 for PM8150L
PM8150L revision need to be read by some peripheral drivers to
implement SW workarounds for HW specific issues. Add revision 2.0
and 3.0 for PM8150L to support it.

Change-Id: I617557a6cfa5a4bee5a3fc3573aaaf8547eebb36
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2018-05-22 19:39:39 -07:00
David Collins
620a1231a1 ARM: dts: msm: rename PMICs pm855* to be pm8150*
Update file names and file contents to match the new official
PMIC names for the following PMICs:

- PM855  -> PM8150
- PM855B -> PM8150B
- PM855L -> PM8150L
- PM855P -> PM8150C

Change-Id: I167d8b20d40b1dce20c42dbe350c5e74b3ebce16
Signed-off-by: David Collins <collinsd@codeaurora.org>
2018-05-22 14:28:20 -07:00
Fenglin Wu
22ce284fea misc: qpnp-misc: Add a snapshot of QPNP MISC driver
This is the snapshot of QPNP MISC driver taken as of msm-4.9 commit
463d8c28b7c3 ("Merge "pinctrl: msm: Add pinctrl driver support for
msm8909"").

Change-Id: Ibf21355bfa5f959de19b4a028ff3812511573442
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2018-03-15 08:53:47 +08:00
Subbaraman Narayanamurthy
4776f568c4 platform: qpnp-revid: Add revision 1.0 for PM855B/PM855L
PM855B and PM855L revision need to be read by some peripheral
drivers to implement SW workarounds for HW specific issues. Add
revision 1.0 for PM855B and PM855L to support it.

Change-Id: Ibddcffa05e67f041ee8df019a31d4f2bafcc3242
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2018-02-26 14:55:34 -08:00
Kiran Gunda
8829fb0949 platform: qpnp-revid: Add REVID support for PMI632
Add PMIC subtype and revid details for PMI632.

Change-Id: Id357a5c5ed1b619e9e66515c8d81d67b190c8918
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2018-02-09 11:17:28 +05:30
Subbaraman Narayanamurthy
d179e2b9ef qpnp-revid: Add subtypes for PM855/PM855B/PM855L
Add the subtypes for PM855/PM855B/PM855L that can be used by
the peripheral drivers.

Change-Id: I7133160e7198fb2d2c20af6701d4a45bb28b3fbf
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2018-02-09 11:17:27 +05:30
Subbaraman Narayanamurthy
93f71a691c drivers: add a snapshot of various QPNP PMIC peripheral drivers
Add a snapshot of several Qualcomm Technologies, Inc. QPNP PMIC
peripheral drivers that are used for User interface modules like
display panels (LCD, AMOLED) and flash LED. Fixed some checkpatch
warnings reported with error logs containing function names which
are not needed.

This snapshot is taken as of msm-4.9 commit
1c7b30fefbb5 ("Merge "Revert "soc: qcom: pil: Log the TZ NMI
 caused subsystem err fatal""").

Change-Id: Ic14005244d092cc953a1aa5dd94ca90b693b6c4c
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2018-01-10 15:13:27 -08:00
Harry Yang
e798db80bd platform: msm: Add snapshot of qpnp-revid driver
This is a snapshot of qpnp-revid driver as of msm-4.9
'commit fc9ce0e0a100 ("Merge changes  into msm-4.9")'.

Change-Id: I21dfcf42667f172eb5c8bf81d329035e68cd0561
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-11-21 18:44:02 -08:00