* [PATCH v1 0/3] mailbox: rockchip: Add mailbox driver for Rockchip platform
@ 2015-10-27 7:31 Caesar Wang
[not found] ` <1445931106-683-1-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-10-27 7:31 ` [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes Caesar Wang
0 siblings, 2 replies; 8+ messages in thread
From: Caesar Wang @ 2015-10-27 7:31 UTC (permalink / raw)
To: Heiko Stuebner, Jassi Brar
Cc: frank.wang-TNX95d0MmH7DzftRWevZcw,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Caesar Wang,
devicetree-u79uwXL29TY76Z2rM5mHXA, Lorenzo Pieralisi,
Olof Johansson, Kumar Gala, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
Ian Campbell, Rob Herring, Pawel Moll, Will Deacon, Mark Rutland,
Catalin Marinas,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Mailbox is used by the Rockchip CPU cores to communicate
requests to MCU processor.
This driver is found on RK3368 SoCs.
The Mailbox module is a simple APB peripheral that allows both
the Cortex-A53 MCU system to communicate by writing operation to
generate interrupt.
The registers are accessible by both CPU via APB interface.
Tested on RK3368 SDK board.
Changes in v1:
- PATCH[1/3] doc:
- As the Rob Herring comments, s/share/shared/ and specify the value of #mbox-cells.
- Move the shared memory in mailbox, let's move the property the client
driver in the future.
- PATCH[2/3] driver:
- The commit: %s/@/(num order).
- Add the module authors to instead of the notes.
- Add the COMPILE_TEST to auto compile test in Kconfig.
- Let the chan_to_idx() trys to instead of rockchip_mbox_chan.idx.
- Let's enable/disable the interrupt in startup/shutdown.
- Move the share memory and tx buf into the client drivers.
- PATCH[3/3] dts:
- fix "processormZ"--> "processor",the miss-fingerboard.
- Remove the shared memory in mailbox controller dtsi.
Caesar Wang (3):
dt-bindings: rockchip-mailbox: Add mailbox controller document on
Rockchip SoCs
mailbox: rockchip: Add Rockchip mailbox driver
ARM64: dts: rk3368: Add mailbox device nodes
.../bindings/mailbox/rockchip-mailbox.txt | 32 +++
arch/arm64/boot/dts/rockchip/rk3368.dtsi | 12 +
drivers/mailbox/Kconfig | 9 +
drivers/mailbox/Makefile | 2 +
drivers/mailbox/rockchip-mailbox.c | 286 +++++++++++++++++++++
5 files changed, 341 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt
create mode 100644 drivers/mailbox/rockchip-mailbox.c
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v1 1/3] dt-bindings: rockchip-mailbox: Add mailbox controller document on Rockchip SoCs
[not found] ` <1445931106-683-1-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2015-10-27 7:31 ` Caesar Wang
2015-10-27 8:10 ` Rob Herring
0 siblings, 1 reply; 8+ messages in thread
From: Caesar Wang @ 2015-10-27 7:31 UTC (permalink / raw)
To: Heiko Stuebner, Jassi Brar
Cc: frank.wang-TNX95d0MmH7DzftRWevZcw,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Caesar Wang,
devicetree-u79uwXL29TY76Z2rM5mHXA, Kumar Gala,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ian Campbell, Rob Herring,
Pawel Moll, Mark Rutland,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
This add the necessary binding documentation for mailbox
found on RK3368 SoC.
Signed-off-by: Caesar Wang <wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
---
Changes in v1:
- PATCH[1/3] doc:
- As the Rob Herring comments, s/share/shared/ and specify the value of #mbox-cells.
- Move the shared memory in mailbox, let's move the property the client
driver in the future.
.../bindings/mailbox/rockchip-mailbox.txt | 32 ++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt
diff --git a/Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt b/Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt
new file mode 100644
index 0000000..b6bb84a
--- /dev/null
+++ b/Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt
@@ -0,0 +1,32 @@
+Rockchip mailbox
+
+The Rockchip mailbox is used by the Rockchip CPU cores to communicate
+requests to MCU processor.
+
+Refer to ./mailbox.txt for generic information about mailbox device-tree
+bindings.
+
+Required properties:
+
+ - compatible: should be one of the following.
+ - "rockchip,rk3368-mbox" for rk3368
+ - reg: physical base address of the controller and length of memory mapped
+ region.
+ - interrupts: The interrupt number to the cpu. The interrupt specifier format
+ depends on the interrupt controller.
+ - #mbox-cells: Common mailbox binding property to identify the number
+ of cells required for the mailbox specifier. Should be 1
+
+Example:
+--------
+
+/* RK3368 */
+mbox: mbox@ff6b0000 {
+ compatible = "rockchip,rk3368-mailbox";
+ reg = <0x0 0xff6b0000 0x0 0x1000>,
+ interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
+ #mbox-cells = <1>;
+};
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes
2015-10-27 7:31 [PATCH v1 0/3] mailbox: rockchip: Add mailbox driver for Rockchip platform Caesar Wang
[not found] ` <1445931106-683-1-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2015-10-27 7:31 ` Caesar Wang
[not found] ` <1445931106-683-4-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-03-17 0:30 ` Heiko Stübner
1 sibling, 2 replies; 8+ messages in thread
From: Caesar Wang @ 2015-10-27 7:31 UTC (permalink / raw)
To: Heiko Stuebner, Jassi Brar
Cc: frank.wang, linux-rockchip, Caesar Wang, devicetree,
Lorenzo Pieralisi, Kumar Gala, linux-kernel, Ian Campbell,
Rob Herring, Pawel Moll, Will Deacon, Mark Rutland,
Olof Johansson, Catalin Marinas, linux-arm-kernel
This adds mailbox device nodes in dts.
Mailbox is used by the Rockchip CPU cores to communicate
requests to MCU processor.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
---
Changes in v1:
- PATCH[3/3] dts:
- fix "processormZ"--> "processor",the miss-fingerboard.
- Remove the shared memory in mailbox controller dtsi.
arch/arm64/boot/dts/rockchip/rk3368.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
index cc093a4..cefdad3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
@@ -484,6 +484,18 @@
status = "disabled";
};
+ mbox: mbox@ff6b0000 {
+ compatible = "rockchip,rk3368-mailbox";
+ reg = <0x0 0xff6b0000 0x0 0x1000>,
+ interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru PCLK_MAILBOX>;
+ clock-names = "pclk_mailbox";
+ #mbox-cells = <1>;
+ };
+
pmugrf: syscon@ff738000 {
compatible = "rockchip,rk3368-pmugrf", "syscon";
reg = <0x0 0xff738000 0x0 0x1000>;
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v1 1/3] dt-bindings: rockchip-mailbox: Add mailbox controller document on Rockchip SoCs
2015-10-27 7:31 ` [PATCH v1 1/3] dt-bindings: rockchip-mailbox: Add mailbox controller document on Rockchip SoCs Caesar Wang
@ 2015-10-27 8:10 ` Rob Herring
0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2015-10-27 8:10 UTC (permalink / raw)
To: Caesar Wang
Cc: Heiko Stuebner, Jassi Brar, frank.wang, linux-rockchip,
devicetree@vger.kernel.org, Kumar Gala,
linux-kernel@vger.kernel.org, Ian Campbell, Pawel Moll,
Mark Rutland, linux-arm-kernel@lists.infradead.org
On Tue, Oct 27, 2015 at 2:31 AM, Caesar Wang <wxt@rock-chips.com> wrote:
> This add the necessary binding documentation for mailbox
> found on RK3368 SoC.
>
> Signed-off-by: Caesar Wang <wxt@rock-chips.com>
> ---
>
> Changes in v1:
> - PATCH[1/3] doc:
> - As the Rob Herring comments, s/share/shared/ and specify the value of #mbox-cells.
> - Move the shared memory in mailbox, let's move the property the client
> driver in the future.
Acked-by: Rob Herring <robh@kernel.org>
>
> .../bindings/mailbox/rockchip-mailbox.txt | 32 ++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt
>
> diff --git a/Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt b/Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt
> new file mode 100644
> index 0000000..b6bb84a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mailbox/rockchip-mailbox.txt
> @@ -0,0 +1,32 @@
> +Rockchip mailbox
> +
> +The Rockchip mailbox is used by the Rockchip CPU cores to communicate
> +requests to MCU processor.
> +
> +Refer to ./mailbox.txt for generic information about mailbox device-tree
> +bindings.
> +
> +Required properties:
> +
> + - compatible: should be one of the following.
> + - "rockchip,rk3368-mbox" for rk3368
> + - reg: physical base address of the controller and length of memory mapped
> + region.
> + - interrupts: The interrupt number to the cpu. The interrupt specifier format
> + depends on the interrupt controller.
> + - #mbox-cells: Common mailbox binding property to identify the number
> + of cells required for the mailbox specifier. Should be 1
> +
> +Example:
> +--------
> +
> +/* RK3368 */
> +mbox: mbox@ff6b0000 {
> + compatible = "rockchip,rk3368-mailbox";
> + reg = <0x0 0xff6b0000 0x0 0x1000>,
> + interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
> + #mbox-cells = <1>;
> +};
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes
[not found] ` <1445931106-683-4-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2015-10-27 20:33 ` kbuild test robot
2015-10-28 8:12 ` Caesar Wang
2016-03-11 4:21 ` Caesar Wang
1 sibling, 1 reply; 8+ messages in thread
From: kbuild test robot @ 2015-10-27 20:33 UTC (permalink / raw)
Cc: kbuild-all-JC7UmRfGjtg, Heiko Stuebner, Jassi Brar,
frank.wang-TNX95d0MmH7DzftRWevZcw,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Caesar Wang,
devicetree-u79uwXL29TY76Z2rM5mHXA, Lorenzo Pieralisi, Kumar Gala,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ian Campbell, Rob Herring,
Pawel Moll, Will Deacon, Mark Rutland, Olof Johansson,
Catalin Marinas,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
Hi Caesar,
[auto build test ERROR on rockchip/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Caesar-Wang/mailbox-rockchip-Add-mailbox-driver-for-Rockchip-platform/20151027-153608
config: arm64-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64
All errors (new ones prefixed by >>):
>> Error: arch/arm64/boot/dts/rockchip/rk3368.dtsi:490.3-4 syntax error
FATAL ERROR: Unable to parse input tree
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 45779 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes
2015-10-27 20:33 ` kbuild test robot
@ 2015-10-28 8:12 ` Caesar Wang
0 siblings, 0 replies; 8+ messages in thread
From: Caesar Wang @ 2015-10-28 8:12 UTC (permalink / raw)
To: kbuild test robot
Cc: Caesar Wang, Mark Rutland, devicetree, Lorenzo Pieralisi,
Heiko Stuebner, Pawel Moll, Ian Campbell, frank.wang,
Catalin Marinas, Jassi Brar, Will Deacon, linux-kernel,
linux-rockchip, Rob Herring, kbuild-all, Kumar Gala,
Olof Johansson, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
Hi smart robot,
在 2015年10月28日 04:33, kbuild test robot 写道:
> Hi Caesar,
>
> [auto build test ERROR on rockchip/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
>
> url: https://github.com/0day-ci/linux/commits/Caesar-Wang/mailbox-rockchip-Add-mailbox-driver-for-Rockchip-platform/20151027-153608
> config: arm64-allyesconfig (attached as .config)
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # save the attached .config to linux build tree
> make.cross ARCH=arm64
>
> All errors (new ones prefixed by >>):
>
>>> Error: arch/arm64/boot/dts/rockchip/rk3368.dtsi:490.3-4 syntax error
> FATAL ERROR: Unable to parse input tree
>
Thanks for pointing out my figner wrong.
- reg = <0x0 0xff6b0000 0x0 0x1000>,
+ reg = <0x0 0xff6b0000 0x0 0x1000>;
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
> [attachment]
>
> .config.gz
> download: http://u.163.com/t0/av3utwEyL
>
>
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
[-- Attachment #2: Type: text/html, Size: 2821 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes
[not found] ` <1445931106-683-4-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-10-27 20:33 ` kbuild test robot
@ 2016-03-11 4:21 ` Caesar Wang
1 sibling, 0 replies; 8+ messages in thread
From: Caesar Wang @ 2016-03-11 4:21 UTC (permalink / raw)
To: Heiko Stuebner
Cc: Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA,
Lorenzo Pieralisi, Pawel Moll, Ian Campbell,
frank.wang-TNX95d0MmH7DzftRWevZcw, Catalin Marinas, Jassi Brar,
Will Deacon, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
Kumar Gala, Olof Johansson,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Caesar Wang
于 2015年10月27日 15:31, Caesar Wang 写道:
> This adds mailbox device nodes in dts.
>
> Mailbox is used by the Rockchip CPU cores to communicate
> requests to MCU processor.
>
> Signed-off-by: Caesar Wang <wxt@rock-chips.com>
> ---
>
> Changes in v1:
> - PATCH[3/3] dts:
> - fix "processormZ"--> "processor",the miss-fingerboard.
> - Remove the shared memory in mailbox controller dtsi.
>
> arch/arm64/boot/dts/rockchip/rk3368.dtsi | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
> index cc093a4..cefdad3 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
> @@ -484,6 +484,18 @@
> status = "disabled";
> };
>
> + mbox: mbox@ff6b0000 {
> + compatible = "rockchip,rk3368-mailbox";
> + reg = <0x0 0xff6b0000 0x0 0x1000>,
s/,/;
> + interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cru PCLK_MAILBOX>;
> + clock-names = "pclk_mailbox";
> + #mbox-cells = <1>;
> + };
> +
> pmugrf: syscon@ff738000 {
> compatible = "rockchip,rk3368-pmugrf", "syscon";
> reg = <0x0 0xff738000 0x0 0x1000>;
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes
2015-10-27 7:31 ` [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes Caesar Wang
[not found] ` <1445931106-683-4-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2016-03-17 0:30 ` Heiko Stübner
1 sibling, 0 replies; 8+ messages in thread
From: Heiko Stübner @ 2016-03-17 0:30 UTC (permalink / raw)
To: Caesar Wang
Cc: Jassi Brar, frank.wang, linux-rockchip, devicetree,
Lorenzo Pieralisi, Kumar Gala, linux-kernel, Ian Campbell,
Rob Herring, Pawel Moll, Will Deacon, Mark Rutland,
Olof Johansson, Catalin Marinas, linux-arm-kernel
Am Dienstag, 27. Oktober 2015, 15:31:46 schrieb Caesar Wang:
> This adds mailbox device nodes in dts.
>
> Mailbox is used by the Rockchip CPU cores to communicate
> requests to MCU processor.
>
> Signed-off-by: Caesar Wang <wxt@rock-chips.com>
applied to my dts64 branch for 4.7
Thanks
Heiko
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-03-17 0:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 7:31 [PATCH v1 0/3] mailbox: rockchip: Add mailbox driver for Rockchip platform Caesar Wang
[not found] ` <1445931106-683-1-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-10-27 7:31 ` [PATCH v1 1/3] dt-bindings: rockchip-mailbox: Add mailbox controller document on Rockchip SoCs Caesar Wang
2015-10-27 8:10 ` Rob Herring
2015-10-27 7:31 ` [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes Caesar Wang
[not found] ` <1445931106-683-4-git-send-email-wxt-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-10-27 20:33 ` kbuild test robot
2015-10-28 8:12 ` Caesar Wang
2016-03-11 4:21 ` Caesar Wang
2016-03-17 0:30 ` Heiko Stübner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).