sysfs-bus-siox 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. What: /sys/bus/siox/devices/siox-X/active
  2. KernelVersion: 4.16
  3. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  4. Description:
  5. On reading represents the current state of the bus. If it
  6. contains a "0" the bus is stopped and connected devices are
  7. expected to not do anything because their watchdog triggered.
  8. When the file contains a "1" the bus is operated and periodically
  9. does a push-pull cycle to write and read data from the
  10. connected devices.
  11. When writing a "0" or "1" the bus moves to the described state.
  12. What: /sys/bus/siox/devices/siox-X/device_add
  13. KernelVersion: 4.16
  14. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  15. Description:
  16. Write-only file. Write
  17. <type> <inbytes> <outbytes> <statustype>
  18. to add a new device dynamically. <type> is the name that is used to match
  19. to a driver (similar to the platform bus). <inbytes> and <outbytes> define
  20. the length of the input and output shift register in bytes respectively.
  21. <statustype> defines the 4 bit device type that is check to identify connection
  22. problems.
  23. The new device is added to the end of the existing chain.
  24. What: /sys/bus/siox/devices/siox-X/device_remove
  25. KernelVersion: 4.16
  26. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  27. Description:
  28. Write-only file. A single write removes the last device in the siox chain.
  29. What: /sys/bus/siox/devices/siox-X/poll_interval_ns
  30. KernelVersion: 4.16
  31. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  32. Description:
  33. Defines the interval between two poll cycles in nano seconds.
  34. Note this is rounded to jiffies on writing. On reading the current value
  35. is returned.
  36. What: /sys/bus/siox/devices/siox-X-Y/connected
  37. KernelVersion: 4.16
  38. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  39. Description:
  40. Read-only value. "0" means the Yth device on siox bus X isn't "connected" i.e.
  41. communication with it is not ensured. "1" signals a working connection.
  42. What: /sys/bus/siox/devices/siox-X-Y/inbytes
  43. KernelVersion: 4.16
  44. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  45. Description:
  46. Read-only value reporting the inbytes value provided to siox-X/device_add
  47. What: /sys/bus/siox/devices/siox-X-Y/status_errors
  48. KernelVersion: 4.16
  49. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  50. Description:
  51. Counts the number of time intervals when the read status byte doesn't yield the
  52. expected value.
  53. What: /sys/bus/siox/devices/siox-X-Y/type
  54. KernelVersion: 4.16
  55. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  56. Description:
  57. Read-only value reporting the type value provided to siox-X/device_add.
  58. What: /sys/bus/siox/devices/siox-X-Y/watchdog
  59. KernelVersion: 4.16
  60. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  61. Description:
  62. Read-only value reporting if the watchdog of the siox device is
  63. active. "0" means the watchdog is not active and the device is expected to
  64. be operational. "1" means the watchdog keeps the device in reset.
  65. What: /sys/bus/siox/devices/siox-X-Y/watchdog_errors
  66. KernelVersion: 4.16
  67. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  68. Description:
  69. Read-only value reporting the number to time intervals when the
  70. watchdog was active.
  71. What: /sys/bus/siox/devices/siox-X-Y/outbytes
  72. KernelVersion: 4.16
  73. Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  74. Description:
  75. Read-only value reporting the outbytes value provided to siox-X/device_add.