Commit Graph

544 Commits

Author SHA1 Message Date
Elliot Berman
31a8c648b7 dt-bindings: gunyah: Perform some correction on vm schema
Start correcting the gunyah/vm.yaml schema. It passes basic validation
now, but is still incomplete with Gunyah Resource Manager's
parsing.

Change-Id: I9d3123fa5fa9752960523249136c11adcfd8e092
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2023-10-26 10:51:14 -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
Elliot Berman
bb72440aa0 dt-bindings: Have find traverse through symlink
When the dt-bindings Makefile searches for schema files, it uses "find"
to search for yaml files. Find does not travese past symlinks, but
bindings is a symlink to the devicetree project. Force traversal by
adding trailing slash so that the root directory is past the symlink.

Change-Id: I9575b3b9e00725c5e1bcaccf99070d71994a9f77
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2023-10-25 11:14:14 -07:00
Cristian Ciocaltea
15814ed27e dt-bindings: Fix multi pattern support in DT_SCHEMA_FILES
DT_SCHEMA_FILES used to allow specifying a space separated list of file
paths, but the introduction of partial matches support broke this
feature:

$ make dtbs_check DT_SCHEMA_FILES="path/to/schema1.yaml path/to/schema2.yaml"
[...]
  LINT    Documentation/devicetree/bindings
usage: yamllint [-h] [-] [-c CONFIG_FILE | -d CONFIG_DATA] [--list-files] [...]
                [-v]
                [FILE_OR_DIR ...]
yamllint: error: one of the arguments FILE_OR_DIR - is required
[...]

Restore the lost functionality by preparing a grep filter that is able
to handle multiple search patterns.

Additionally, as suggested by Rob, use ':' instead of ' ' as the
patterns separator char. Hence, the command above becomes:

$ make dtbs_check DT_SCHEMA_FILES="path/to/schema1.yaml:path/to/schema2.yaml"

Fixes: 309d955985ee ("dt-bindings: kbuild: Support partial matches with DT_SCHEMA_FILES")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20230209193735.795288-1-cristian.ciocaltea@collabora.com
Signed-off-by: Rob Herring <robh@kernel.org>

Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-Commit: 25eba1598c8e1e804c02e3a0da50782c50c11c41
Change-Id: I8bf8eaf06c3271c7b525c3c638477a2a23efb46f
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
2023-10-25 11:12:15 -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
Hrishabh Rajput
eee0bb4bb2 bindings: Add bindings for the gunyah panic notifier
This driver responds to a kernel panic event on PVM
by sending doorbell to notify TUIVM.

Change-Id: I5cbc644a9978e290b44e61f2c8fa747d1ddfc276
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
2023-10-25 16:26:20 +05:30
Prasanna S
60b18eb027 dt-bindings: buses: Add slimbus driver bindings for Sun
Add slimbus driver binding for Sun device.

Change-Id: Ifa583ff49201f7dcab7abf8c455130e09cdc4813
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2023-10-25 03:51:55 -07:00
Hrishabh Rajput
bc9217d35d bindings: Add bindings for the QTI VM Dmesg dumper
Dmesg dumper transfer QTI VM encrypted dmesg to PVM by dumping
the dmesg log buffer to a reserved memory location.

Change-Id: I3585f820e9dfe3f0011e210e4d6f1297734c47c3
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
2023-10-25 16:21:14 +05:30
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
cfe3892709 Merge "dt-bindings: soc: qcom: Add documentation for SHM" 2023-10-24 14:04:47 -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
Jishnu Prakash
d6d5b31791 dt-bindings: iio: qcom,spmi-vadc: Add PMIC5 GEN3 ADC bindings
PMIC5 GEN3 ADC has support for clients to read voltage and
current on supported channels connected to the PMIC.
Clients include reading voltage phone power and on board system
thermistors for thermal management. ADCs on certain PMICs have
support to read battery current.

Change-Id: Ief7cbdf77d227ba2cb4ef7919aa66d9962d98e37
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
[quic_amelende@quicinc.com: Converted binding change from .txt to .yaml]
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-10-24 11:39:49 -07:00
qctecmdr
bb01365116 Merge "dt-bindings: platform: msm: Add SPI msm geni bindings for Sun" 2023-10-24 09:15:47 -07:00
qctecmdr
e9ec2b678d Merge "ARM: dts: msm: Add device_type property for pcie node" 2023-10-24 09:15:47 -07:00
qctecmdr
a38bff2298 Merge "dt-bindings: buses: Add MSM geni serial bindings for Sun" 2023-10-24 09:15:47 -07:00
qctecmdr
27967d0632 Merge "dt-bindings: platform: msm: Add gpi bindings for Sun" 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
f05510b181 Merge "dt-bindings: platform: msm: Add i3c msm geni bindings for Sun" 2023-10-24 09:15:47 -07:00
qctecmdr
631f5301b6 Merge "dt-bindings: platform: msm: Add I2C msm geni bindings for Sun" 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
07e8205d36 Merge "dt-bindings: add dt-binding for qcom coresight qmi and uetm" 2023-10-23 19:23:18 -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
3aadc6b7c1 Merge "dt-bindings: Add USB typeC and DP redriver bindings" 2023-10-23 19:23:17 -07:00
qctecmdr
911c675b3b Merge "dt-bindings: Add TLMM VM test driver documentation" 2023-10-23 19:23:17 -07:00
qctecmdr
559eb585bc Merge "dt-bindings: soc: qcom: Add documentation for ufs-phy-qmp-v4-sun" 2023-10-23 19:23:17 -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
qctecmdr
5ee450f885 Merge "dt-bindings: iio: qcom,spmi-vadc: Add SW-calibrated ADC bindings" 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
Minghao Zhang
a91ab8db67 dt-bindings: Add snapshot of sys-pm-violators documentation
Snapshot the sys-pm-violators documentation from
qcom-6.1 'commit <16ac1827ff37> ("bindings: arm: msm:
Add sys-pm-violators bindings for monaco_au")'.

Updates:
	- Add entry to support for sun.

Change-Id: I1a8cd4652b6680ff4b87199a6fc22b1ddbcd9614
Signed-off-by: Minghao Zhang <quic_minghao@quicinc.com>
2023-10-23 15:41:21 +08:00
Anil Veshala Veshala
2e6858f742 dt-bindings: platform: msm: Add i3c msm geni bindings for Sun
Add i3c msm geni driver binding for Sun device.

Change-Id: I3bb5c66bd182fe8d527c72c95aa88ee746ce4127
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2023-10-18 23:02:55 -07:00
Anil Veshala Veshala
7f491b9af4 dt-bindings: platform: msm: Add gpi bindings for Sun
Add gpi driver binding for Sun device.

Change-Id: I6667f73eb4258b107eb0a5060efeffd55a9075a6
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2023-10-18 22:59:54 -07:00
Unnathi Chalicheemala
9b576e5ddb dt-bindings: soc: qcom: Add documentation for SHM
Add documentation for System Helath Monitor driver.

Change-Id: Id91b9144b56dc18612626ba39d504faba002b20c
Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
2023-10-18 22:16:13 -07: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