Add snapshot of clock handles for CAMCC/DISPCC/GCC/GPUCC/VIDEOCC/TCSRCC
on NEO so that clients can request on the clock ids,from msm-5.10 branch
commit e42f1c7f152e ("bindings: clock: qcom: Add support for
clock IDs for Neo").
Change-Id: If1ed852cb3e7cf91da1953beaaeeda309288ab14
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
Added pinctrl module for neo platform in first stage module list.
Change-Id: I9131e3a89ef905d283e2bcc3fecd9d479c6fb693
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
Enable TLMM pinctrl driver for neo platform in GKI build.
Change-Id: I5e9a2427e7ab96e7a56da6c0f8fbe80796d8b1d1
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
Removed support of reading gpio read using trace hooks in Neo
pinctrl driver, as it is not used anymore in Kernel Platform 3.0.
Change-Id: If367c8e98a51aaa2c8ca52425b2b2da80177c059
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
Neo pinctrl driver snapshot from msm-5.10 branch
commit 1c8fbf07237c ("drivers: pinctrl: qcom: Add gpio to pdc
mapping for neo").
Change-Id: I944d2ae61c2f80501442e2ca8d9229c4229c9a2d
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
Remove IRQF_ONESHOT flag as it disables incoming interrupts
while running threaded irq.
Change-Id: Ieb045e8aee3fc3b179fc7e7517064ba1c76a4483
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
Implement a new operation qcom_hwspinlock_bust() which
can be invoked to bust any locks that are in use when
a remoteproc is stopped or crashed.
Change-Id: I0486d5345a47007f254f17c4b88f802a6c962e3a
Signed-off-by: Richard Maina <quic_rmaina@quicinc.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Link: https://lore.kernel.org/r/20240529-hwspinlock-bust-v3-1-c8b924ffa5a2@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Git-commit: 73100deb59c3892e280234fcc0171a5376c71788
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_deesin@quicinc.com: Adding bust api in core hwspinlock module
is breaking KMI, so exporting bust function from qcom hwspilock module
to avoid dependency on core hwspinlock function]
Signed-off-by: Deepak Kumar Singh <quic_deesin@quicinc.com>
cpu_pm_notifier is acquiring the spinlock before it is initialized,
leading to spinlock with bad magic,
hence moving the initialization prior to that.
Change-Id: Ibae81d3bc2338dd0be5f2bc509cec559b121fc73
Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
Currently, wireless power supply (wls_psy) is registered
by default to support wireless charging. However,
on some boards, wireless charging is not supported.
When the properties under wls_psy are read from the
userspace or a client, it times out and prints error
logs unnecessarily leading to a poor user experience.
Hence, add a DT property "qcom,wireless-charging-not-supported"
which if specified wouldn't register the wls_psy.
Change-Id: If4ed36957fa8425018f80dfa43d82ee746a45566
Signed-off-by: Kamal Wadhwa <quic_kamalw@quicinc.com>
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
This API is only meant for getting Camera RSC device,
hence preventing any other client to use it for any other device.
Change-Id: I6b1cef1cd98eb1d0c5fa92b67a2af141022ec7a3
Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
The power needs to be switched ON before operating over the phy,
in case set_suspend is not called, the power is not ON.
Without dp dm and extcon, there might be cases when qusb_init
gets called without power ON.
Perform power on specifically during qusb init and maintain the
reference count by checking newly introduced flags power_enabled/
clk_enabled.
Change-Id: I529d619359f7320f12ce747fc0f24421f65a9973
Signed-off-by: Jayasri Bhattacharyya <quic_jbhattac@quicinc.com>
lts tag release.6.1.75+ introduced
the dependency for DWMAC_LOONGSON on MACH_LOONGSON64
hence this configuration brought up the difference between
gki and msm sdmsteppeauto configs,since STMMAC is being enabled
for sdmsteppeauto.
For mobile targets these all net drivers are disabled
so removed this config as it is not NA for auto targets also.
Change-Id: I73ec8ba66fd005debc4f675a7a1015fa02442efc
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
Add memory barrier for data syncronization before reading the TCSR
config register. The value written at Sub System is mismatching the
read back value at APPS.
Change-Id: I74862f6d8aa54a67988eca2fb9569e23cc89844a
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
To ensure the configs is optimized and workable for LV booting,
we need to refine the configs:
1. remove SWIOTLB_NONLINEAR and VIRTIO_MMIO_SWIOTLB as bounce
buffers are no longer used for LV GVM Virtio device.
2. disable ZONE_DMA, otherwise general SWIOTLB init will fail,
which causes kernel panic.
3. Set all modules as in-built.
Change-Id: If4fbf5ecf7391bc16e3d75b803444a67cc884e43
Signed-off-by: Wei Liu <quic_wliu8@quicinc.com>
Currently, both remoteproc and wdog driver panic handler has the
same priority due to which both gets registered one after the other.
Having the same priority breaks WDOG panic handler which should be
called as early as possible otherwise we will the devices gets
stuck if any of previous handlers gets stuck due to some reason
like sleep while atomic etc.,
Fix this by correcting the priorities as
dload_mode => INT_MAX
wdog => INT_MAX - 1
rproc => INT_MAX - 2
minidump => INT_MAX - 3
va-minidump => INT_MAX - 4, INT_MAX - 5 .
Change-Id: I79e454c7c671bbc83e5fac86e16717c3e09a06ce
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
When FMD mode is enabled, deassert the perst signal if perst is already
in asserted state and do not allow it to be reasserted.
Change-Id: I45105f189214f683d718ab96a1db30cd2bc80667
Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
Make HW strobe signal level triggered instead of edge triggered for
external LEDs based on HW side recommendation.
Change-Id: I8c88646a252b58923c08bff0459c3f53a94f1bcd
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
According to Table No. 4 in HPG, the power-on reset must
be asserted for at least 10us after all supplies have ramped up.
Change-Id: I086ff86e50cf9846beb422901d61954ddcc47ff5
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
- Add support for loading gpucc-sm8150 in first stage init.
Change-Id: Icc42894ff33d4359fc92a0c84d29facca7ef4e16
Signed-off-by: Yash Jain <quic_yashmj@quicinc.com>