Commit graph

1164125 commits

Author SHA1 Message Date
Asit Shah
49685ed111 build: Add bazel support for anorak
Add bazel build support for anorak platform.

Change-Id: Ic8075f546827b8f808547fde7e78ad0537e0eb70
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-04-18 12:58:59 +05:30
qctecmdr
772f573cd9 Merge "interconnect: qcom: Enable qos programming for VOLCANO" 2024-04-17 13:55:23 -07:00
qctecmdr
7e8d30efbd Merge "defconfig: Add configs for trustedvm on Niobe" 2024-04-17 13:55:19 -07:00
qctecmdr
407aabfdaa Merge "defconfig: Enable panel event notifier for niobe" 2024-04-16 18:04:54 -07:00
qctecmdr
eac58f7afb Merge "sched: walt: handle idle target cluster" 2024-04-16 12:40:58 -07:00
qctecmdr
08c23dd27d Merge "firmware: qcom_scm: handle echo b > /proc/sysrq-trigger" 2024-04-16 08:57:22 -07:00
qctecmdr
a09638ab2d Merge "msm: pcie: Fix the issue with icc bw voting" 2024-04-16 03:25:42 -07:00
qctecmdr
13fd2f5e8a Merge "soc: qcom: pmic-pon-log: do not panic for FAULT_REASON2=FAULT_N event" 2024-04-16 03:25:41 -07:00
qctecmdr
e2f917c73f Merge "firmware: qcom_scm: Add new scm to update Camera QoS" 2024-04-16 03:25:41 -07:00
qctecmdr
b8b4f3f17e Merge "pinctrl: qcom: Restore gpios for pincontrols not defining tiles" 2024-04-16 03:25:40 -07:00
Jishnu Prakash
37a0fd3b17 defconfig: Enable panel event notifier for niobe
Enable panel event notifier for niobe.

