Skip to content

Commit ec558bb

Browse files
Ayush1325gregkh
authored andcommitted
greybus: Add BeaglePlay Linux Driver
Add the Greybus host driver for BeaglePlay board by BeagleBoard.org. The current greybus setup involves running SVC in a user-space application (GBridge) and using netlink to communicate with kernel space. GBridge itself uses wpanusb kernel driver, so the greybus messages travel from kernel space (gb_netlink) to user-space (GBridge) and then back to kernel space (wpanusb) before reaching CC1352. This driver directly communicates with CC1352 (running SVC Zephyr application). Thus, it simplifies the complete greybus setup eliminating user-space GBridge. This driver is responsible for the following: - Start SVC (CC1352) on driver load. - Send/Receive Greybus messages to/from CC1352 using HDLC over UART. - Print Logs from CC1352. - Stop SVC (CC1352) on driver load. Signed-off-by: Ayush Singh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c966c71 commit ec558bb

File tree

4 files changed

+514
-0
lines changed

4 files changed

+514
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8996,6 +8996,7 @@ M: Ayush Singh <[email protected]>
89968996
L: [email protected] (moderated for non-subscribers)
89978997
S: Maintained
89988998
F: Documentation/devicetree/bindings/net/ti,cc1352p7.yaml
8999+
F: drivers/greybus/gb-beagleplay.c
89999000

90009001
GREYBUS SUBSYSTEM
90019002
M: Johan Hovold <[email protected]>

drivers/greybus/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ menuconfig GREYBUS
1717

1818
if GREYBUS
1919

20+
config GREYBUS_BEAGLEPLAY
21+
tristate "Greybus BeaglePlay driver"
22+
depends on SERIAL_DEV_BUS
23+
help
24+
Select this option if you have a BeaglePlay where CC1352
25+
co-processor acts as Greybus SVC.
26+
27+
To compile this code as a module, chose M here: the module
28+
will be called gb-beagleplay.ko
29+
2030
config GREYBUS_ES2
2131
tristate "Greybus ES3 USB host controller"
2232
depends on USB

drivers/greybus/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ obj-$(CONFIG_GREYBUS) += greybus.o
1818
# needed for trace events
1919
ccflags-y += -I$(src)
2020

21+
obj-$(CONFIG_GREYBUS_BEAGLEPLAY) += gb-beagleplay.o
22+
2123
# Greybus Host controller drivers
2224
gb-es2-y := es2.o
2325

0 commit comments

Comments
 (0)