MPU-9250
mpu9250-overlay.dts
// Definitions for MPU6050
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
clock-frequency = <400000>;
mpu6050: mpu6050@68 {
compatible = "invensense,mpu9250";
reg = <0x68>;
interrupt-parent = <&gpio>;
interrupts = <4 1>;
};
};
};
__overrides__ {
interrupt = <&mpu6050>,"interrupts:0";
};
};
[ 192.516802] ------------[ cut here ]------------
[ 192.516857] WARNING: CPU: 0 PID: 192 at kernel/irq/handle.c:153 __handle_irq_event_percpu+0x274/0x290
[ 192.517006] irq 161 handler iio_pollfunc_store_time+0x0/0x2c [industrialio] enabled interrupts
[ 192.517015] Modules linked in: bnep hci_uart btbcm 8021q serdev garp stp llc bluetooth ecdh_generic inv_mpu6050_i2c inv_mpu6050 industrialio_triggered_buffer kfifo_buf industrialio i2c_mux brcmfmac brcmutil sha256_generic cfg80211 rfkill raspberrypi_hwmon hwmon bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_dma_contig v4l2_common videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common i2c_bcm2835 videodev media vc_sm_cma(C) fixed uio_pdrv_genirq uio i2c_dev ip_tables x_tables ipv6
[ 192.517151] CPU: 0 PID: 192 Comm: irq/160-inv_mpu Tainted: G C 4.19.71-rt24+ #1
[ 192.517158] Hardware name: BCM2835
[ 192.517195] [<c0018048>] (unwind_backtrace) from [<c0014c20>] (show_stack+0x20/0x24)
[ 192.517215] [<c0014c20>] (show_stack) from [<c06fe3d4>] (dump_stack+0x20/0x28)
[ 192.517242] [<c06fe3d4>] (dump_stack) from [<c0025438>] (__warn.part.1+0xb8/0xe0)
[ 192.517261] [<c0025438>] (__warn.part.1) from [<c00254cc>] (warn_slowpath_fmt+0x6c/0x90)
[ 192.517282] [<c00254cc>] (warn_slowpath_fmt) from [<c007029c>] (__handle_irq_event_percpu+0x274/0x290)
[ 192.517299] [<c007029c>] (__handle_irq_event_percpu) from [<c0070314>] (handle_irq_event_percpu+0x5c/0xb4)
[ 192.517315] [<c0070314>] (handle_irq_event_percpu) from [<c00703c8>] (handle_irq_event+0x5c/0xa0)
[ 192.517335] [<c00703c8>] (handle_irq_event) from [<c0073eac>] (handle_simple_irq+0xac/0x100)
[ 192.517351] [<c0073eac>] (handle_simple_irq) from [<c006f054>] (generic_handle_irq+0x30/0x44)
[ 192.517445] [<c006f054>] (generic_handle_irq) from [<bf47e7e8>] (iio_trigger_poll.part.1+0x50/0x6c [industrialio])
[ 192.517613] [<bf47e7e8>] (iio_trigger_poll.part.1 [industrialio]) from [<bf47e854>] (iio_trigger_generic_data_rdy_poll+0x28/0x30 [industrialio])
[ 192.517704] [<bf47e854>] (iio_trigger_generic_data_rdy_poll [industrialio]) from [<c0071948>] (irq_forced_thread_fn+0x30/0xa8)
[ 192.517726] [<c0071948>] (irq_forced_thread_fn) from [<c0071cac>] (irq_thread+0x118/0x258)
[ 192.517744] [<c0071cac>] (irq_thread) from [<c004656c>] (kthread+0x14c/0x164)
[ 192.517761] [<c004656c>] (kthread) from [<c00090b4>] (ret_from_fork+0x14/0x20)
[ 192.517769] Exception stack(0xdb087fb0 to 0xdb087ff8)
[ 192.517782] 7fa0: 00000000 00000000 00000000 00000000
[ 192.517794] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 192.517805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 192.517814] ---[ end trace 0000000000000002 ]---
Library version: 0.16 (git tag: v0.16)
Compiled with backends: local xml ip usb serial
IIO context created with local backend.
Backend version: 0.16 (git tag: v0.16)
Backend description string: Linux rpi0w 4.19.71-rt24+ #1 PREEMPT RT Mon Mar 30 03:54:25 KST 2020 armv6l
IIO context has 1 attributes:
local,kernel: 4.19.71-rt24+
IIO context has 2 devices:
iio:device0: mpu9250 (buffer capable)
9 channels found:
accel_x: (input, index: 0, format: be:S16/16>>0)
6 channel-specific attributes found:
attr 0: calibbias value: 4834
attr 1: matrix value: 0, 0, 0; 0, 0, 0; 0, 0, 0
attr 2: mount_matrix value: 1, 0, 0; 0, 1, 0; 0, 0, 1
attr 3: raw value: 14387
attr 4: scale value: 0.000598
attr 5: scale_available value: 0.000598 0.001196 0.002392 0.004785
accel_y: (input, index: 1, format: be:S16/16>>0)
6 channel-specific attributes found:
attr 0: calibbias value: 27
attr 1: matrix value: 0, 0, 0; 0, 0, 0; 0, 0, 0
attr 2: mount_matrix value: 1, 0, 0; 0, 1, 0; 0, 0, 1
attr 3: raw value: -3383
attr 4: scale value: 0.000598
attr 5: scale_available value: 0.000598 0.001196 0.002392 0.004785
accel_z: (input, index: 2, format: be:S16/16>>0)
6 channel-specific attributes found:
attr 0: calibbias value: -8192
attr 1: matrix value: 0, 0, 0; 0, 0, 0; 0, 0, 0
attr 2: mount_matrix value: 1, 0, 0; 0, 1, 0; 0, 0, 1
attr 3: raw value: -2225
attr 4: scale value: 0.000598
attr 5: scale_available value: 0.000598 0.001196 0.002392 0.004785
anglvel_x: (input, index: 3, format: be:S16/16>>0)
5 channel-specific attributes found:
attr 0: calibbias value: 0
attr 1: mount_matrix value: 1, 0, 0; 0, 1, 0; 0, 0, 1
attr 2: raw value: -6
attr 3: scale value: 0.001064724
attr 4: scale_available value: 0.000133090 0.000266181 0.000532362 0.001064724
anglvel_y: (input, index: 4, format: be:S16/16>>0)
5 channel-specific attributes found:
attr 0: calibbias value: 0
attr 1: mount_matrix value: 1, 0, 0; 0, 1, 0; 0, 0, 1
attr 2: raw value: 31
attr 3: scale value: 0.001064724
attr 4: scale_available value: 0.000133090 0.000266181 0.000532362 0.001064724
anglvel_z: (input, index: 5, format: be:S16/16>>0)
5 channel-specific attributes found:
attr 0: calibbias value: 0
attr 1: mount_matrix value: 1, 0, 0; 0, 1, 0; 0, 0, 1
attr 2: raw value: 19
attr 3: scale value: 0.001064724
attr 4: scale_available value: 0.000133090 0.000266181 0.000532362 0.001064724
timestamp: (input, index: 6, format: le:S64/64>>0)
gyro: (input)
1 channel-specific attributes found:
attr 0: matrix value: 0, 0, 0; 0, 0, 0; 0, 0, 0
temp: (input)
3 channel-specific attributes found:
attr 0: offset value: 12421
attr 1: raw value: 2217
attr 2: scale value: 0.002941
3 device-specific attributes found:
attr 0: current_timestamp_clock value: realtime
attr 1: sampling_frequency value: 50
attr 2: sampling_frequency_available value: 10 20 50 100 200 500
2 buffer-specific attributes found:
attr 0: data_available value: 0
attr 1: watermark value: 1
Current trigger: trigger0(mpu9250-dev0)
trigger0: mpu9250-dev0
0 channels found: