In 'commit 583aa96f35 ("ARM: dts: msm: Add swiotlb command line
parameter for VMs")', option "swiotlb=noforce" was appended to kernel
command line for trusted VMs. Extending the change to OEMVMs.
Change-Id: I3371bc3d077ef4a45d7a66779a77bdf434c0f5e0
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
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>
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>
Add dts entries for smcinvoke and
qtee shmbridge driver in sun vm.
Change-Id: I5ce5eddf5854735a676e1bf1bb0c5dfa67d569b6
Signed-off-by: Anmolpreet Kaur <quic_anmolpre@quicinc.com>
Pinctrl driver enables Top Level Mode Multiplexer block(TLMM)
on Sun VM. TLMM VM irqchip acts as parent interrupt controller
for TLMM on VM.
Change-Id: I36df331dc4af91a5ef1f46c7791ffaa79d8f289f
Signed-off-by: Hrishabh Rajput <quic_hrishabh@quicinc.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>