Change-Id: I9d8b7f514488b2737343aa8cf020d789ac3fa245
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
2024-04-16 15:40:29 +05:30
qctecmdr
fbc3b007e0 Merge "usb: phy: snps-eusb2: Making ref_clk as a optional clk" 2024-04-15 10:01:34 -07:00
qctecmdr
f984fc3cf1 Merge "pci: msm: using i2c client "of_node" to read pcieX_i2c_ctrl properties" 2024-04-15 10:01:30 -07:00
qctecmdr
e6141e579c Merge "wcd939x-i2c: check i2c suspend and defer wcd register writes" 2024-04-15 04:44:02 -07:00
qctecmdr
f5e7a16754 Merge "hgsl: Add support for deep sleep/quick boot" 2024-04-15 04:44:02 -07:00
qctecmdr
48f4c77f3b Merge "pci: msm: Extend sleep time when reset i2c client" 2024-04-15 04:43:56 -07:00
Paras Sharma
205afb1dae msm: pcie: Fix the issue with icc bw voting
Change <caadbd1051> ("pci: msm: Update the icc bw voting based
up on link speed and width") is setting AVG and PEAK votes to 0 without
checking whether PCIe CESTA is enabled or not in msm_pcie_drv_suspend.
In case of CESTA, we need to vote for AVG and PEAK BW votes to 500 and
800 in msm_pcie_drv_suspend.

Change-Id: I078f5f935889b5ec7babef175cfc3548a035202f
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
2024-04-15 04:18:55 -07:00
Uttkarsh Aggarwal
cf01834501 usb: phy: snps-eusb2: Making ref_clk as a optional clk
Currently the phy-probe requires ref_clk, but if usb2 is
connected directly to the CXO PAD, in that case
ref_clk does not need to be added to the DT.

If devm_clk_get is marked as optional, it means
instead of return - ENOENT, function returns NULL.

In this change devm_clk_get change to devm_clk_get_optional
for ref_clk.

Change-Id: I943a146ebee47e21af9763cab5e21a15aa866497
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-04-14 07:59:50 -07:00
Darshankumar Jagdishchandra Thakkar
932f5628b8 pinctrl: qcom: Restore gpios for pincontrols not defining tiles
Some tlmm pin-control drivers do not define tiles, add support
to restore pin control states for such chips by enhancing the
freeze and restore callbacks.

Change-Id: I868073cac0ed5b9ef4d0f5058aeefcb636df9a09
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2024-04-14 01:51:54 -07:00
qctecmdr
e280d7bb03 Merge "defconfig: pitti: enable fbe modules for emmc target" 2024-04-12 20:13:32 -07:00
qctecmdr
13266ae1fb Merge "pci: msm: Add API to control pcie link state of NTN3 downstream port" 2024-04-12 20:13:28 -07:00
qctecmdr
b11e992d7d Merge "drivers: rtc-pm8xxx: Add support for DeepSleep in RTC driver" 2024-04-12 20:13:28 -07:00
qctecmdr
c833f52d3b Merge "Revert "blocklist: blocklist cnss2 and kiwi_v2 module for bring-up"" 2024-04-12 20:13:27 -07:00
Amit Nischal
0c336808bb hgsl: Add support for deep sleep/quick boot
After quick boot, the doorbell interrupts need to
be re-enabled. Add support for the same by registering
the resume callback with PM framework.

Change-Id: I3df7a94db4c5acf4fe0462271fac2afe6f9a3b7e
Signed-off-by: Amit Nischal <quic_anischal@quicinc.com>
2024-04-12 09:18:47 -07:00
Dharmender Sharma
fed3a6fd30 firmware: qcom_scm: Add new scm to update Camera QoS
Add new SCM call to program secure camera qos settings.
For each NIU camera driver can call this scm API which need each NIU's
register offsets, value and number of registers offset that need to be
programed.

CRs-Fixed: 3781697
Change-Id: I35fbb433cceb032762246f526c5b28cb0f3d5d19
Signed-off-by: Dharmender Sharma <quic_dharshar@quicinc.com>
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2024-04-12 17:11:59 +05:30
LADI RAM SAI
23870cd72f drivers: rtc-pm8xxx: Add support for DeepSleep in RTC driver
Add support for the DeepSleep mode for the RTC driver that
can be enabled based on a DT property.

Change-Id: Id7aab2a1affe26a71194aee0de78e116f1d803a0
Signed-off-by: LADI RAM SAI <quic_lramsai@quicinc.com>
2024-04-12 14:43:53 +05:30
Mukesh Ojha
cdbb3c093d firmware: qcom_scm: handle echo b > /proc/sysrq-trigger
Introduce restart handler to handle "echo b > /proc/sysrq-trigger".
One special thing with 'b' kind of reboot is, it does not call reboot
notifiers and call restart handler right a way and that does not seems
to work for blair SoC and it goes to dump mode.

Keep this restart handler priority to 201 greater than 200 which is the
priority for msm-poweroff to make reboot work cleaner.

Change-Id: I42f8c0fde29af402096d760c37ec2d8b3a85439a
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
2024-04-11 22:00:09 -07:00
Yogesh Jadav
d2f62a7d9b pci: msm: using i2c client "of_node" to read pcieX_i2c_ctrl properties
The pcieX_i2c_ctrl property string will be different for each pcie
instance. So, using i2c client "of_node" instead of parsing using
"pcieX_i2c_ctrl". This way it does not need extra logic of parsing
different "pcieX_i2c_ctrl" property to read the pcie i2c properties.

Change-Id: I166d08bffff8b286b12f215c9e3b74074a8d4eb4
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
2024-04-11 18:01:19 -07:00
Yogesh Jadav
e0bab4fe04 pci: msm: support of qps615 bridge for different PCIe instances
This patch is:
    1) to use the rc_index from the i2c device tree.
    2) eliminates need of hardcoded rc_index from structure
       define for each PCIe I2C instance.

This will allow to use common compatible string for all instances
of pcie switch i2c device.

Change-Id: I759caa856a0058808ca072c75297a57ad76754b7
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
2024-04-11 18:01:00 -07:00
Harrison Meng
7ac6c00b11 pci: msm: Extend sleep time when reset i2c client
For HSP link down issue on CPE platform, because CPE NTN3 pcie switch
separates pcie link between RC and EP into two pcie buses,
RC0<->USP and DSP<->EP, so we should take care of this case on pcie
link training, make code change as following:
1. do link training RC0<->USP first and then do link training for
   DSP<->EP
