~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/w1/slaves/w1_ds2406.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/w1/slaves/w1_ds2406.rst (Architecture ppc) and /Documentation/w1/slaves/w1_ds2406.rst (Architecture sparc64)


  1 =======================                             1 =======================
  2 w1_ds2406 kernel driver                             2 w1_ds2406 kernel driver
  3 =======================                             3 =======================
  4                                                     4 
  5 Supported chips:                                    5 Supported chips:
  6                                                     6 
  7   * Maxim DS2406 (and other family 0x12) addre      7   * Maxim DS2406 (and other family 0x12) addressable switches
  8                                                     8 
  9 Author: Scott Alfter <scott@alfter.us>               9 Author: Scott Alfter <scott@alfter.us>
 10                                                    10 
 11 Description                                        11 Description
 12 -----------                                        12 -----------
 13                                                    13 
 14 The w1_ds2406 driver allows connected devices      14 The w1_ds2406 driver allows connected devices to be switched on and off.
 15 These chips also provide 128 bytes of OTP EPRO     15 These chips also provide 128 bytes of OTP EPROM, but reading/writing it is
 16 not supported.  In TSOC-6 form, the DS2406 pro     16 not supported.  In TSOC-6 form, the DS2406 provides two switch outputs and
 17 can be provided with power on a dedicated inpu     17 can be provided with power on a dedicated input.  In TO-92 form, it provides
 18 one output and uses parasitic power only.          18 one output and uses parasitic power only.
 19                                                    19 
 20 The driver provides two sysfs files.  state is     20 The driver provides two sysfs files.  state is readable; it gives the
 21 current state of each switch, with PIO A in bi     21 current state of each switch, with PIO A in bit 0 and PIO B in bit 1.  The
 22 driver ORs this state with 0x30, so shell scri     22 driver ORs this state with 0x30, so shell scripts get an ASCII 0/1/2/3 to
 23 work with.  output is writable; bits 0 and 1 c     23 work with.  output is writable; bits 0 and 1 control PIO A and B,
 24 respectively.  Bits 2-7 are ignored, so it's s     24 respectively.  Bits 2-7 are ignored, so it's safe to write ASCII data.
 25                                                    25 
 26 CRCs are checked on read and write.  Failed ch     26 CRCs are checked on read and write.  Failed checks cause an I/O error to be
 27 returned.  On a failed write, the switch statu     27 returned.  On a failed write, the switch status is not changed.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php