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

bus: moxtet: Add sysfs and debugfs documentation

Add sysfs ABI documentation for the attribute files module_id and
module_name

Add debugfs ABI documentation for reading input from the shift registers
and reading last written output or write output to the shift registers.

Link: https://lore.kernel.org/r/20190812161118.21476-4-marek.behun@nic.cz
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Marek Behún and committed by
Arnd Bergmann
2091b417 20e6cf7e

+42
+23
Documentation/ABI/testing/debugfs-moxtet
··· 1 + What: /sys/kernel/debug/moxtet/input 2 + Date: March 2019 3 + KernelVersion: 5.3 4 + Contact: Marek Behún <marek.behun@nic.cz> 5 + Description: (R) Read input from the shift registers, in hexadecimal. 6 + Returns N+1 bytes, where N is the number of Moxtet connected 7 + modules. The first byte is from the CPU board itself. 8 + Example: 101214 9 + 10: CPU board with SD card 10 + 12: 2 = PCIe module, 1 = IRQ not active 11 + 14: 4 = Peridot module, 1 = IRQ not active 12 + 13 + What: /sys/kernel/debug/moxtet/output 14 + Date: March 2019 15 + KernelVersion: 5.3 16 + Contact: Marek Behún <marek.behun@nic.cz> 17 + Description: (RW) Read last written value to the shift registers, in 18 + hexadecimal, or write values to the shift registers, also 19 + in hexadecimal. 20 + Example: 0102 21 + 01: 01 was last written, or is to be written, to the 22 + first module's shift register 23 + 02: the same for second module
+17
Documentation/ABI/testing/sysfs-bus-moxtet-devices
··· 1 + What: /sys/bus/moxtet/devices/moxtet-<name>.<addr>/module_description 2 + Date: March 2019 3 + KernelVersion: 5.3 4 + Contact: Marek Behún <marek.behun@nic.cz> 5 + Description: (R) Moxtet module description. Format: string 6 + 7 + What: /sys/bus/moxtet/devices/moxtet-<name>.<addr>/module_id 8 + Date: March 2019 9 + KernelVersion: 5.3 10 + Contact: Marek Behún <marek.behun@nic.cz> 11 + Description: (R) Moxtet module ID. Format: %x 12 + 13 + What: /sys/bus/moxtet/devices/moxtet-<name>.<addr>/module_name 14 + Date: March 2019 15 + KernelVersion: 5.3 16 + Contact: Marek Behún <marek.behun@nic.cz> 17 + Description: (R) Moxtet module name. Format: string
+2
MAINTAINERS
··· 1630 1630 M: Marek Behun <marek.behun@nic.cz> 1631 1631 W: http://mox.turris.cz 1632 1632 S: Maintained 1633 + F: Documentation/ABI/testing/debugfs-moxtet 1634 + F: Documentation/ABI/testing/sysfs-bus-moxtet-devices 1633 1635 F: Documentation/devicetree/bindings/bus/moxtet.txt 1634 1636 F: include/linux/moxtet.h 1635 1637 F: drivers/bus/moxtet.c