Commit Graph

363 Commits

Author SHA1 Message Date
qctecmdr
b3231b1467 Merge "ARM: dts: msm: Add phy gdsc for pcie node in sun" 2023-10-31 15:55:52 -07:00
Kishore Kumar Ravi
4f4abafb24 ARM: dts: msm: Add GLINK PKT nodes for sun
GLINK PKT provides a userspace interface to RPMSG GLINK through
character device node. Add the nodes and corresponding channel
devices to enable GLINK communication from userspace.

Change-Id: I0b7c9b273df3201113095fba9c70d10599b8faf7
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
2023-10-31 17:24:22 +05:30
Kishore Kumar Ravi
b27696bd54 ARM: dts: msm: Add smp2p_sleepstate and qsee irq bridge
Add the smp2p sleepstate and qsee_ipc_irq_bridge
nodes for sun.

Change-Id: Iecdde69fe89d883c87ea9cd527a6753355d2327d
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
2023-10-31 17:21:21 +05:30
Anmolpreet Kaur
91bc24856f ARM: dts: msm: Add dtsi entries for sun vm
Add dts entries for smcinvoke and
qtee shmbridge driver in sun vm.

Change-Id: I5ce5eddf5854735a676e1bf1bb0c5dfa67d569b6
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
2023-10-30 13:16:24 -07:00
Nurit Lichtenstein
c2eaf10f3d ARM: dts: qcom: Enable SPU nodes in sun dtsi
Enable spcom and spss_utils.

Change-Id: I5066c10a6fad276f701cd6a6147c5e21471a8071
Signed-off-by: Nurit Lichtenstein <quic_nuritl@quicinc.com>
2023-10-30 22:07:58 +02:00
Mike Tipton
08133a1db7 ARM: dts: msm: Update video_cc_mvs0_gdsc parent-supply for Sun
The mvs0c_gdsc needs to be enabled first for mvs0_gdsc to turn on
reliably, so list it as a parent to enforce this relationship.

Change-Id: I2b6cf6861d1bf8ddb8eb764be3ba175edee9e3db
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com>
2023-10-27 12:54:57 -07:00
Madhu Pagadoju
d0e28b8499 ARM: dts: msm: Update sun device tree for adsp_sleepmon and cdsprm
Add adsp sleepmon driver device configuration,
add new intents to read dcvs clients information and
documentation under cdsprm device tree.

Change-Id: Icb2b7162544af8dc1d1b255ac99e3be6a4765f6d
Signed-off-by: Madhu Pagadoju <quic_mpagadoj@quicinc.com>
2023-10-26 16:21:27 +05:30
Nurit Lichtenstein
d04fa7ba64 ARM: dts: qcom: Add SPU related nodes to sun dtsi
Needed for SPU pil on sun dtsi.

Remoteproc-spss, spcom and spss_utils are disabled.

Change-Id: I97519bacccee2f7094edbcf32e3fdac29d67ac77
Signed-off-by: Nurit Lichtenstein <quic_nuritl@quicinc.com>
2023-10-26 10:34:56 +03:00
David Collins
ae98f1e70e ARM: dts: qcom: add primary SPMI debug bus for Sun boards
Add an SPMI debug device and associated PMIC child devices for the
primary SPMI interface.  This provides consumers with unrestricted
access to the PMIC registers on pre-production devices.  This helps
to simplify debugging.

Change-Id: I920a3655e0e257ee819c7227e154d27ee43f3250
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-25 14:10:07 -07:00
David Collins
834840db5a ARM: dts: msm: add pmic-glink-debug PMIC subdevices for Sun boards
Add SMB and IDT charger PMIC devices inside of the pmic-glink-debug
device.  These are interfaced over I2C and an SPMI bridge bus.  This
ensures that software is able to access the registers of these PMICs.

Change-Id: I7afc56cb78a353960cb7db98ce5d9b51a05db9fe
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-25 12:09:31 -07:00
David Collins
47e74e072e ARM: dts: qcom: add PMIC Glink ADC channel nodes for Sun boards
Add PMIC Glink ADC channel nodes for Sun MTP and QRD boards.
This exposes an interface for software to read PMIC charger ADC
channels for input current, charge current, and die temperature.
This is useful for PMICs connected via I2C which are only
accessible to charger firmware.

Change-Id: Ie8a9a0690b9937f9c0c541123c28e544ba3495ec
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-25 11:46:30 -07:00
Prudhvi Yarlagadda
b3ed3392eb ARM: dts: msm: Disable SW DRV for pcie in sun
Disable software DRV (L1SS sleep) with PCIe instance
on sun platform as ADSP subsystem (software DRV component)
doesn't support this functionality.
Only CESTA based hardware DRV is supported.

