Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: amplifiers: ad8366: add support for adrf5702/3

Add chip info structs and device table entries for ADRF5702 and ADRF5703
Digital Step Attenuators.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Rodrigo Alencar and committed by
Jonathan Cameron
d185324e 94e6fb62

+24
+2
drivers/iio/amplifiers/Kconfig
··· 18 18 AD8366 Dual-Digital Variable Gain Amplifier (VGA) 19 19 ADA4961 BiCMOS RF Digital Gain Amplifier (DGA) 20 20 ADL5240 Digitally controlled variable gain amplifier (VGA) 21 + ADRF5702: 0.125 dB LSB, 8-Bit, Silicon Digital Attenuator 22 + ADRF5703: 0.25 dB LSB, 7-Bit, Silicon Digital Attenuator 21 23 ADRF5720: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator 22 24 ADRF5730: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator 23 25 ADRF5731: 2 dB LSB, 4-Bit, Silicon Digital Attenuator
+22
drivers/iio/amplifiers/ad8366.c
··· 5 5 * AD8366 Dual-Digital Variable Gain Amplifier (VGA) 6 6 * ADA4961 BiCMOS RF Digital Gain Amplifier (DGA) 7 7 * ADL5240 Digitally controlled variable gain amplifier (VGA) 8 + * ADRF5702: 0.125 dB LSB, 8-Bit, Silicon Digital Attenuator, 50 MHz to 20 GHz 9 + * ADRF5703: 0.25 dB LSB, 7-Bit, Silicon Digital Attenuator, 9 kHz to 20 GHz 8 10 * ADRF5720: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator, 9 kHz to 40 GHz 9 11 * ADRF5730: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator, 100 MHz to 40 GHz 10 12 * ADRF5731: 2 dB LSB, 4-Bit, Silicon Digital Attenuator, 100 MHz to 40 GHz ··· 105 103 .gain_min = -11500, 106 104 .gain_max = 20000, 107 105 .gain_step = 500, 106 + .num_channels = 1, 107 + }; 108 + 109 + static const struct ad8366_info adrf5702_chip_info = { 110 + .name = "adrf5702", 111 + .gain_min = -31875, 112 + .gain_max = 0, 113 + .gain_step = -125, 114 + .num_channels = 1, 115 + }; 116 + 117 + static const struct ad8366_info adrf5703_chip_info = { 118 + .name = "adrf5703", 119 + .gain_min = -31750, 120 + .gain_max = 0, 121 + .gain_step = -250, 108 122 .num_channels = 1, 109 123 }; 110 124 ··· 355 337 { "ad8366", (kernel_ulong_t)&ad8366_chip_info }, 356 338 { "ada4961", (kernel_ulong_t)&ada4961_chip_info }, 357 339 { "adl5240", (kernel_ulong_t)&adl5240_chip_info }, 340 + { "adrf5702", (kernel_ulong_t)&adrf5702_chip_info }, 341 + { "adrf5703", (kernel_ulong_t)&adrf5703_chip_info }, 358 342 { "adrf5720", (kernel_ulong_t)&adrf5720_chip_info }, 359 343 { "adrf5730", (kernel_ulong_t)&adrf5730_chip_info }, 360 344 { "adrf5731", (kernel_ulong_t)&adrf5731_chip_info }, ··· 373 353 { .compatible = "adi,ad8366", .data = &ad8366_chip_info }, 374 354 { .compatible = "adi,ada4961", .data = &ada4961_chip_info }, 375 355 { .compatible = "adi,adl5240", .data = &adl5240_chip_info }, 356 + { .compatible = "adi,adrf5702", .data = &adrf5702_chip_info }, 357 + { .compatible = "adi,adrf5703", .data = &adrf5703_chip_info }, 376 358 { .compatible = "adi,adrf5720", .data = &adrf5720_chip_info }, 377 359 { .compatible = "adi,adrf5730", .data = &adrf5730_chip_info }, 378 360 { .compatible = "adi,adrf5731", .data = &adrf5731_chip_info },