Commit Graph

1115834 Commits

Author SHA1 Message Date
qctecmdr
fa073dcc43 Merge "soc: qcom: Add snapshot of ramdump driver" 2022-09-15 16:17:01 -07:00
qctecmdr
2bd9e0a08f Merge "soc: qcom: socinfo: correct partid conditional check" 2022-09-15 14:55:18 -07:00
qctecmdr
633ded3358 Merge "gunyah: gh_rm_drv: Add RM interface for minidump support" 2022-09-15 13:28:34 -07:00
qctecmdr
82fe4ec23e Merge "coresight-tmc: Add usb support to coresight tmc etr" 2022-09-15 13:28:33 -07:00
qctecmdr
57624c29c3 Merge "input: qcom-hv-haptics: update configuration for PATx_MEM mode" 2022-09-15 07:27:55 -07:00
qctecmdr
e9121ba6f6 Merge "input: qcom-hv-haptics: Toggle EN_CTL for PM5100 v1.0" 2022-09-15 06:04:33 -07:00
qctecmdr
1b01aeed5c Merge "input: qcom-hv-haptics: move predefined effect preload logging" 2022-09-15 04:34:28 -07:00
qctecmdr
51372d1749 Merge "build.targets: Add pineapple and kkp vm to build target" 2022-09-14 21:52:33 -07:00
qctecmdr
009132fa2f Merge "soc: qcom: socinfo: Add revision 16 support in socinfo structure" 2022-09-14 19:44:36 -07:00
qctecmdr
404319eba7 Merge "dmaengine: msm_gpi: add GPI dmaengine driver snapshot for pineapple" 2022-09-14 19:44:35 -07:00
Gokul krishna Krishnakumar
7d64ef7bbf soc: qcom: socinfo: correct partid conditional check
Current code can end up accessing SOCINFO_PART_MAX_PARTTYPE
for partid in certain scenarios which isn't desired, correct the check.

Change-Id: Ida1ff23993d7dad93e5dd0635d3bfecac4c35201
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 20:07:13 -07:00
Lynus Vaz
2a7bfbda9f soc: qcom: Add information for more feature codes
Add the macros and strings to recognize more feature codes.

Change-Id: I0a9a0b950bd951e350bbc7e34d78e257da916263
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 15:15:59 -07:00
Prasad Sodagudi
f8c23980dd soc: qcom: provide apis for pcode and feature string
Socinfo need to provide pcode and feature string information
to client drivers.

Change-Id: I7a9ce09803ea855a94591ef85003a67b81a70230
Signed-off-by: Prasad Sodagudi <quic_psodagud@quicinc.com>
[quic_gurus@quicinc.com: Fixed merge conflicts]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 15:15:58 -07:00
Mukesh Ojha
8c66fcf954 soc: qcom: socinfo: Add sku sysfs support
Add the support to get the sku information from userspace.

Change-Id: I39b60fcc430308cd75e67fa400ad9515b5ad4b65
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Prasad Sodagudi <quic_psodagud@quicinc.com>
[quic_gurus@quicinc.com: Fixed trivial merge conflicts]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 15:15:54 -07:00
Mukesh Ojha
944bd60020 soc: qcom: socinfo: Add revision 16 support in socinfo structure
Below are some new fields are getting updated in socinfo
structure from bootloader under revision 16.
e.g

esku;
nproduct_code;
npartnamemap_offset;
nnum_partname_mapping;

Add the change in socinfo driver to accommodate this.

Change-Id: I11b5182c15af32da61cddbf4bb45d5aef390135a
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Prasad Sodagudi <quic_psodagud@quicinc.com>
[quic_gurus@quicinc.com: Added missing break and fallthrough]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 13:56:34 -07:00
Yogesh Lal
e834f9391e soc: qcom: Add snapshot of ramdump driver
Add snapshot of ramdump driver as of msm-5.10 commit <3d260f03b417> ("Merge
"remoteproc: qcom: common: Panic if recovery fails"").

Change-Id: I4f70da93242911a18a3f64906dfab95c4ba89308
Signed-off-by: Yogesh Lal <ylal@codeaurora.org>
[quic_gurus@quicinc.com: Merge conflicts in Kconfig & Makefile, GPL]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-13 11:50:31 -07:00
Anjelique Melendez
64dad0f665 defconfig: pineapple-gki: Enable several PMIC drivers
Enable PMIC PON, PON Log, GPIO, SPMI, SDAM, Flash, Tri LED, PWM, Haptics,
RTC, Reboot Mode, and Temp Alarm drivers for pineapple.

Change-Id: I7714eb3daa2f226a3713a86bf5b3e72ed747144a
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2022-09-13 11:49:21 -07:00
Guru Das Srinagesh
a7aee12b9e pineapple-gki: Enable CONFIG_QCOM_PDR_HELPERS
Enable CONFIG_QCOM_PDR_HELPERS on pineapple platforms.

Change-Id: I2fe4719d2b9733a0715073f235bad1d0df07f2f7
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-12 17:50:33 -07:00
Prasad Sodagudi
47013add94 soc: qcom: Add help text for QCOM_PDR_HELPERS config
Add help text for QCOM_PDR_HELPERS config.

Change-Id: I54b7882297966d59ca0246ebddda7a5fd7787e0b
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2022-09-12 17:50:17 -07:00
Fenglin Wu
531d907590 input: qcom-hv-haptics: update configuration for PATx_MEM mode
Disable auto resonance explicitly for PATx_MEM mode play according to HW
recommendation. Also, clear MEM_PAT_ACCESS_BIT after written PATx_MEM
samples and it reduces device quiescent current in power off state.

Change-Id: Iafaca15482bf1a03a19a49ee4d5e30faeb2fdeeb
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2022-09-13 08:37:06 +08:00
Anjelique Melendez
d6bb90e31c input: qcom-hv-haptics: Update autoresonance registers for F0 calibration
Update the register configuration for F0 detection/calibration
based on hardware recommendation.

Change-Id: I423ed84bf10508dc6ded2bc4248ac9ce396ce8cb
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2022-09-13 08:36:37 +08:00
Hui Liu
cbda83d0be input: qcom-hv-haptics: move predefined effect preload logging
Move the logging after calculating Vmax so that the right Vmax value
can be printed out.

Change-Id: I8d916a13685c8d85f1363e7a8bc766aeb4d5e2ba
Signed-off-by: Hui Liu <quic_huliu@quicinc.com>
2022-09-13 08:36:11 +08:00
Umang Chheda
468928c595 input: qcom-hv-haptics: Disable INT and module in shutdown cb
On SKUs with MSM + Co-proc there can be possiblity that
because of Interrupts enabled from MSM side (SPMI) the exit
of LPM might not work because PBS gets locked because of
which the sequence to exit LPM might not get triggered.

Add support for shutdown callback and disable INT in shutdown
cb to ensure that INT are disabled before entering LPM.

Change-Id: I29bafb72bef3a5591839015f2a598fa4ad85072a
Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
2022-09-13 08:35:21 +08:00
Shyam Kumar Thella
8928f602e0 input: qcom-hv-haptics: Toggle EN_CTL for PM5100 v1.0
Toggle Haptics EN_CTL as workaround for HW issue in PM5100 v1.0.

Change-Id: I83e82f261d4185132bb5a721600950f90f71db3f
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
2022-09-13 08:33:27 +08:00
Hui Liu
b17d684b3b input: qcom-hv-haptics: add support for primitive effect
Primitive effect is very similar to predefined effect
which has been supported and each primitive effect has
an unique id defined in "qcom,primitive-id" devicetree
property. Add support for it.

Change-Id: I4a03dd09e97f1b7988d4ab87e1cf78f075b05101
Signed-off-by: Hui Liu <quic_huliu@quicinc.com>
2022-09-13 08:32:53 +08:00
Kiran Gunda
f6c37c0958 input: qcom-hv-haptics: Add support for DeepSleep/Hibernate
Free/request the fifo empty interrupt during the DeepSleep and
hibernate entry or exit respectively. Also restore the hardware
initial configuration done during the boot.

Change-Id: I6b0d4838a6d1c48869ca760d4e93788440983b3c
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2022-09-13 08:32:29 +08:00
Kiran Gunda
ef97827703 input: qcom-hv-haptics: Enable boot-up F0 calibration for PM5100
In the boot up LRA frequency calibration sequence, CAL_TLRA_CL_STS
is read out and stored in SDAM module registers by the bootloader.
Later, the HLOS haptics driver can read it from there and use it
for calculating LRA frequency. Enable the same for PM5100 PMIC.

Change-Id: Ia5e307e5d536a42b29ab05e9888640121188312c
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2022-09-13 08:32:00 +08:00
Fenglin Wu
8afead556c input: qcom-hv-haptics: move predefined effect preload logging
Move the logging after calculating Vmax so that the right Vmax value
can be printed out.

CRs-Fixed: 3227145
Change-Id: I17b64f9e3a230058b7e30ca4c30de4d3000d1f87
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2022-09-13 08:31:34 +08:00
Fenglin Wu
65e7bb2861 input: qcom-hv-haptics: ignore disabling hBoost when it's in open-loop
When hBoost is working in open-loop mode, it's supposed to be used by
other modules like the charger firmware and it shouldn't be turned off
by haptics driver. Ignore turning on and off hBoost in such case.

Change-Id: Id3eb2c37cf7316b4617872614cc2a7adc50d12d8
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
2022-09-13 08:31:09 +08:00
Subbaraman Narayanamurthy
535559a221 input: misc: qcom-hv-haptics: Fix print format identifier
Print in hex when a read/write to an address fails.

Change-Id: I35dddaa33d18f72079ec3d814a36fd304cd0f331
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-09-13 08:30:34 +08:00
Anil Veshala Veshala
5f7523ae5f dmaengine: msm_gpi: add GPI dmaengine driver snapshot for pineapple
This is a snapshot of gpi dmaengine driver and associated files
as of msm-5.15 'commit 8d5f6e9fa5567 ("dmaengine: msm_gpi: add
GPI dmaengine driver snapshot for kalama")'.

Change-Id: I98aed9e09d927225776d9f4533ca74a7cf7c078b
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-09-12 09:59:26 -07:00
Peng Yang
f90d643b47 build.targets: Add pineapple and kkp vm to build target
Add pineapple and kkp vm to build target.

Change-Id: I28a982b9c561c7278645f9b2ead84a9c4c38b4ae
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-09-12 07:41:05 -07:00
qctecmdr
21315ac40e Merge "android: abi_gki_aarch64_qcom: Add device_match_of_node" 2022-09-12 01:03:17 -07:00
qctecmdr
4ac589aaf7 Merge "pineapple-gki: Increase RPROC notif timeouts and enable panic" 2022-09-09 17:51:09 -07:00
Guru Das Srinagesh
899a473740 android: abi_gki_aarch64_qcom: Add device_match_of_node
Add device_match_of_node and also make sure that the list is
alphabetically sorted.

Change-Id: I23209f86e191d14d7c48cea7d57349b3d441727c
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-09 16:31:09 -07:00
Guru Das Srinagesh
33e230f2ab include: gh_mem_notifier: Add __maybe_unused attribute
Some external drivers use gh_mem_notifier_register() but not
gh_mem_notifier_unregister(). This leads to an unused function warning
during compilation, which then manifests as an error when -Werror is
enabled.

Add compiler attribute __maybe_unused to both functions to fix the above
error.

Change-Id: I42585f89c6aa4148ef1d1f72d3a8581e23e08110
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-09 16:31:00 -07:00
qctecmdr
ee12e0e21d Merge "build: config: Adding build configs for pineapple oemvm" 2022-09-09 16:27:19 -07:00
qctecmdr
476790dd14 Merge "virtio/virtio_mem: Port qti_virtio_mem UAPI header from msm-5.15" 2022-09-09 16:27:17 -07:00
Jeevan Shriram
4319fa9335 include: linux: Update usecase id for LLCC_VIDVSP
Update Usecase id for LLCC_VIDVSP as per hardware settings.

Change-Id: I92493bf7cfb8625748b22b111995cabc71feb1a1
Signed-off-by: Jeevan Shriram <quic_jshriram@quicinc.com>
2022-09-09 12:52:45 -07:00
qctecmdr
4e44fda12d Merge "soc: qcom: minidump_log: Add task info collection" 2022-09-09 03:33:21 -07:00
qctecmdr
9bdd6a7414 Merge "coresight: byte-cntr: Add support for streaming interface for ETR" 2022-09-09 03:33:21 -07:00
qctecmdr
7553dc96d4 Merge "gunyah: gh_rm_drv: Add error return if RM device is not ready" 2022-09-09 02:00:08 -07:00
qctecmdr
e16cb9d685 Merge "soc: qcom: minidump_log: Fix compile issue of module minidump" 2022-09-09 02:00:06 -07:00
qctecmdr
473620f146 Merge "modules.list.msm.pineapple: Add DCC and memory dump modules" 2022-09-08 22:35:41 -07:00
qctecmdr
59f49aa10b Merge "soc: qcom: Introduce null functions" 2022-09-08 22:35:38 -07:00
qctecmdr
d3b95ce5d9 Merge "gunyah: msgq: Add new msgq label for OEMVM vcpu test" 2022-09-08 21:13:26 -07:00
qctecmdr
7bd399d4d9 Merge "iio: qcom-spmi-adc5-gen3: update API for immediate conversions" 2022-09-08 19:53:15 -07:00
qctecmdr
5de96585ba Merge "config: Add build config for kkp oemvm" 2022-09-08 19:53:15 -07:00
qctecmdr
536e734464 Merge "defconfig: pineapple-gki: Enable DCC and memory dump V2 driver" 2022-09-08 19:53:14 -07:00
Guru Das Srinagesh
183b2fa789 pineapple-gki: Increase RPROC notif timeouts and enable panic
Enable panicking upon notification timeout and also increase timeout
values to 20 s from the default 10 s.

Change-Id: Ie777d2cc7a2cd5c5ae91a49a6601ab5482fd8758
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-08 17:05:02 -07:00