18c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X/active 28c2ecf20Sopenharmony_ciKernelVersion: 4.16 38c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci On reading represents the current state of the bus. If it 68c2ecf20Sopenharmony_ci contains a "0" the bus is stopped and connected devices are 78c2ecf20Sopenharmony_ci expected to not do anything because their watchdog triggered. 88c2ecf20Sopenharmony_ci When the file contains a "1" the bus is operated and periodically 98c2ecf20Sopenharmony_ci does a push-pull cycle to write and read data from the 108c2ecf20Sopenharmony_ci connected devices. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci When writing a "0" or "1" the bus moves to the described state. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X/device_add 158c2ecf20Sopenharmony_ciKernelVersion: 4.16 168c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 178c2ecf20Sopenharmony_ciDescription: 188c2ecf20Sopenharmony_ci Write-only file. Write 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci <type> <inbytes> <outbytes> <statustype> 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci to add a new device dynamically. <type> is the name that is used to match 238c2ecf20Sopenharmony_ci to a driver (similar to the platform bus). <inbytes> and <outbytes> define 248c2ecf20Sopenharmony_ci the length of the input and output shift register in bytes respectively. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci <statustype> defines the 4 bit device type that is check to identify connection 278c2ecf20Sopenharmony_ci problems. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci The new device is added to the end of the existing chain. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X/device_remove 328c2ecf20Sopenharmony_ciKernelVersion: 4.16 338c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 348c2ecf20Sopenharmony_ciDescription: 358c2ecf20Sopenharmony_ci Write-only file. A single write removes the last device in the siox chain. 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X/poll_interval_ns 388c2ecf20Sopenharmony_ciKernelVersion: 4.16 398c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 408c2ecf20Sopenharmony_ciDescription: 418c2ecf20Sopenharmony_ci Defines the interval between two poll cycles in nano seconds. 428c2ecf20Sopenharmony_ci Note this is rounded to jiffies on writing. On reading the current value 438c2ecf20Sopenharmony_ci is returned. 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X-Y/connected 468c2ecf20Sopenharmony_ciKernelVersion: 4.16 478c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 488c2ecf20Sopenharmony_ciDescription: 498c2ecf20Sopenharmony_ci Read-only value. "0" means the Yth device on siox bus X isn't "connected" i.e. 508c2ecf20Sopenharmony_ci communication with it is not ensured. "1" signals a working connection. 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X-Y/inbytes 538c2ecf20Sopenharmony_ciKernelVersion: 4.16 548c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 558c2ecf20Sopenharmony_ciDescription: 568c2ecf20Sopenharmony_ci Read-only value reporting the inbytes value provided to siox-X/device_add 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X-Y/status_errors 598c2ecf20Sopenharmony_ciKernelVersion: 4.16 608c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 618c2ecf20Sopenharmony_ciDescription: 628c2ecf20Sopenharmony_ci Counts the number of time intervals when the read status byte doesn't yield the 638c2ecf20Sopenharmony_ci expected value. 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X-Y/type 668c2ecf20Sopenharmony_ciKernelVersion: 4.16 678c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 688c2ecf20Sopenharmony_ciDescription: 698c2ecf20Sopenharmony_ci Read-only value reporting the type value provided to siox-X/device_add. 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X-Y/watchdog 728c2ecf20Sopenharmony_ciKernelVersion: 4.16 738c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 748c2ecf20Sopenharmony_ciDescription: 758c2ecf20Sopenharmony_ci Read-only value reporting if the watchdog of the siox device is 768c2ecf20Sopenharmony_ci active. "0" means the watchdog is not active and the device is expected to 778c2ecf20Sopenharmony_ci be operational. "1" means the watchdog keeps the device in reset. 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X-Y/watchdog_errors 808c2ecf20Sopenharmony_ciKernelVersion: 4.16 818c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 828c2ecf20Sopenharmony_ciDescription: 838c2ecf20Sopenharmony_ci Read-only value reporting the number to time intervals when the 848c2ecf20Sopenharmony_ci watchdog was active. 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciWhat: /sys/bus/siox/devices/siox-X-Y/outbytes 878c2ecf20Sopenharmony_ciKernelVersion: 4.16 888c2ecf20Sopenharmony_ciContact: Thorsten Scherer <t.scherer@eckelmann.de>, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 898c2ecf20Sopenharmony_ciDescription: 908c2ecf20Sopenharmony_ci Read-only value reporting the outbytes value provided to siox-X/device_add. 91