Change-Id: I75368fab37e8bcaaa3c65320b6fdd37e023d3297
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-10-25 10:52:52 -07:00
Yuanfang Zhang
ee8776d01b ARM: dts: msm: add uetm/cti/qmi node for sun
add uetm/cti/qmi device tree configuration on sun.

Change-Id: I7fde13b226eac500f46865aeed6b337105b1dffd
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
2023-10-25 08:30:14 -07:00
Mike Tipton
0ebf20c3c5 ARM: dts: msm: Add clock phandles for debugcc on Pineapple
These clock phandles are necessary to ensure the clock devices probe
before debugcc. Debugcc needs its parent clock devices to probe first,
otherwise it'll invalidate their associated mux_sels during
clk_debug_mux_init() and they can't be measured.

Change-Id: I30d1a9e24ae1ac5a9efc7d8f8e0740ebdce8e1b0
Signed-off-by: Mike Tipton <quic_mdtipton@quicinc.com>
2023-10-24 19:27:23 -07:00
Prudhvi Yarlagadda
da81454996 ARM: dts: msm: Add phy gdsc for pcie node in sun
Add the missing phy gdsc node in the pcie dt node for sun.

Change-Id: I0257c6123d4d3e8fe2740569bd4def68fa3c92a8
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-10-24 17:43:14 -07:00
David Collins
f5335c097f ARM: dts: qcom: add PMIC Glink and clients for Sun
Add PMIC Glink devices and their client devices.  The PMIC Glink
device with name PMIC_RTR_ADSP_APPS supports the clients: ucsi,
altmode, and battery_charger.  The PMIC Glink device with name
PMIC_LOGS_ADSP_APPS supports the clients: battery_debug,
pmic_glink_debug, charger_ulog_glink, and glink_adc.

Change-Id: Ib5a15c136c77c8368d4a561f266a1588c4649893
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-24 16:49:37 -07:00
qctecmdr
9198301bf4 Merge "ARM: dts: msm: Add QUPv3 and GPI DT nodes on SUN" 2023-10-24 14:04:47 -07:00
qctecmdr
a540c08070 Merge "ARM: dts: msm: Add cpucp scmi nodes for sun" 2023-10-24 14:04:47 -07:00
Patrick Daly
9b676ba16e ARM: dts: msm: Add mem-offline device for sun
Describe the communication channel used to communicate with the
firmware which supports onlining and offlining of memory.

Keep the device in a disabled state for now until a conflict
between THP and memory-hotplug features can be resolved.

Change-Id: I3d74d9d3d58d379b2a91ee976a72dddfb7a221c6
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-10-24 13:14:52 -07:00
qctecmdr
e9ec2b678d Merge "ARM: dts: msm: Add device_type property for pcie node" 2023-10-24 09:15:47 -07:00
qctecmdr
210bd6a5b0 Merge "ARM: dts: qcom: pineapple: spss: Remove duplicate node" 2023-10-24 09:15:47 -07:00
qctecmdr
c31a3a4dcc Merge "ARM: dts: msm: Enable virtio-mem device on PineappleVM" 2023-10-24 09:15:47 -07:00
Bao D. Nguyen
49c2cf1dbf ARM: dts: qcom: Add ufs support for sun platforms
Add ufs support for mtp/cdp/qrd sun platforms.
Enable ufs's smmu fastmap attribute.
Enable ufs host and device resets.

Change-Id: I7e4194a48c022284308c3debd6e18be40289693b
Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
2023-10-23 23:30:35 -07:00
Amir Vajid
95020b5012 ARM: dts: msm: Add bus dcvs nodes for sun
Add nodes to enable qcom dcvs, bwmon and memlat
on sun.

Change-Id: I515aa98f01b29fb51be11db33930f96193d13401
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
2023-10-23 21:42:58 -07:00
Amir Vajid
77db4f167c ARM: dts: msm: Add cpucp scmi nodes for sun
Add nodes to enable scmi communication to cpucp on sun.

Change-Id: I574949e32e397047701f836d54115f56414ea023
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
2023-10-23 20:18:47 -07:00
qctecmdr
68496c11b7 Merge "ARM: dts: msm: Add initial device trees for Sun QRD SKU1 & SKU2 SoC" 2023-10-23 19:23:18 -07:00
qctecmdr
f92aa1d781 Merge "ARM: dts: msm: Add cpu idle-states for sun" 2023-10-23 19:23:18 -07:00
qctecmdr
2e40ed6c51 Merge "ARM: dts: msm: Enable clock rpmh device node for Sun" 2023-10-23 19:23:17 -07:00
qctecmdr
b7633075ed Merge "ARM: dts: qcom: add regulator OCP notifier device for Sun" 2023-10-23 19:23:17 -07:00
Patrick Daly
5e0b3e7476 ARM: dts: msm: Add dma-buf heaps for sun-vm
Describe the available dma-buf memory pools on sun-vm.

