forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'mailbox-v5.8' of git://git.linaro.org/landing-teams/workin…
…g/fujitsu/integration Pull mailbox updates from Jassi Brar: "qcom: - new controller driver for IPCC - reorg the of_device data - add support for ipq6018 platform spreadtrum: - new sprd controller driver imx: - implement suspend/resume PM support misc: - make pcc driver struct static - fix return value in imx_mu_scu - disable clock before bailout in imx probe - remove duplicate error mssg in zynqmp probe - fix header size in imx.scu - check for null instead of is-err in zynqmp" * tag 'mailbox-v5.8' of git://git.linaro.org/landing-teams/working/fujitsu/integration: mailbox: qcom: Add ipq6018 apcs compatible mailbox: qcom: Add clock driver name in apcs mailbox driver data dt-bindings: mailbox: Add YAML schemas for QCOM APCS global block mailbox: imx: ONLY IPC MU needs IRQF_NO_SUSPEND flag mailbox: imx: Add runtime PM callback to handle MU clocks mailbox: imx: Add context save/restore for suspend/resume MAINTAINERS: Add entry for Qualcomm IPCC driver mailbox: Add support for Qualcomm IPCC dt-bindings: mailbox: Add devicetree binding for Qcom IPCC mailbox: zynqmp-ipi: Fix NULL vs IS_ERR() check in zynqmp_ipi_mbox_probe() mailbox: imx-mailbox: fix scu msg header size check mailbox: sprd: Add Spreadtrum mailbox driver dt-bindings: mailbox: Add the Spreadtrum mailbox documentation mailbox: ZynqMP IPI: Delete an error message in zynqmp_ipi_probe() mailbox: imx: Disable the clock on devm_mbox_controller_register() failure mailbox: imx: Fix return in imx_mu_scu_xlate() mailbox: imx: Support runtime PM mailbox: pcc: make pcc_mbox_driver static
- Loading branch information
Showing
14 changed files
with
1,097 additions
and
132 deletions.
There are no files selected for viewing
88 changes: 0 additions & 88 deletions
88
Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt
This file was deleted.
Oops, something went wrong.
86 changes: 86 additions & 0 deletions
86
Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: "http://devicetree.org/schemas/mailbox/qcom,apcs-kpss-global.yaml#" | ||
$schema: "http://devicetree.org/meta-schemas/core.yaml#" | ||
|
||
title: Qualcomm APCS global block bindings | ||
|
||
description: | ||
This binding describes the APCS "global" block found in various Qualcomm | ||
platforms. | ||
|
||
maintainers: | ||
- Sivaprakash Murugesan <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- qcom,ipq8074-apcs-apps-global | ||
- qcom,msm8916-apcs-kpss-global | ||
- qcom,msm8996-apcs-hmss-global | ||
- qcom,msm8998-apcs-hmss-global | ||
- qcom,qcs404-apcs-apps-global | ||
- qcom,sc7180-apss-shared | ||
- qcom,sdm845-apss-shared | ||
- qcom,sm8150-apss-shared | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
description: phandles to the parent clocks of the clock driver | ||
items: | ||
- description: primary pll parent of the clock driver | ||
- description: auxiliary parent | ||
|
||
'#mbox-cells': | ||
const: 1 | ||
|
||
'#clock-cells': | ||
const: 0 | ||
|
||
clock-names: | ||
items: | ||
- const: pll | ||
- const: aux | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- '#mbox-cells' | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
|
||
# Example apcs with msm8996 | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
apcs_glb: mailbox@9820000 { | ||
compatible = "qcom,msm8996-apcs-hmss-global"; | ||
reg = <0x9820000 0x1000>; | ||
#mbox-cells = <1>; | ||
}; | ||
rpm-glink { | ||
compatible = "qcom,glink-rpm"; | ||
interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>; | ||
qcom,rpm-msg-ram = <&rpm_msg_ram>; | ||
mboxes = <&apcs_glb 0>; | ||
mbox-names = "rpm_hlos"; | ||
}; | ||
# Example apcs with qcs404 | ||
- | | ||
#define GCC_APSS_AHB_CLK_SRC 1 | ||
#define GCC_GPLL0_AO_OUT_MAIN 123 | ||
apcs: mailbox@b011000 { | ||
compatible = "qcom,qcs404-apcs-apps-global"; | ||
reg = <0x0b011000 0x1000>; | ||
#mbox-cells = <1>; | ||
clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>; | ||
clock-names = "pll", "aux"; | ||
#clock-cells = <0>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/mailbox/qcom-ipcc.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Qualcomm Technologies, Inc. Inter-Processor Communication Controller | ||
|
||
maintainers: | ||
- Manivannan Sadhasivam <[email protected]> | ||
|
||
description: | ||
The Inter-Processor Communication Controller (IPCC) is a centralized hardware | ||
to route interrupts across various subsystems. It involves a three-level | ||
addressing scheme called protocol, client and signal. For example, consider an | ||
entity on the Application Processor Subsystem (APSS) that wants to listen to | ||
Modem's interrupts via Shared Memory Point to Point (SMP2P) interface. In such | ||
a case, the client would be Modem (client-id is 2) and the signal would be | ||
SMP2P (signal-id is 2). The SMP2P itself falls under the Multiprocessor (MPROC) | ||
protocol (protocol-id is 0). Refer include/dt-bindings/mailbox/qcom-ipcc.h | ||
for the list of such IDs. | ||
|
||
properties: | ||
compatible: | ||
items: | ||
- enum: | ||
- qcom,sm8250-ipcc | ||
- const: qcom,ipcc | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
interrupt-controller: true | ||
|
||
"#interrupt-cells": | ||
const: 3 | ||
description: | ||
The first cell is the client-id, the second cell is the signal-id and the | ||
third cell is the interrupt type. | ||
|
||
"#mbox-cells": | ||
const: 2 | ||
description: | ||
The first cell is the client-id, and the second cell is the signal-id. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- interrupt-controller | ||
- "#interrupt-cells" | ||
- "#mbox-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
#include <dt-bindings/mailbox/qcom-ipcc.h> | ||
mailbox@408000 { | ||
compatible = "qcom,sm8250-ipcc", "qcom,ipcc"; | ||
reg = <0x408000 0x1000>; | ||
interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-controller; | ||
#interrupt-cells = <3>; | ||
#mbox-cells = <2>; | ||
}; | ||
smp2p-modem { | ||
compatible = "qcom,smp2p"; | ||
interrupts-extended = <&ipcc_mproc IPCC_CLIENT_MPSS | ||
IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_EDGE_RISING>; | ||
mboxes = <&ipcc_mproc IPCC_CLIENT_MPSS IPCC_MPROC_SIGNAL_SMP2P>; | ||
/* Other SMP2P fields */ | ||
}; |
60 changes: 60 additions & 0 deletions
60
Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: "http://devicetree.org/schemas/mailbox/sprd-mailbox.yaml#" | ||
$schema: "http://devicetree.org/meta-schemas/core.yaml#" | ||
|
||
title: Spreadtrum mailbox controller bindings | ||
|
||
maintainers: | ||
- Orson Zhai <[email protected]> | ||
- Baolin Wang <[email protected]> | ||
- Chunyan Zhang <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- sprd,sc9860-mailbox | ||
|
||
reg: | ||
items: | ||
- description: inbox registers' base address | ||
- description: outbox registers' base address | ||
|
||
interrupts: | ||
items: | ||
- description: inbox interrupt | ||
- description: outbox interrupt | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
clock-names: | ||
items: | ||
- const: enable | ||
|
||
"#mbox-cells": | ||
const: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- "#mbox-cells" | ||
- clocks | ||
- clock-names | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
mailbox: mailbox@400a0000 { | ||
compatible = "sprd,sc9860-mailbox"; | ||
reg = <0 0x400a0000 0 0x8000>, <0 0x400a8000 0 0x8000>; | ||
#mbox-cells = <1>; | ||
clock-names = "enable"; | ||
clocks = <&aon_gate 53>; | ||
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14187,6 +14187,14 @@ L: [email protected] | |
S: Maintained | ||
F: drivers/iommu/qcom_iommu.c | ||
|
||
QUALCOMM IPCC MAILBOX DRIVER | ||
M: Manivannan Sadhasivam <[email protected]> | ||
L: [email protected] | ||
S: Supported | ||
F: Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml | ||
F: drivers/mailbox/qcom-ipcc.c | ||
F: include/dt-bindings/mailbox/qcom-ipcc.h | ||
|
||
QUALCOMM RMNET DRIVER | ||
M: Subash Abhinov Kasiviswanathan <[email protected]> | ||
M: Sean Tranchetti <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.