Skip to contentSkip to conversation

ieee802154: Add support for Cascoda CA8210

PATCH Superseded [email protected] 3 participants 6 messages Nov 3, 2016 – Nov 7, 2016

Subsystems (4)

v3 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

v3 cover ieee802154: Add support for Cascoda CA8210

From: Harry Morris <[email protected]>

This patchset adds a new device driver, documentation and build support for Cascoda's CA8210 IEEE 802.15.4 radio transceiver:
http://www.cascoda.com/products/ca-821x/

Harry Morris (3):
ieee802154: Add CA8210 IEEE 802.15.4 device driver
ieee802154: Add device tree documentation for CA8210
ieee802154: Add entry in MAINTAINTERS for CA8210 driver

 .../devicetree/bindings/net/ieee802154/ca8210.txt  |   28 +
 .../devicetree/bindings/vendor-prefixes.txt        |    1 +
 MAINTAINERS                                        |    9 +
 drivers/net/ieee802154/Kconfig                     |   18 +
 drivers/net/ieee802154/Makefile                    |    1 +
 drivers/net/ieee802154/ca8210.c                    | 3648 ++++++++++++++++++++
 6 files changed, 3705 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/ieee802154/ca8210.txt
 create mode 100644 drivers/net/ieee802154/ca8210.c

--
2.9.3.windows.1

#1 lore raw

PATCH v3 2/3 ieee802154: Add device tree documentation for CA8210

From: Harry Morris <[email protected]>

---
 .../devicetree/bindings/net/ieee802154/ca8210.txt  | 28 ++++++++++++++++++++++
 .../devicetree/bindings/vendor-prefixes.txt        |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/ieee802154/ca8210.txt
Documentation/devicetree/bindings/net/ieee802154/ca8210.txt new file +28 -0
new file mode 100644
index 0000000..0297ce8
@@ -0,0 +1,28 @@
+* CA8210 IEEE 802.15.4 *
+
+Required properties:
+	- compatible:           Should be "cascoda,ca8210"
+	- reg:                  Controlling chip select
+	- spi-max-frequency:    Maximum clock speed, should be *less than*
+	                        4000000
+	- spi-cpol:             Requires inverted clock polarity
+	- reset-gpio:           GPIO attached to reset
+	- irq-gpio:             GPIO attached to IRQ
+Optional properties:
+	- extclock-enable:      Include for the ca8210 to route its 16MHz clock
+	                        to an output
+	- extclock-freq:        Frequency in Hz of the external clock
+	- extclock-gpio:        GPIO of the ca8210 to output the clock on
+
+Example:
+	ca8210@0 {
+		compatible = "cascoda,ca8210";
+		reg = <0>;
+		spi-max-frequency = <3000000>;
+		spi-cpol;
+		reset-gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+		irq-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+		extclock-enable;
+		extclock-freq = 16000000;
+		extclock-gpio = 2;
+	};
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 24c6f65..6c5609f 100644
@@ -47,6 +47,7 @@ brcm	Broadcom Corporation
 buffalo	Buffalo, Inc.
 calxeda	Calxeda
 capella	Capella Microsystems, Inc
+cascoda	Cascoda, Ltd.
 cavium	Cavium, Inc.
 cdns	Cadence Design Systems Inc.
 ceva	Ceva, Inc.
Signature · 1 line
2.9.3.windows.1
#3 lore raw

PATCH v3 3/3 ieee802154: Add entry in MAINTAINTERS for CA8210 driver

In reply to [email protected]

From: Harry Morris <[email protected]>

---
 MAINTAINERS | 9 +++++++++
 1 file changed, 9 insertions(+)
MAINTAINERS +9 -0
index 5e925a2..cb3428f 100644
@@ -2829,6 +2829,15 @@ W:	http://www.linux-c6x.org/wiki/index.php/Main_Page
 S:	Maintained
 F:	arch/c6x/
 
+CA8210 IEEE-802.15.4 RADIO DRIVER
+M:	Harry Morris <[email protected]>
+M:	[email protected]
+L:	[email protected]
+W:	https://github.com/Cascoda/ca8210-linux.git
+S:	Maintained
+F:	drivers/net/ieee802154/ca8210.c
+F:	Documentation/devicetree/bindings/net/ieee802154/ca8210.txt
+
 CACHEFILES: FS-CACHE BACKEND FOR CACHING ON MOUNTED FILESYSTEMS
 M:	David Howells <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
Signature · 1 line
2.9.3.windows.1
#4 lore raw
In reply to [email protected]

Hi,

Quoted 6 lines · On 11/03/2016 04:50 PM, [email protected] wrote:

From: Harry Morris <[email protected]>

This patchset adds a new device driver, documentation and build support for Cascoda's CA8210 IEEE 802.15.4 radio transceiver:
http://www.cascoda.com/products/ca-821x/

