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

iio: adis16400: Add ADIS16367 support

The ADIS16367 is mostly register compatible to the ADIS16360. The only
difference is the scale factor for the gyroscope output.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Lars-Peter Clausen and committed by
Jonathan Cameron
dc8615ce f1afda12

+14
+14
drivers/iio/imu/adis16400_core.c
··· 139 139 ADIS16360, 140 140 ADIS16362, 141 141 ADIS16364, 142 + ADIS16367, 142 143 ADIS16400, 143 144 ADIS16448, 144 145 }; ··· 765 764 .set_freq = adis16400_set_freq, 766 765 .get_freq = adis16400_get_freq, 767 766 }, 767 + [ADIS16367] = { 768 + .channels = adis16350_channels, 769 + .num_channels = ARRAY_SIZE(adis16350_channels), 770 + .flags = ADIS16400_HAS_PROD_ID | ADIS16400_HAS_SLOW_MODE | 771 + ADIS16400_HAS_SERIAL_NUMBER, 772 + .gyro_scale_micro = IIO_DEGREE_TO_RAD(2000), /* 0.2 deg/s */ 773 + .accel_scale_micro = IIO_G_TO_M_S_2(3333), /* 3.333 mg */ 774 + .temp_scale_nano = 136000000, /* 0.136 C */ 775 + .temp_offset = 25000000 / 136000, /* 25 C = 0x00 */ 776 + .set_freq = adis16400_set_freq, 777 + .get_freq = adis16400_get_freq, 778 + }, 768 779 [ADIS16400] = { 769 780 .channels = adis16400_channels, 770 781 .num_channels = ARRAY_SIZE(adis16400_channels), ··· 949 936 {"adis16362", ADIS16362}, 950 937 {"adis16364", ADIS16364}, 951 938 {"adis16365", ADIS16360}, 939 + {"adis16367", ADIS16367}, 952 940 {"adis16400", ADIS16400}, 953 941 {"adis16405", ADIS16400}, 954 942 {"adis16448", ADIS16448},