xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rpmsg/rpmsg-rockchip.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Rockchip RPMsg Platform Driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe Rockchip RPMsg Platform Driver is used for Remote Processors Messaging.
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunRequired Properties:
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun- compatible: should be one of the following.
8*4882a593Smuzhiyun    "rockchip,rk3568-rpmsg" for rk3568 SoCs.
9*4882a593Smuzhiyun- mbox-names: mailbox name for "rpmsg-rx" or "rpmsg-tx".
10*4882a593Smuzhiyun- mboxes: mailbox channel for rpmsg.
11*4882a593Smuzhiyun- rockchip,vdev-nums: number of rpmsg instance.
12*4882a593Smuzhiyun- rockchip,link-id: link_id of rpmsg instance. 4bit for master cpu_id and 4bit
13*4882a593Smuzhiyun    for remote cpu_id.
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunOptional Properties:
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunExample:
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	rpmsg: rpmsg {
20*4882a593Smuzhiyun		compatible = "rockchip,rk3568-rpmsg";
21*4882a593Smuzhiyun		mbox-names = "rpmsg-rx", "rpmsg-tx";
22*4882a593Smuzhiyun		mboxes = <&mailbox 0 &mailbox 3>;
23*4882a593Smuzhiyun		rockchip,vdev-nums = <1>;
24*4882a593Smuzhiyun		rockchip,link-id = <0x03>;
25*4882a593Smuzhiyun		reg = <0x0 0x7c00000 0x0 0x20000>;
26*4882a593Smuzhiyun		memory-region = <&rpmsg_dma_reserved>;
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun		status = "okay";
29*4882a593Smuzhiyun	};
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	reserved-memory {
32*4882a593Smuzhiyun		#address-cells = <2>;
33*4882a593Smuzhiyun		#size-cells = <2>;
34*4882a593Smuzhiyun		ranges;
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun		rpmsg_reserved: rpmsg@7c00000 {
37*4882a593Smuzhiyun			reg = <0x0 0x7c00000 0x0 0x400000>;
38*4882a593Smuzhiyun			no-map;
39*4882a593Smuzhiyun		};
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun		rpmsg_dma_reserved: rpmsg-dma@8000000 {
42*4882a593Smuzhiyun			compatible = "shared-dma-pool";
43*4882a593Smuzhiyun			reg = <0x0 0x8000000 0x0 0x100000>;
44*4882a593Smuzhiyun			no-map;
45*4882a593Smuzhiyun		};
46*4882a593Smuzhiyun	};
47