I never get 1/3 on the linux-wpan mailinglist, I don't see them also on [0]. Maybe there is something wrong at your mail configuration? I guess the mail is simple too big. Don't know actually what's the size limit is...

btw: I see the mail on my other mail account (gmail one, please use [email protected]) that you use the old "db" values - we switched to mbm which is simple 3 dbm == 300 dbm.

This allows fine granularity dbm value -> 802.15.4 spec describes it as signed integer, but e.g. at86rf230 also support 1.7 dbm stuff.

E.g.

ca8210_hw->phy->transmit_power = 8;

whould be:

ca8210_hw->phy->transmit_power = 800;

See [1]. Please also check on which seems that this is missing:

lp->hw->phy->supported.cca_ed_levels = at86rf23x_ed_levels; lp->hw->phy->supported.cca_ed_levels_size = ARRAY_SIZE(at86rf23x_ed_levels);

the same for tx_powers and tx_powers_size if you support set_tx_power. Also begin please with the highest db value at array index [0].

- Alex

[0] http://www.spinics.net/lists/linux-wpan/
[1] http://lxr.free-electrons.com/source/drivers/net/ieee802154/at86rf230.c#L1609

#5 lore raw
In reply to [email protected]

Hello.

Quoted 11 lines · On 03/11/16 16:50, [email protected] wrote:

From: Harry Morris <[email protected]>

This patchset adds a new device driver, documentation and build support for Cascoda's CA8210 IEEE 802.15.4 radio transceiver:
http://www.cascoda.com/products/ca-821x/

Harry Morris (3):
ieee802154: Add CA8210 IEEE 802.15.4 device driver
ieee802154: Add device tree documentation for CA8210
ieee802154: Add entry in MAINTAINTERS for CA8210 driver

Quoted 9 lines
 .../devicetree/bindings/net/ieee802154/ca8210.txt  |   28 +
 .../devicetree/bindings/vendor-prefixes.txt        |    1 +
 MAINTAINERS                                        |    9 +
 drivers/net/ieee802154/Kconfig                     |   18 +
 drivers/net/ieee802154/Makefile                    |    1 +
 drivers/net/ieee802154/ca8210.c                    | 3648 ++++++++++++++++++++
 6 files changed, 3705 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/ieee802154/ca8210.txt
 create mode 100644 drivers/net/ieee802154/ca8210.c

Thanks for rebasing. The patches apply fine for me now.

Also good to see the versioning of the patchset. Another hint would be to explain the changes from one version to another in the cover letter e.g.:

V5:
o Fixed foo bar

That helps reviewers to keep track.

regards
Stefan Schmidt

Acked-by on v3 2/3
#2 lore raw

Re: [PATCH v3 2/3] ieee802154: Add device tree documentation for CA8210

In reply to [email protected]

Hello.

Quoted 49 lines · On 03/11/16 16:50, [email protected] wrote:

From: Harry Morris <[email protected]>

---
 .../devicetree/bindings/net/ieee802154/ca8210.txt  | 28 ++++++++++++++++++++++
 .../devicetree/bindings/vendor-prefixes.txt        |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/ieee802154/ca8210.txt
Documentation/devicetree/bindings/net/ieee802154/ca8210.txt new file +28 -0
new file mode 100644
index 0000000..0297ce8
@@ -0,0 +1,28 @@
+* CA8210 IEEE 802.15.4 *
+
+Required properties:
+	- compatible:           Should be "cascoda,ca8210"
+	- reg:                  Controlling chip select
+	- spi-max-frequency:    Maximum clock speed, should be *less than*
+	                        4000000
+	- spi-cpol:             Requires inverted clock polarity
+	- reset-gpio:           GPIO attached to reset
+	- irq-gpio:             GPIO attached to IRQ
+Optional properties:
+	- extclock-enable:      Include for the ca8210 to route its 16MHz clock
+	                        to an output
+	- extclock-freq:        Frequency in Hz of the external clock
+	- extclock-gpio:        GPIO of the ca8210 to output the clock on
+
+Example:
+	ca8210@0 {
+		compatible = "cascoda,ca8210";
+		reg = <0>;
+		spi-max-frequency = <3000000>;
+		spi-cpol;
+		reset-gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+		irq-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+		extclock-enable;
+		extclock-freq = 16000000;
+		extclock-gpio = 2;
+	};
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
index 24c6f65..6c5609f 100644

Documentation/devicetree/bindings/vendor-prefixes.txt brcm Broadcom Corporation · line 53

Quoted 7 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -47,6 +47,7 @@ brcm	Broadcom Corporation
 buffalo	Buffalo, Inc.
 calxeda	Calxeda
 capella	Capella Microsystems, Inc
+cascoda	Cascoda, Ltd.
 cavium	Cavium, Inc.
 cdns	Cadence Design Systems Inc.
 ceva	Ceva, Inc.

regards
Stefan Schmidt