Skip to content

Commit ebb81c1

Browse files
committed
Merge tag 'mailbox-v5.14' of git://git.linaro.org/landing-teams/working/fujitsu/integration
Pull mailbox updates from Jassi Brar: - imx: add support for i.MX8ULP - mtk: code change around callback struct - qcom: add sm6125, MSM8939 fix for channel exhaustion - microchip: add support for polarfire controller - misc: cosmetic changes to bcm-2835,flexrm,pdc, arm-mhu and hisilicon * tag 'mailbox-v5.14' of git://git.linaro.org/landing-teams/working/fujitsu/integration: (26 commits) MAINTAINERS: add entry for polarfire soc mailbox dt-bindings: add bindings for polarfire soc system controller mbox: add polarfire soc system controller mailbox dt-bindings: add bindings for polarfire soc mailbox mailbox: imx: Avoid using val uninitialized in imx_mu_isr() mailbox: qcom: Add MSM8939 APCS support mailbox: qcom: Use PLATFORM_DEVID_AUTO to register platform device dt-bindings: mailbox: qcom: Add MSM8939 APCS compatible mailbox: qcom-apcs: Add SM6125 compatible dt-bindings: mailbox: Add binding for sm6125 mailbox: mtk-cmdq: Fix uninitialized variable in cmdq_mbox_flush() mailbox: bcm-flexrm-mailbox: Remove redundant dev_err call in flexrm_mbox_probe() mailbox: bcm2835: Remove redundant dev_err call in bcm2835_mbox_probe() mailbox: qcom-ipcc: Fix IPCC mbox channel exhaustion mailbox: mtk-cmdq: Add struct cmdq_pkt in struct cmdq_cb_data mailbox: mtk-cmdq: Use mailbox rx_callback mailbox: mtk-cmdq: Remove cmdq_cb_status mailbox: imx-mailbox: support i.MX8ULP MU mailbox: imx: add xSR/xCR register array mailbox: imx: replace the xTR/xRR array with single register ...
2 parents c0c6d20 + 4f19718 commit ebb81c1

20 files changed

+562
-102
lines changed

Documentation/devicetree/bindings/mailbox/fsl,mu.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
oneOf:
2727
- const: fsl,imx6sx-mu
2828
- const: fsl,imx7ulp-mu
29+
- const: fsl,imx8ulp-mu
2930
- const: fsl,imx8-mu-scu
3031
- items:
3132
- enum:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: "http://devicetree.org/schemas/mailbox/microchip,polarfire-soc-mailbox.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: Microchip PolarFire SoC (MPFS) MSS (microprocessor subsystem) mailbox controller
8+
9+
maintainers:
10+
- Conor Dooley <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: microchip,polarfire-soc-mailbox
15+
16+
reg:
17+
items:
18+
- description: mailbox data registers
19+
- description: mailbox interrupt registers
20+
21+
interrupts:
22+
maxItems: 1
23+
24+
"#mbox-cells":
25+
const: 1
26+
27+
required:
28+
- compatible
29+
- reg
30+
- interrupts
31+
- "#mbox-cells"
32+
33+
additionalProperties: false
34+
35+
examples:
36+
- |
37+
soc {
38+
#address-cells = <2>;
39+
#size-cells = <2>;
40+
mbox: mailbox@37020000 {
41+
compatible = "microchip,polarfire-soc-mailbox";
42+
reg = <0x0 0x37020000 0x0 0x1000>, <0x0 0x2000318c 0x0 0x40>;
43+
interrupt-parent = <&L1>;
44+
interrupts = <96>;
45+
#mbox-cells = <1>;
46+
};
47+
};

Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ properties:
1919
- qcom,ipq6018-apcs-apps-global
2020
- qcom,ipq8074-apcs-apps-global
2121
- qcom,msm8916-apcs-kpss-global
22+
- qcom,msm8939-apcs-kpss-global
2223
- qcom,msm8994-apcs-kpss-global
2324
- qcom,msm8996-apcs-hmss-global
2425
- qcom,msm8998-apcs-hmss-global
@@ -27,6 +28,7 @@ properties:
2728
- qcom,sc8180x-apss-shared
2829
- qcom,sdm660-apcs-hmss-global
2930
- qcom,sdm845-apss-shared
31+
- qcom,sm6125-apcs-hmss-global
3032
- qcom,sm8150-apss-shared
3133

