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