f0b7d43c8a
The TI CC2521 is an RF power amplifier that is designed to interface with the CC2520. Conveniently, it directly interfaces with the CC2520 and does not require any pins to be connected to a microcontroller/processor. Adding a CC2591 increases the CC2520's range, which is useful for border router and other wall-powered applications. Using the CC2591 with the CC2520 requires configuring the CC2520 GPIOs that are connected to the CC2591 to correctly set the CC2591 into TX and RX modes. Further, TI recommends that the CC2520_TXPOWER and CC2520_AGCCTRL1 registers are set differently to maximize the CC2591's performance. These settings are covered in TI Application Note AN065. This patch adds an optional `amplified` field to the cc2520 entry in the device tree. If present, the CC2520 will be configured to operate with a CC2591. The expected pin mapping is: CC2520 GPIO0 --> CC2591 EN CC2520 GPIO5 --> CC2591 PAEN Signed-off-by: Brad Campbell <bradjc5@gmail.com> Acked-by: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
*CC2520 IEEE 802.15.4 Compatible Radio*
|
|
|
|
Required properties:
|
|
- compatible: should be "ti,cc2520"
|
|
- spi-max-frequency: maximal bus speed (8000000), should be set to 4000000 depends
|
|
sync or async operation mode
|
|
- reg: the chipselect index
|
|
- pinctrl-0: pin control group to be used for this controller.
|
|
- pinctrl-names: must contain a "default" entry.
|
|
- fifo-gpio: GPIO spec for the FIFO pin
|
|
- fifop-gpio: GPIO spec for the FIFOP pin
|
|
- sfd-gpio: GPIO spec for the SFD pin
|
|
- cca-gpio: GPIO spec for the CCA pin
|
|
- vreg-gpio: GPIO spec for the VREG pin
|
|
- reset-gpio: GPIO spec for the RESET pin
|
|
Optional properties:
|
|
- amplified: include if the CC2520 is connected to a CC2591 amplifier
|
|
|
|
Example:
|
|
cc2520@0 {
|
|
compatible = "ti,cc2520";
|
|
reg = <0>;
|
|
spi-max-frequency = <4000000>;
|
|
amplified;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&cc2520_cape_pins>;
|
|
fifo-gpio = <&gpio1 18 0>;
|
|
fifop-gpio = <&gpio1 19 0>;
|
|
sfd-gpio = <&gpio1 13 0>;
|
|
cca-gpio = <&gpio1 16 0>;
|
|
vreg-gpio = <&gpio0 31 0>;
|
|
reset-gpio = <&gpio1 12 0>;
|
|
};
|