3234
reg:
@@ -75,6 +77,7 @@ allOf:
7577
- qcom,sc7180-apss-shared
7678
- qcom,sdm660-apcs-hmss-global
7779
- qcom,sdm845-apss-shared
80+
- qcom,sm6125-apcs-hmss-global
7881
- qcom,sm8150-apss-shared
7982
then:
8083
properties:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: "http://devicetree.org/schemas/soc/microchip/microchip,polarfire-soc-sys-controller.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: Microchip PolarFire SoC (MPFS) MSS (microprocessor subsystem) system controller
8+
9+
maintainers:
10+
- Conor Dooley <[email protected]>
11+
12+
description: |
13+
The PolarFire SoC system controller is communicated with via a mailbox.
14+
This document describes the bindings for the client portion of that mailbox.
15+
16+
17+
properties:
18+
mboxes:
19+
maxItems: 1
20+
21+
compatible:
22+
const: microchip,polarfire-soc-sys-controller
23+
24+
required:
25+
- compatible
26+
- mboxes
27+
28+
additionalProperties: false
29+
30+
examples:
31+
- |
32+
syscontroller: syscontroller {
33+
compatible = "microchip,polarfire-soc-sys-controller";
34+
mboxes = <&mbox 0>;
35+
};

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10872,6 +10872,7 @@ S: Maintained
1087210872
F: drivers/mailbox/
1087310873
F: include/linux/mailbox_client.h
1087410874
F: include/linux/mailbox_controller.h
10875+
F: include/dt-bindings/mailbox/
1087510876
F: Documentation/devicetree/bindings/mailbox/
1087610877

1087710878
MAILBOX ARM MHUv2
@@ -15728,6 +15729,14 @@ F: arch/riscv/
1572815729
N: riscv
1572915730
K: riscv
1573015731

15732+
RISC-V/MICROCHIP POLARFIRE SOC SUPPORT
15733+
M: Lewis Hanly <[email protected]>
15734+
15735+
S: Supported
15736+
F: drivers/mailbox/mailbox-mpfs.c
15737+
F: drivers/soc/microchip/
15738+
F: include/soc/microchip/mpfs.h
15739+
1573115740
RNBD BLOCK DRIVERS
1573215741
M: Md. Haris Iqbal <[email protected]>
1573315742
M: Jack Wang <[email protected]>

drivers/mailbox/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ config MAILBOX_TEST
160160
Test client to help with testing new Controller driver
161161
implementations.
162162

163+
config POLARFIRE_SOC_MAILBOX
164+
tristate "PolarFire SoC (MPFS) Mailbox"
165+
depends on HAS_IOMEM
166+
depends on SOC_MICROCHIP_POLARFIRE || COMPILE_TEST
167+
help
168+
This driver adds support for the PolarFire SoC (MPFS) mailbox controller.
169+
170+
To compile this driver as a module, choose M here. the
171+
module will be called mailbox-mpfs.
172+
173+
If unsure, say N.
174+
163175
config QCOM_APCS_IPC
164176
tristate "Qualcomm APCS IPC driver"
165177
depends on ARCH_QCOM || COMPILE_TEST

drivers/mailbox/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ obj-$(CONFIG_BCM_PDC_MBOX) += bcm-pdc-mailbox.o
4141

4242
obj-$(CONFIG_BCM_FLEXRM_MBOX) += bcm-flexrm-mailbox.o
4343

44+
obj-$(CONFIG_POLARFIRE_SOC_MAILBOX) += mailbox-mpfs.o
45+
4446
obj-$(CONFIG_QCOM_APCS_IPC) += qcom-apcs-ipc-mailbox.o
4547

4648
obj-$(CONFIG_TEGRA_HSP_MBOX) += tegra-hsp.o

drivers/mailbox/arm_mhu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,8 @@ static int mhu_probe(struct amba_device *adev, const struct amba_id *id)
122122
return -ENOMEM;
123123

124124
mhu->base = devm_ioremap_resource(dev, &adev->res);
125-
if (IS_ERR(mhu->base)) {
126-
dev_err(dev, "ioremap failed\n");
125+
if (IS_ERR(mhu->base))
127126
return PTR_ERR(mhu->base);
128-
}
129127

130128
for (i = 0; i < MHU_CHANS; i++) {
131129
mhu->chan[i].con_priv = &mhu->mlink[i];

drivers/mailbox/bcm-flexrm-mailbox.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,6 @@ static int flexrm_mbox_probe(struct platform_device *pdev)
15231523
mbox->regs = devm_ioremap_resource(&pdev->dev, iomem);
15241524
if (IS_ERR(mbox->regs)) {
15251525
ret = PTR_ERR(mbox->regs);
1526-
dev_err(&pdev->dev, "Failed to remap mailbox regs: %d\n", ret);
15271526
goto fail;
15281527
}
15291528
regs_end = mbox->regs + resource_size(iomem);

drivers/mailbox/bcm-pdc-mailbox.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,6 @@ static int pdc_probe(struct platform_device *pdev)
15771577
pdcs->pdc_reg_vbase = devm_ioremap_resource(&pdev->dev, pdc_regs);
15781578
if (IS_ERR(pdcs->pdc_reg_vbase)) {
15791579
err = PTR_ERR(pdcs->pdc_reg_vbase);
1580-
dev_err(&pdev->dev, "Failed to map registers: %d\n", err);
15811580
goto cleanup_ring_pool;
15821581
}
15831582

0 commit comments

Comments
 (0)