2. link training of DSP<->EP need more time to complete.
From test result, 100ms is not enough, 200ms is ok.

Change-Id: I0f36fc19ab1c6b90132596359c7b158fde7d3e22
Signed-off-by: Harrison Meng <quic_hmeng@quicinc.com>
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
2024-04-11 18:00:35 -07:00
Harrison Meng
3fcfd9ecc2 pci: msm: Add API to control pcie link state of NTN3 downstream port
On CPE platform, there is ntn3 pcie switch locates between RC and
Wlan, so the wlan pcie link is separated two parts, RC<->USP and
DSP<->WLAN, when pcie link suspend/resume, the link status of these
two buses is different, when link suspend the RC<->USP is not powered
off due to the existence of Ethernet device under same pcie switch.
For the case of cnss driver to power on/off wlan soc when pcie link
is still turned on, to avoid AER issue, before power on wlan soc cnss
driver needs to disable DSP<->WLAN link and then enable the link and
wait for link training completion Before powering off wlan soc cnss
driver also needs to disable DSP<->WLAN link at first. Function
msm_pcie_ntn3_dsp_link_control() is called by cnss driver to
enable(with link train)/disable DSP<->WLAN link when RC<->USP is on.

Change-Id: I8236b0786a14d6fb6c11805f24407edaa24e9836
Signed-off-by: Harrison Meng <quic_hmeng@quicinc.com>
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
2024-04-10 19:49:45 -07:00
Kamal Wadhwa
8c543d69da soc: qcom: pmic-pon-log: do not panic for FAULT_REASON2=FAULT_N event
Currently, the pmic-pon-log driver will trigger a kernel panic for
all PMIC fault reasons except RESTART_PON.

However, it is possible to encounter a FAULT_N fault reason during
boot-up if the Vph voltage doesn't perform ideally.  This could
happen if for example: Vph doesn't drain far enough during a power
cycle/battery pull, Vph voltage is very low, or Vph voltage ramps
up very slowly.  In such cases, the FAULT_N condition is transient
and doesn't indicate any particular issue taking place.

When fault reason FAULT_N occurs for a true PMIC issue, a further
root cause fault reason will also be specified.  Therefore, it is
safe to ignore PMIC PON log events that specify FAULT_N as the
only fault reason.

Modify the pmic-pon-log driver PMIC fault panic logic to ignore
FAULT_REASON2=FAULT_N events.

Change-Id: Iab23ca43e44035a98ba5815203f4b44e9d98f29d
Signed-off-by: Kamal Wadhwa <quic_kamalw@quicinc.com>
2024-04-11 02:01:57 +05:30
qctecmdr
d3b1f3c1f6 Merge "dcvs: bwprof: Add a snapshot of BWPROF" 2024-04-10 06:45:13 -07:00
Anuj Khera
beed0d164c Revert "blocklist: blocklist cnss2 and kiwi_v2 module for bring-up"
This reverts commit 0c9f299c01.

CRs-Fixed: 3781694.
Change-Id: I95fa60154365c180b9dbaaeccc8baa11736e3a91
Signed-off-by: Anuj Khera <quic_akhera@quicinc.com>
2024-04-10 01:57:51 -07:00
qctecmdr
70b1f1de43 Merge "defconfig: autoghgvm: add cache flush APIs" 2024-04-10 00:15:36 -07:00
qctecmdr
e06ee7e928 Merge "net: stmmac: Fixed ethool speed issue" 2024-04-09 22:21:53 -07:00
Ashay Jaiswal
e8e3431d54 sched: walt: handle idle target cluster
In case if a cluster goes to LPM at higher frequency there is a
possibility of frequency relation choosing a wrong relation based on
frequency at which target cluster went down.
Fix this, by only considering frequency if cluster is running at least
one task.

Change-Id: I8601abc1c3941c91c69d944c56434efb619929f5
Signed-off-by: Ashay Jaiswal <quic_ashayj@quicinc.com>
2024-04-09 09:29:06 -07:00
qctecmdr
0f41ad5de8 Merge "pci: msm: Bring pine EP out of reset after link up" 2024-04-09 08:27:01 -07:00
qctecmdr
49181aa718 Merge "pci: msm: Update of de_emphasis setting depending on ntn3 switch version" 2024-04-08 18:11:06 -07:00
Ramya SR
caf2e99f0c pci: msm: Bring pine EP out of reset after link up
This change is to bring pine EP out of reset post link-up.

Change-Id: Ied7533258496e8c08f619997626d70bcd6f0f8de
Signed-off-by: Ramya SR <quic_rsr@quicinc.com>
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
2024-04-08 17:38:16 -07:00
Ramya SR
f8b910e71e pci: msm: Bringing EP out of reset prior link up
In msm_pcie_enable,EP is brought out of reset
after the link up.This will cause the enumeration
issues with HSP as NTN3 GPIO is connected to WLAN reset.
So moving the part of bringing the EP out of reset
prior link training and after de-emphasis setting.

The reason for moving it after de-emphasis setting is
to ensure WLAN is brought out of reset after all the switch
settings gets applied.

change-Id: I523000fd2475d8a1767423469f3bab0b7bc97ac0
Signed-off-by: Ramya SR <quic_rsr@quicinc.com>
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
2024-04-08 17:37:18 -07:00
qctecmdr
2a4b936ab9 Merge "pci: msm: Disable CMHI_SATELLITE driver for niobe" 2024-04-08 11:07:23 -07:00
qctecmdr
6cb5c322e3 Merge "pci: msm: Return -EPROBE_DEFER when i2c is not probed" 2024-04-08 06:05:03 -07:00
qctecmdr
6cb6859582 Merge "interconnect: qcom: Enable qos programming for NIOBE" 2024-04-08 06:04:57 -07:00
qctecmdr
8015ba1352 Merge "defconfigs: Enable Debug slow path and slub configs" 2024-04-08 06:04:56 -07:00
qctecmdr
3e700f6c78 Merge "pci: msm: Fix lost DRV connect event" 2024-04-08 06:04:56 -07:00
kundan kumar
021661b205 defconfig: pitti: enable fbe modules for emmc target
Enable the emmc config which enables
data encryption (FBE) using wrapped keys.
CONFIG_MMC_CRYPTO_QTI.

Signed-off-by: kundan kumar <quic_kunkum@quicinc.com>
2024-04-08 03:28:54 -07:00
Paras Sharma
eafc5e926e pci: msm: Disable CMHI_SATELLITE driver for niobe
Disable MHI_SATELLITE driver for niobe as there is no use case for now.

Change-Id: I5f203bc9706cdbe957287f5e2cf8f9d2a0503dda
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
2024-04-08 01:53:38 -07:00
Yimin Peng
85eb254457 defconfig: autoghgvm: add cache flush APIs
The CONFIG_ARM64_PMEM selects CONFIG_ARCH_HAS_PMEM_API for audiolite
module to use arch_invalidate_pmem.

Change-Id: I62cece37ec0ae8adc5485eb8333700b7cb52a6b9
Signed-off-by: Yimin Peng <quic_yiminp@quicinc.com>
2024-04-08 14:12:07 +05:30
Ramya SR
77a431dd87 pci: msm: Update of de_emphasis setting depending on ntn3 switch version
In NTN3 switch there are i2c writes performed
in order to update some of the settings prior linkup.
These settings are taken care in upcoming versions of ntn3 chips
i.e, above V1 chips.There are some settings still required for NTN3v2
to solve the gen3 AER's. So added a separate switch reg update
sequence for it.

This change is to support update of de_emphasis settings of ntn3 switch
depending on the chip version.Also added a condition to check the
force update of these settings irrespective of the chip version
if force update flag is set by the client in the dtsi.

Change-Id: Id4828533f3f6f6f309b1c9c844a99a183c2950e1
Signed-off-by: Ramya SR <quic_rsr@quicinc.com>
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
2024-04-08 00:15:08 -07:00