Change-Id: I205b826849f36078d05a92492238d80a884aa65a
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-10-23 13:24:57 -07:00
Patrick Daly
c422c02314 ARM: dts: msm: Add arm-smmu device on sun-vm
Describe the register, interrupts, and settings of the arm-smmu device.

Change-Id: I0ca4c90e2f767ed6240dd6ad6fc6cc8e7f6c278d
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-10-23 13:24:57 -07:00
Minghao Zhang
fdc9298cfa ARM: dts: msm: Add sys-pm-violators device for sun
This change adds system low power violators device node.

Change-Id: Ie4b7923c2ef96d6d762275b7241948e120230163
Signed-off-by: Minghao Zhang <quic_minghao@quicinc.com>
2023-10-23 15:49:22 +08:00
Lijuan Gao
2e885f132f ARM: dts: msm: Add initial device trees for Sun QRD SKU1 & SKU2 SoC
Add initial device trees to support Sun QRD sku1 and sku2 SoC
and it's platforms.

Change-Id: Ibf28cbc9f33f19908c4d8ac1b431d17632c43e6b
Signed-off-by: Lijuan Gao <quic_lijuang@quicinc.com>
2023-10-18 15:39:03 +08:00
Xubin Bai
ad62d3ca63 ARM: dts: msm: Enable clock rpmh device node for Sun
Remove fixed-factor-clock and enable device node for rpmh
clocks under apps_rsc in place of fixed clocks.

Change-Id: I9c4d242882f29f616574e339581722b65f27a74f
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
2023-10-17 23:59:46 -07:00
Vivek Aknurwar
e4710386ff ARM: dts: msm: Use correct UFS ref_clk on RUMI for Sun
Add RPMH_CXO_CLK as ref_clk to UFS for Sun on pre-sil.
On Rumi ref_clk is to UFS PHY is 19.2MHz and actual device
it is 38.4MHz.
Also update correct gcc header file for sun.

Change-Id: I78ed60095e5229405e7962f4676bfab7b7556676
Signed-off-by: Vivek Aknurwar <quic_viveka@quicinc.com>
2023-10-17 23:59:28 -07:00
Patrick Daly
b23b7f7056 ARM: dts: msm: Enable virtio-mem device on PineappleVM
Describe the properties of the memory region virtio-mem supports.

Change-Id: Ifdc420d25c4fcf1acc93ccd82a80c89857b3c427
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-10-17 19:16:39 -07:00
Patrick Daly
06f7171157 ARM: dts: msm: Add mem-buf device on PineappleVM
Describe the message queues and capabilities of the mem-buf device.

Change-Id: I9ff137c3cfee8d5f9e56930bf8ca9a81066e0150
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-10-17 19:16:38 -07:00
Patrick Daly
505510c3a1 ARM: dts: msm: Include pineapple-vm-dma-heaps on pinapple-vm
Fix a missing include file.

Change-Id: I423fb43b5fef9257ff9bf2fe22e70dd8605fe7e7
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-10-17 19:15:37 -07:00
Patrick Daly
e436ec070a ARM: dts: msm: Snapshot of pineapple vm smmu
Pineapple smmu devicetree snapshot from qcom-6.1 branch
commit 8ef379040bee ("bindings: interrupt-controller: Add bindings for mpm
irqchip for pitti").

Change-Id: Ieebd69268aa04a48cc9a6977b6c4b70fd3035834
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-10-17 19:15:37 -07:00
Chandana Kishori Chiluveru
73c1325edd ARM: dts: msm: Add QUPv3 and GPI DT nodes on SUN
Add QUPv3(I2C, SPI, UART and I3C) and GPI DT nodes on SUN.

Change-Id: I2520da18d152eb0a30a9f735d879422e876d2d6a
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
2023-10-17 03:36:45 -07:00
Prudhvi Yarlagadda
bc6d0ca2a9 ARM: dts: msm: Add device_type property for pcie node
Add device_type property for the pcie devicetree nodes
in sun.

This is needed to make sure that the pcie devicetree node
is associated with the pci bus when ranges property gets
parsed by the of/address.c driver.

And this change is mandatory for pci devicetree nodes with
the introduction of the following change in of/address.c
upstream commit <3d5089c4263d> "of/address: Add support
for 3 address cell bus".

Without this change, BAR address allocation failure will
happen as error logs below as the flags cell in ranges
property in devicetree will be read wrong.
pci-msm 1c00000.qcom,pcie:err 0x0060200000..0x00602fffff -> 0x0060200000.
pci-msm 1c00000.qcom,pcie:err 0x0060300000..0x0063ffffff -> 0x0060300000.
pci-msm 1c00000.qcom,pcie: non-prefetchable memory resource required.
pci 0000:00:00.0: BAR 0: no space for [mem size 0x00001000 64bit].
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00001000 64bit].

