18c2ecf20Sopenharmony_ciWhat: /sys/bus/rpmsg/devices/.../name 28c2ecf20Sopenharmony_ciDate: June 2011 38c2ecf20Sopenharmony_ciKernelVersion: 3.3 48c2ecf20Sopenharmony_ciContact: Ohad Ben-Cohen <ohad@wizery.com> 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci Every rpmsg device is a communication channel with a remote 78c2ecf20Sopenharmony_ci processor. Channels are identified with a (textual) name, 88c2ecf20Sopenharmony_ci which is maximum 32 bytes long (defined as RPMSG_NAME_SIZE in 98c2ecf20Sopenharmony_ci rpmsg.h). 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci This sysfs entry contains the name of this channel. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciWhat: /sys/bus/rpmsg/devices/.../src 148c2ecf20Sopenharmony_ciDate: June 2011 158c2ecf20Sopenharmony_ciKernelVersion: 3.3 168c2ecf20Sopenharmony_ciContact: Ohad Ben-Cohen <ohad@wizery.com> 178c2ecf20Sopenharmony_ciDescription: 188c2ecf20Sopenharmony_ci Every rpmsg device is a communication channel with a remote 198c2ecf20Sopenharmony_ci processor. Channels have a local ("source") rpmsg address, 208c2ecf20Sopenharmony_ci and remote ("destination") rpmsg address. When an entity 218c2ecf20Sopenharmony_ci starts listening on one end of a channel, it assigns it with 228c2ecf20Sopenharmony_ci a unique rpmsg address (a 32 bits integer). This way when 238c2ecf20Sopenharmony_ci inbound messages arrive to this address, the rpmsg core 248c2ecf20Sopenharmony_ci dispatches them to the listening entity (a kernel driver). 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci This sysfs entry contains the src (local) rpmsg address 278c2ecf20Sopenharmony_ci of this channel. If it contains 0xffffffff, then an address 288c2ecf20Sopenharmony_ci wasn't assigned (can happen if no driver exists for this 298c2ecf20Sopenharmony_ci channel). 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciWhat: /sys/bus/rpmsg/devices/.../dst 328c2ecf20Sopenharmony_ciDate: June 2011 338c2ecf20Sopenharmony_ciKernelVersion: 3.3 348c2ecf20Sopenharmony_ciContact: Ohad Ben-Cohen <ohad@wizery.com> 358c2ecf20Sopenharmony_ciDescription: 368c2ecf20Sopenharmony_ci Every rpmsg device is a communication channel with a remote 378c2ecf20Sopenharmony_ci processor. Channels have a local ("source") rpmsg address, 388c2ecf20Sopenharmony_ci and remote ("destination") rpmsg address. When an entity 398c2ecf20Sopenharmony_ci starts listening on one end of a channel, it assigns it with 408c2ecf20Sopenharmony_ci a unique rpmsg address (a 32 bits integer). This way when 418c2ecf20Sopenharmony_ci inbound messages arrive to this address, the rpmsg core 428c2ecf20Sopenharmony_ci dispatches them to the listening entity. 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci This sysfs entry contains the dst (remote) rpmsg address 458c2ecf20Sopenharmony_ci of this channel. If it contains 0xffffffff, then an address 468c2ecf20Sopenharmony_ci wasn't assigned (can happen if the kernel driver that 478c2ecf20Sopenharmony_ci is attached to this channel is exposing a service to the 488c2ecf20Sopenharmony_ci remote processor. This make it a local rpmsg server, 498c2ecf20Sopenharmony_ci and it is listening for inbound messages that may be sent 508c2ecf20Sopenharmony_ci from any remote rpmsg client; it is not bound to a single 518c2ecf20Sopenharmony_ci remote entity). 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ciWhat: /sys/bus/rpmsg/devices/.../announce 548c2ecf20Sopenharmony_ciDate: June 2011 558c2ecf20Sopenharmony_ciKernelVersion: 3.3 568c2ecf20Sopenharmony_ciContact: Ohad Ben-Cohen <ohad@wizery.com> 578c2ecf20Sopenharmony_ciDescription: 588c2ecf20Sopenharmony_ci Every rpmsg device is a communication channel with a remote 598c2ecf20Sopenharmony_ci processor. Channels are identified by a textual name (see 608c2ecf20Sopenharmony_ci /sys/bus/rpmsg/devices/.../name above) and have a local 618c2ecf20Sopenharmony_ci ("source") rpmsg address, and remote ("destination") rpmsg 628c2ecf20Sopenharmony_ci address. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci A channel is first created when an entity, whether local 658c2ecf20Sopenharmony_ci or remote, starts listening on it for messages (and is thus 668c2ecf20Sopenharmony_ci called an rpmsg server). 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci When that happens, a "name service" announcement is sent 698c2ecf20Sopenharmony_ci to the other processor, in order to let it know about the 708c2ecf20Sopenharmony_ci creation of the channel (this way remote clients know they 718c2ecf20Sopenharmony_ci can start sending messages). 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci This sysfs entry tells us whether the channel is a local 748c2ecf20Sopenharmony_ci server channel that is announced (values are either 758c2ecf20Sopenharmony_ci true or false). 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciWhat: /sys/bus/rpmsg/devices/.../driver_override 788c2ecf20Sopenharmony_ciDate: April 2018 798c2ecf20Sopenharmony_ciKernelVersion: 4.18 808c2ecf20Sopenharmony_ciContact: Bjorn Andersson <bjorn.andersson@linaro.org> 818c2ecf20Sopenharmony_ciDescription: 828c2ecf20Sopenharmony_ci Every rpmsg device is a communication channel with a remote 838c2ecf20Sopenharmony_ci processor. Channels are identified by a textual name (see 848c2ecf20Sopenharmony_ci /sys/bus/rpmsg/devices/.../name above) and have a local 858c2ecf20Sopenharmony_ci ("source") rpmsg address, and remote ("destination") rpmsg 868c2ecf20Sopenharmony_ci address. 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci The listening entity (or client) which communicates with a 898c2ecf20Sopenharmony_ci remote processor is referred as rpmsg driver. The rpmsg device 908c2ecf20Sopenharmony_ci and rpmsg driver are matched based on rpmsg device name and 918c2ecf20Sopenharmony_ci rpmsg driver ID table. 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ci This sysfs entry allows the rpmsg driver for a rpmsg device 948c2ecf20Sopenharmony_ci to be specified which will override standard OF, ID table 958c2ecf20Sopenharmony_ci and name matching. 96