1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/mailbox/qcom-ipcc.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Qualcomm Technologies, Inc. Inter-Processor Communication Controller 8 9maintainers: 10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 11 12description: 13 The Inter-Processor Communication Controller (IPCC) is a centralized hardware 14 to route interrupts across various subsystems. It involves a three-level 15 addressing scheme called protocol, client and signal. For example, consider an 16 entity on the Application Processor Subsystem (APSS) that wants to listen to 17 Modem's interrupts via Shared Memory Point to Point (SMP2P) interface. In such 18 a case, the client would be Modem (client-id is 2) and the signal would be 19 SMP2P (signal-id is 2). The SMP2P itself falls under the Multiprocessor (MPROC) 20 protocol (protocol-id is 0). Refer include/dt-bindings/mailbox/qcom-ipcc.h 21 for the list of such IDs. 22 23properties: 24 compatible: 25 items: 26 - enum: 27 - qcom,sm6350-ipcc 28 - qcom,sm8250-ipcc 29 - qcom,sm8350-ipcc 30 - qcom,sc7280-ipcc 31 - const: qcom,ipcc 32 33 reg: 34 maxItems: 1 35 36 interrupts: 37 maxItems: 1 38 39 interrupt-controller: true 40 41 "#interrupt-cells": 42 const: 3 43 description: 44 The first cell is the client-id, the second cell is the signal-id and the 45 third cell is the interrupt type. 46 47 "#mbox-cells": 48 const: 2 49 description: 50 The first cell is the client-id, and the second cell is the signal-id. 51 52required: 53 - compatible 54 - reg 55 - interrupts 56 - interrupt-controller 57 - "#interrupt-cells" 58 - "#mbox-cells" 59 60additionalProperties: false 61 62examples: 63 - | 64 #include <dt-bindings/interrupt-controller/arm-gic.h> 65 #include <dt-bindings/mailbox/qcom-ipcc.h> 66 67 mailbox@408000 { 68 compatible = "qcom,sm8250-ipcc", "qcom,ipcc"; 69 reg = <0x408000 0x1000>; 70 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>; 71 interrupt-controller; 72 #interrupt-cells = <3>; 73 #mbox-cells = <2>; 74 }; 75 76 smp2p-modem { 77 compatible = "qcom,smp2p"; 78 interrupts-extended = <&ipcc_mproc IPCC_CLIENT_MPSS 79 IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_EDGE_RISING>; 80 mboxes = <&ipcc_mproc IPCC_CLIENT_MPSS IPCC_MPROC_SIGNAL_SMP2P>; 81 82 /* Other SMP2P fields */ 83 }; 84