Home
last modified time | relevance | path

Searched full:sync_scale (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/iio/imu/
Dadis16480.c344 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16480_set_freq()
348 * 3. The last result becomes the IMU sample rate. Use that to calculate SYNC_SCALE in adis16480_set_freq()
353 int sync_scale; in adis16480_set_freq() local
378 sync_scale = scaled_rate / st->clk_freq; in adis16480_set_freq()
379 ret = __adis_write_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, sync_scale); in adis16480_set_freq()
406 u16 sync_scale; in adis16480_get_freq() local
408 ret = __adis_read_reg_16(&st->adis, ADIS16495_REG_SYNC_SCALE, &sync_scale); in adis16480_get_freq()
412 sample_rate = st->clk_freq * sync_scale; in adis16480_get_freq()
1705 u16 sync_scale; in adis16480_probe() local
1708 * In PPS mode, the IMU sample rate is the clk_freq * sync_scale. Hence, in adis16480_probe()
[all …]
Dadis16475.c305 u16 sync_scale; in adis16475_get_freq() local
307 ret = __adis_read_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, &sync_scale); in adis16475_get_freq()
311 sample_rate = st->clk_freq * sync_scale; in adis16475_get_freq()
342 * the input clock. Hence, calculating the sync_scale dynamically gives us better in adis16475_set_freq()
346 * 3. The last result becomes the IMU sample rate. Use that to calculate SYNC_SCALE in adis16475_set_freq()
351 int sync_scale; in adis16475_set_freq() local
377 sync_scale = scaled_rate / st->clk_freq; in adis16475_set_freq()
378 ret = __adis_write_reg_16(&st->adis, ADIS16475_REG_UP_SCALE, sync_scale); in adis16475_set_freq()
1824 * In sync scaled mode, the IMU sample rate is the clk_freq * sync_scale. in adis16475_config_sync_mode()
/linux-6.12.1/Documentation/devicetree/bindings/iio/imu/
Dadi,adis16480.yaml77 frequency and the scale factor in the SYNC_SCALE register, see