dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver
Subsystems (3)
PATCH 2/2 mailbox: Add Broadcom STB mailbox driver
In reply to Jim QuinlanThis is a simple mailbox driver to be used by the SCMI protocol stack. It only implements the agent-to-platform channel; we may implement the platform-to-agent channel in the future. An unusual aspect of this driver is how the completion of an SCMI message is indicated. An SCMI message is initiated with an ARM SMC call, but the return of this call does not indicate the execution or completion of the message. Rather, the message's completion is signaled by an interrupt.
--- drivers/mailbox/Kconfig | 13 +++ drivers/mailbox/Makefile | 2 + drivers/mailbox/brcmstb-mailbox.c | 173 ++++++++++++++++++++++++++++++ 3 files changed, 188 insertions(+) create mode 100644 drivers/mailbox/brcmstb-mailbox.c
drivers/mailbox/Kconfig +13 -0
@@ -254,4 +254,17 @@ config QCOM_IPCC acts as an interrupt controller for receiving interrupts from clients. Say Y here if you want to build this driver. +config BRCMSTB_MBOX + tristate "Broadcom STB Mailbox" + depends on ARM64 || ARM + depends on ARM_SCMI_PROTOCOL && ARCH_BRCMSTB + depends on SMP + default ARM_SCMI_PROTOCOL && ARCH_BRCMSTB + help + Mailbox implementation of the Broadcom STB for the sole purposes + of SCMI communication. This is used by the SCMI drivers to + communicate with FW that runs in EL3. This mailbox only implements + the agent-to-platform channgel of SCMI but may be augmented in + the future to add the platform-to-agent channel. + endif
drivers/mailbox/Makefile +2 -0
@@ -54,3 +54,5 @@ obj-$(CONFIG_SUN6I_MSGBOX) += sun6i-msgbox.o obj-$(CONFIG_SPRD_MBOX) += sprd-mailbox.o obj-$(CONFIG_QCOM_IPCC) += qcom-ipcc.o + +obj-$(CONFIG_BRCMSTB_MBOX) += brcmstb-mailbox.o
drivers/mailbox/brcmstb-mailbox.c new file +173 -0
173 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 1/2 dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver
Bindings are added. Only one interrupt is needed because we do not yet employ the SCMI p2a channel.
--- .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml
Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml new file +39 -0
@@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$schema: "http://devicetree.org/meta-schemas/core.yaml#" +$id: http://devicetree.org/schemas/mailbox/brcm,brcmstb-mbox.yaml# + +title: Broadcom STB SCMI mailbox driver bindings + +maintainers: + - Jim Quinlan <[email protected]> + +properties: + compatible: + enum: + - brcm,brcmstb-mbox + + interrupts: + items: + - description: SCMI a2p return interrupt + + "#mbox-cells": + const: 1 + +required: + - compatible + - interrupts + - "#mbox-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + mailbox0: mailbox@0 { + compatible = "brcm,brcmstb-mailbox"; + #mbox-cells = <1>; + interrupts = <GIC_SPI 0xc6 IRQ_TYPE_LEVEL_HIGH>; + }; +...
Signature · 1 line
2.17.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v1 2/2] mailbox: Add Broadcom STB mailbox driver
In reply to Jim QuinlanHi Jim,
Quoted 22 lines · Jim Quinlan
This is a simple mailbox driver to be used by the SCMI protocol stack. It only implements the agent-to-platform channel; we may implement the platform-to-agent channel in the future. An unusual aspect of this driver is how the completion of an SCMI message is indicated. An SCMI message is initiated with an ARM SMC call, but the return of this call does not indicate the execution or completion of the message. Rather, the message's completion is signaled by an interrupt.
Signed-off-by Jim Quinlan <[email protected]>Signed-off-by Florian Fainelli <[email protected]>--- drivers/mailbox/Kconfig | 13 +++ drivers/mailbox/Makefile | 2 + drivers/mailbox/brcmstb-mailbox.c | 173 ++++++++++++++++++++++++++++++ 3 files changed, 188 insertions(+)create mode 100644
drivers/mailbox/brcmstb-mailbox.cdrivers/mailbox/Kconfig +0
-0
drivers/mailbox/Kconfig config QCOM_IPCC · line 261
Quoted 8 lines
drivers/mailbox/Kconfig +5
-0@@ -254,4 +254,17 @@ config QCOM_IPCC acts as an interrupt controller for receiving interrupts from clients. Say Y here if you want to build this driver. +config BRCMSTB_MBOX + tristate "Broadcom STB Mailbox" + depends on ARM64 || ARM + depends on ARM_SCMI_PROTOCOL && ARCH_BRCMSTB + depends on SMP
We can actually remove the SMP dependency cannot we? This was needed back when we used the hackish way of hooking to IPIs in the downstream kernel which we fortunately no longer do.
Signature · 6 lines
Florian _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Rob Herring
maintainerQuoted 15 lines · Jim Quinlan
Bindings are added. Only one interrupt is needed because we do not yet employ the SCMI p2a channel.
Signed-off-by Jim Quinlan <[email protected]>--- .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yamlDocumentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml new file +0
-0
Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml new file +7
-0@@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$schema: "http://devicetree.org/meta-schemas/core.yaml#" +$id: http://devicetree.org/schemas/mailbox/brcm,brcmstb-mbox.yaml# + +title: Broadcom STB SCMI mailbox driver bindings
I thought SCMI was a mailbox consumer, not provider?
Quoted 17 lines
Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml new file +17
-0+ +maintainers: + - Jim Quinlan <[email protected]> + +properties: + compatible: + enum: + - brcm,brcmstb-mbox + + interrupts: + items: + - description: SCMI a2p return interrupt + + "#mbox-cells": + const: 1 + +required:
Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml line 34
Quoted 10 lines
Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml new file +10
-0+ - compatible + - interrupts + - "#mbox-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + mailbox0: mailbox@0 {
Drop the label and unit-address.
Run 'make dt_binding_check' as it will tell you the latter.
Quoted 8 lines
Documentation/devicetree/bindings/mailbox/brcm,brcmstb-mbox.yaml new file +5
-0+ compatible = "brcm,brcmstb-mailbox"; + #mbox-cells = <1>; + interrupts = <GIC_SPI 0xc6 IRQ_TYPE_LEVEL_HIGH>; + }; +...Signature · 1 line
2.17.1