Message ID | 20250327181750.3733881-2-quic_srichara@quicinc.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | mailbox: tmel-qmp: Introduce QCOM TMEL QMP mailbox driver | expand |
On Thu, Mar 27, 2025 at 11:47:49PM +0530, Sricharan R wrote: > +properties: > + compatible: > + items: > + - enum: > + - qcom,ipq5424-tmel blank line > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + mboxes: > + maxItems: 1 Why mbox is having an mbox? This does not look right and suggest the block is misrepresented. I read the diagram and description two times and still do not see how this fits there. > + > + "#mbox-cells": > + const: 1 Best regards, Krzysztof
On Thu, Mar 27, 2025 at 11:47:49PM +0530, Sricharan R wrote: > From: Sricharan Ramabadhran <quic_srichara@quicinc.com> > > TMEL(Trust Management Engine Lite) subsystem provides different kinds of Trust whatever SubSystem (TMEL SS) ... different to what? > services like secureboot, remote image authentication, key management, > crypto, OEM provisioning etc. > > The QMP mailbox is the primary means of communication between TMEL SS and What is QMP? > other subsystem on the SoC. A dedicated pair of inbound and outbound > mailboxes is implemented for each subsystem/external execution environment Is it implemented in the driver? Is it provided by the hardware? By the firmware? > which needs to communicate with TMEL for security services. The inbound > mailboxes are used to send IPC requests to TMEL, which are then processed > by TMEL firmware and accordingly the responses are sent back via outbound > mailboxes.
diff --git a/Documentation/devicetree/bindings/mailbox/qcom,ipq5424-tmel.yaml b/Documentation/devicetree/bindings/mailbox/qcom,ipq5424-tmel.yaml new file mode 100644 index 000000000000..5bdeab166a1f --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/qcom,ipq5424-tmel.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/qcom,ipq5424-tmel.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm TMEL IPCC channel + +maintainers: + - Sricharan Ramabadhran <quic_srichara@quicinc.com> + +description: + TMEL(Trust Management Engine Lite) SS provides different kinds of services + like secureboot, remote image authentication, key management, crypto, OEM + provisioning etc. + + The QMP mailbox is the primary means of communication between TMEL SS and + other subsystem on the SoC. A dedicated pair of inbound and outbound mailbox + is implemented for each subsystem/external execution environment which needs + to communicate with TMEL for security services. The inbound mailboxes are used + to send IPC requests to TMEL, which are then processed by TMEL firmware and + accordingly the responses are sent back via outbound mailboxes. + +properties: + compatible: + items: + - enum: + - qcom,ipq5424-tmel + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + mboxes: + maxItems: 1 + + "#mbox-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - mboxes + - "#mbox-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + mailbox@32090000 { + compatible = "qcom,ipq5424-tmel"; + reg = <0x32090000 0x2000>; + interrupts = <GIC_SPI 126 IRQ_TYPE_EDGE_RISING>; + mboxes = <&apcs_glb 20>; + #mbox-cells = <1>; + };