Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1186761 > unrolled thread
| Started by | Lee Jones <lee.jones@linaro.org> |
|---|---|
| First post | 2015-07-17 14:10 +0200 |
| Last post | 2015-07-17 14:10 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/6] Mailbox: Provide support STi based platforms Lee Jones <lee.jones@linaro.org> - 2015-07-17 14:10 +0200
[PATCH 4/6] ARM: STi: stih407-family: Add nodes for Mailbox Lee Jones <lee.jones@linaro.org> - 2015-07-17 14:10 +0200
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2015-07-17 14:10 +0200 |
| Subject | [PATCH 0/6] Mailbox: Provide support STi based platforms |
| Message-ID | <pNcCK-4Yl-9@gated-at.bofh.it> |
ST's platforms currently support a maximum of 5 Mailboxes, one for each of the supported co-processors situated on the platform. Each Mailbox is divided up into 4 instances which consist of 32 channels. Messages are passed between the application and co-processors using shared memory areas. Also included in the set is an example Client which should be generic enough to use as a testing environment for all Mailbox IPs which use shared memory to pass messages. With a small change, it should also be able to test more extravagant implementations too. Lee Jones (6): mailbox: dt: Supply bindings for ST's Mailbox IP mailbox: dt-bindings: Add shared [driver <=> device tree] defines mailbox: Add support for ST's Mailbox IP ARM: STi: stih407-family: Add nodes for Mailbox mailbox: Add generic mechanism for testing Mailbox Controllers ARM: STi: DT: STiH407: Enable Mailbox testing facility .../devicetree/bindings/mailbox/sti-mailbox.txt | 53 ++ arch/arm/boot/dts/stih407-family.dtsi | 40 ++ drivers/mailbox/Kconfig | 14 + drivers/mailbox/Makefile | 4 + drivers/mailbox/mailbox-sti.c | 562 +++++++++++++++++++++ drivers/mailbox/mailbox-test.c | 210 ++++++++ include/dt-bindings/mailbox/mailbox.h | 14 + 7 files changed, 897 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/sti-mailbox.txt create mode 100644 drivers/mailbox/mailbox-sti.c create mode 100644 drivers/mailbox/mailbox-test.c create mode 100644 include/dt-bindings/mailbox/mailbox.h -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Date | 2015-07-17 14:10 +0200 |
| Subject | [PATCH 4/6] ARM: STi: stih407-family: Add nodes for Mailbox |
| Message-ID | <pNcCL-4Yl-29@gated-at.bofh.it> |
| In reply to | #1186761 |
This patch supplies the Mailbox Controller nodes. In order to
request channels, these nodes will be referenced by Mailbox
Client nodes.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
arch/arm/boot/dts/stih407-family.dtsi | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi
index 838b812..c061d11 100644
--- a/arch/arm/boot/dts/stih407-family.dtsi
+++ b/arch/arm/boot/dts/stih407-family.dtsi
@@ -11,6 +11,7 @@
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/reset-controller/stih407-resets.h>
#include <dt-bindings/interrupt-controller/irq-st.h>
+#include <dt-bindings/mailbox/mailbox.h>
/ {
#address-cells = <1>;
#size-cells = <1>;
@@ -565,5 +566,38 @@
<&phy_port2 PHY_TYPE_USB3>;
};
};
+
+ mailbox0: mailbox@0 {
+ compatible = "st,stih407-mailbox";
+ reg = <0x8f00000 0x1000>;
+ interrupts = <GIC_SPI 1 IRQ_TYPE_NONE>;
+ #mbox-cells = <3>;
+ mbox-name = "a9";
+ status = "okay";
+ };
+
+ mailbox1: mailbox@1 {
+ compatible = "st,stih407-mailbox";
+ reg = <0x8f01000 0x1000>;
+ #mbox-cells = <3>;
+ mbox-name = "st231_gp_1";
+ status = "okay";
+ };
+
+ mailbox2: mailbox@2 {
+ compatible = "st,stih407-mailbox";
+ reg = <0x8f02000 0x1000>;
+ #mbox-cells = <3>;
+ mbox-name = "st231_gp_0";
+ status = "okay";
+ };
+
+ mailbox3: mailbox@3 {
+ compatible = "st,stih407-mailbox";
+ reg = <0x8f03000 0x1000>;
+ #mbox-cells = <3>;
+ mbox-name = "st231_audio_video";
+ status = "okay";
+ };
};
};
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web