summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorBrad Campbell <bradjc5@gmail.com>2015-03-17 16:25:46 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-03-18 17:50:25 +0100
commitf0b7d43c8a28155f50adb087a563cfc97566e477 (patch)
tree6659bbd58eed4e872cc300c64f932de9fd9ace83 /include/linux/spi
parent0db055c934672bcbd9423cd5e729f602bec70a6e (diff)
downloadlinux-f0b7d43c8a28155f50adb087a563cfc97566e477.tar.gz
linux-f0b7d43c8a28155f50adb087a563cfc97566e477.tar.bz2
linux-f0b7d43c8a28155f50adb087a563cfc97566e477.zip
cc2520: Add support for CC2591 amplifier.
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>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/cc2520.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spi/cc2520.h b/include/linux/spi/cc2520.h
index 85b8ee67e937..e741e8baad92 100644
--- a/include/linux/spi/cc2520.h
+++ b/include/linux/spi/cc2520.h
@@ -21,6 +21,7 @@ struct cc2520_platform_data {
int sfd;
int reset;
int vreg;
+ bool amplified;
};
#endif