blob: c2a403f20b90820e42c601412b56516d812689b5 [file] [log] [blame]
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +01001What: /sys/bus/siox/devices/siox-X/active
2KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +02003Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +01004Description:
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
13What: /sys/bus/siox/devices/siox-X/device_add
14KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020015Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010016Description:
17 Write-only file. Write
18
19 <type> <inbytes> <outbytes> <statustype>
20
21 to add a new device dynamically. <type> is the name that is used to match
22 to a driver (similar to the platform bus). <inbytes> and <outbytes> define
23 the length of the input and output shift register in bytes respectively.
24 <statustype> defines the 4 bit device type that is check to identify connection
25 problems.
26 The new device is added to the end of the existing chain.
27
28What: /sys/bus/siox/devices/siox-X/device_remove
29KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020030Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010031Description:
32 Write-only file. A single write removes the last device in the siox chain.
33
34What: /sys/bus/siox/devices/siox-X/poll_interval_ns
35KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020036Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010037Description:
38 Defines the interval between two poll cycles in nano seconds.
39 Note this is rounded to jiffies on writing. On reading the current value
40 is returned.
41
42What: /sys/bus/siox/devices/siox-X-Y/connected
43KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020044Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010045Description:
46 Read-only value. "0" means the Yth device on siox bus X isn't "connected" i.e.
47 communication with it is not ensured. "1" signals a working connection.
48
49What: /sys/bus/siox/devices/siox-X-Y/inbytes
50KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020051Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010052Description:
53 Read-only value reporting the inbytes value provided to siox-X/device_add
54
55What: /sys/bus/siox/devices/siox-X-Y/status_errors
56KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020057Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010058Description:
59 Counts the number of time intervals when the read status byte doesn't yield the
60 expected value.
61
62What: /sys/bus/siox/devices/siox-X-Y/type
63KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020064Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010065Description:
66 Read-only value reporting the type value provided to siox-X/device_add.
67
68What: /sys/bus/siox/devices/siox-X-Y/watchdog
69KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020070Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010071Description:
72 Read-only value reporting if the watchdog of the siox device is
73 active. "0" means the watchdog is not active and the device is expected to
74 be operational. "1" means the watchdog keeps the device in reset.
75
76What: /sys/bus/siox/devices/siox-X-Y/watchdog_errors
77KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020078Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010079Description:
80 Read-only value reporting the number to time intervals when the
81 watchdog was active.
82
83What: /sys/bus/siox/devices/siox-X-Y/outbytes
84KernelVersion: 4.16
Gavin Schenk75d76272019-06-18 08:04:12 +020085Contact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Uwe Kleine-Königbbecb07f2017-12-18 17:59:07 +010086Description:
87 Read-only value reporting the outbytes value provided to siox-X/device_add.