mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
This adds a basic debugfs interface for backends. Two new ops are being added: * debugfs_reg_access: Analogous to the core IIO one but for backend devices. * debugfs_print_chan_status: One useful usecase for this one is for testing test tones in a digital interface and "ask" the backend to dump more details on why a test tone might have errors. Signed-off-by: Nuno Sa <[email protected]> Link: https://patch.msgid.link/20240802-dev-iio-backend-add-debugfs-v2-2-4cb62852f0d0@analog.com Signed-off-by: Jonathan Cameron <[email protected]>
21 lines
557 B
Plaintext
21 lines
557 B
Plaintext
What: /sys/kernel/debug/iio/iio:deviceX/backendY/name
|
|
KernelVersion: 6.11
|
|
Contact: [email protected]
|
|
Description:
|
|
Name of Backend Y connected to device X.
|
|
|
|
What: /sys/kernel/debug/iio/iio:deviceX/backendY/direct_reg_access
|
|
KernelVersion: 6.11
|
|
Contact: [email protected]
|
|
Description:
|
|
Directly access the registers of backend Y. Typical usage is:
|
|
|
|
Reading address 0x50
|
|
echo 0x50 > direct_reg_access
|
|
cat direct_reg_access
|
|
|
|
Writing address 0x50
|
|
echo 0x50 0x3 > direct_reg_access
|
|
//readback address 0x50
|
|
cat direct_reg_access
|