Change-Id: I8b1591ea83784ffc19c928e1af73117657ac7f15
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-10-16 20:15:04 -07:00
Prudhvi Yarlagadda
616915f5a1 ARM: dts: msm: Add device_type property for pcie nodes
Add device_type property for the pcie devicetree nodes
in pineapple.

This is needed to make sure that the pcie devicetree node
is associated with the pci bus when ranges property gets
parsed by the of/address.c driver.

And this change is mandatory for pci devicetree nodes with
the introduction of the following change in of/address.c
upstream commit <3d5089c4263d> "of/address: Add support
for 3 address cell bus".

Without this change, BAR address allocation failure will
happen as error logs below as the flags cell in ranges
property in devicetree will be read wrong.
pci-msm 1c00000.qcom,pcie:err 0x0060200000..0x00602fffff -> 0x0060200000.
pci-msm 1c00000.qcom,pcie:err 0x0060300000..0x0063ffffff -> 0x0060300000.
pci-msm 1c00000.qcom,pcie: non-prefetchable memory resource required.
pci 0000:00:00.0: BAR 0: no space for [mem size 0x00001000 64bit].
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x00001000 64bit].

Change-Id: I212e023880ed8373eb17379754da84b6947d1171
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
2023-10-16 20:14:47 -07:00
qctecmdr
91593b8c04 Merge "ARM: dts: msm: Add swiotlb command line parameter for VMs" 2023-10-16 17:04:15 -07:00
qctecmdr
aca7538a7a Merge "ARM: dts: qcom: pineapple: Update the remoteproc DT for pineapple Soc" 2023-10-16 17:04:15 -07:00
Rashid Zafar
35fe875fef ARM: dts: msm: Add cpu idle-states for sun
Update enable-method to PSCI. Add idle-states node and
update cpu node to include appropriate idle state.

Disabled all idle-states for rumi.

Change-Id: I313d52c60081ef1d568781e33d0f2fed1a1f2de4
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2023-10-13 23:21:50 -07:00
David Collins
731cfb12e9 ARM: dts: qcom: add regulator OCP notifier device for Sun
Add a regulator over-current (OCP) notifier device along with
supply properties to map from PMIC peripherals to specific
regulator devices.  This provides a mechanism to notify
consumers of a particular regulator when OCP occurs.

Change-Id: I17ee6af65492ece062722c41f97f3ea052970a25
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-13 14:18:20 -07:00
David Collins
d630ebaf69 ARM: dts: qcom: add DBO3 regulator device for Sun boards
Add a fixed regulator device for the DBO3 buck-boost regulator.
It is enabled via PM8550 GPIO 9 and outputs 3.6 V.

Change-Id: Iff6e0e1cceed6ad369fb67aca3926f5a808cf3e6
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-13 14:18:11 -07:00
David Collins
5f5e161ac1 ARM: dts: qcom: add PMIC PON log device for Sun
Add a PMIC PON log parser device which reads the log stored in
PMK8550 SDAM5 and SDAM6.

Change-Id: I944df2186b27ebb42cf2d4dc8f51dbf7b40cea9b
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-10-13 14:17:49 -07:00
Sahitya Tummala
583aa96f35 ARM: dts: msm: Add swiotlb command line parameter for VMs
With the recent kernel upgrade to 6.4, swiotlb_init() path is taken
because of the new kernel config CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC,
which is enabled by default. But this should not done for trusted VMs
supported on Sun and Pineapple VMs, as these VMs would be using carveout
swiotlb memory set up separately by virtio mmio driver through the
feature CONFIG_SWIOTLB_NONLINEAR. Hence, add swiotlb=noforce kernel
command line to disable generic swiotlb setup/init for VMs. Without
this option set, VM boot up failure is observed.

Change-Id: Ia35cd9a2f95f41b0b0daa6cf75799fd4432a95bd
Signed-off-by: Sahitya Tummala <quic_stummala@quicinc.com>
2023-10-13 20:54:17 +05:30
qctecmdr
be9be4327d Merge "ARM: dts: msm: Update system cma pool size for sun" 2023-10-12 22:21:39 -07:00