Skip to content

Commit ded845a

Browse files
HarryMorrisholtmann
authored andcommitted
ieee802154: Add CA8210 IEEE 802.15.4 device driver
Add driver source and config for softMAC implementation of Cascoda's CA8210 IEEE 802.15.4 transceiver device. The driver mimics a common PHY-only implementation despite the CA8210 being a hardMAC device which exposes a SAP interface to the fully integrated MAC. The chip is a modem-only device with an integrated processor which runs the 802.15.4 MAC. The chip communicates via full-duplex SPI with additional pins for NIRQ and NRESET. The chip can also output its 16MHz clock to a GPIO with a configurable divider. The driver can be configured to implement a debugfs node that provides access to the SAP-based API to drive mechanisms not currently supported by the standard kernel interface. Signed-off-by: Harry Morris <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 212d718 commit ded845a

File tree

3 files changed

+3263
-0
lines changed

3 files changed

+3263
-0
lines changed

drivers/net/ieee802154/Kconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,25 @@ config IEEE802154_ADF7242
8282

8383
This driver can also be built as a module. To do so, say M here.
8484
the module will be called 'adf7242'.
85+
86+
config IEEE802154_CA8210
87+
tristate "Cascoda CA8210 transceiver driver"
88+
depends on IEEE802154_DRIVERS && MAC802154
89+
depends on SPI
90+
select COMMON_CLK
91+
---help---
92+
Say Y here to enable the CA8210 SPI 802.15.4 wireless
93+
controller.
94+
95+
This driver can also be built as a module. To do so, say M here.
96+
the module will be called 'ca8210'.
97+
98+
config IEEE802154_CA8210_DEBUGFS
99+
bool "CA8210 debugfs interface"
100+
depends on IEEE802154_CA8210
101+
depends on DEBUG_FS
102+
---help---
103+
This option compiles debugfs code for the ca8210 driver. This
104+
exposes a debugfs node for each CA8210 instance which allows
105+
direct use of the Cascoda API, exposing the 802.15.4 MAC
106+
management entities.

drivers/net/ieee802154/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ obj-$(CONFIG_IEEE802154_MRF24J40) += mrf24j40.o
44
obj-$(CONFIG_IEEE802154_CC2520) += cc2520.o
55
obj-$(CONFIG_IEEE802154_ATUSB) += atusb.o
66
obj-$(CONFIG_IEEE802154_ADF7242) += adf7242.o
7+
obj-$(CONFIG_IEEE802154_CA8210) += ca8210.o

0 commit comments

Comments
 (0)