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

TOMOYO Linux Cross Reference
Linux/Documentation/hwmon/max197.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 ] ~

  1 Kernel driver max197
  2 ====================
  3 
  4 Author:
  5 
  6   * Vivien Didelot <vivien.didelot@savoirfairelinux.com>
  7 
  8 Supported chips:
  9 
 10   * Maxim MAX197
 11 
 12     Prefix: 'max197'
 13 
 14     Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX197.pdf
 15 
 16   * Maxim MAX199
 17 
 18     Prefix: 'max199'
 19 
 20     Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX199.pdf
 21 
 22 Description
 23 -----------
 24 
 25 The A/D converters MAX197, and MAX199 are both 8-Channel, Multi-Range, 5V,
 26 12-Bit DAS with 8+4 Bus Interface and Fault Protection.
 27 
 28 The available ranges for the MAX197 are {0,-5V} to 5V, and {0,-10V} to 10V,
 29 while they are {0,-2V} to 2V, and {0,-4V} to 4V on the MAX199.
 30 
 31 Platform data
 32 -------------
 33 
 34 The MAX197 platform data (defined in linux/platform_data/max197.h) should be
 35 filled with a pointer to a conversion function, defined like::
 36 
 37     int convert(u8 ctrl);
 38 
 39 ctrl is the control byte to write to start a new conversion.
 40 On success, the function must return the 12-bit raw value read from the chip,
 41 or a negative error code otherwise.
 42 
 43 Control byte format:
 44 
 45 ======= ========== ============================================
 46 Bit     Name       Description
 47 7,6     PD1,PD0    Clock and Power-Down modes
 48 5       ACQMOD     Internal or External Controlled Acquisition
 49 4       RNG        Full-scale voltage magnitude at the input
 50 3       BIP        Unipolar or Bipolar conversion mode
 51 2,1,0   A2,A1,A0   Channel
 52 ======= ========== ============================================
 53 
 54 Sysfs interface
 55 ---------------
 56 
 57   ============== ==============================================================
 58   in[0-7]_input  The conversion value for the corresponding channel.
 59                  RO
 60 
 61   in[0-7]_min    The lower limit (in mV) for the corresponding channel.
 62                  For the MAX197, it will be adjusted to -10000, -5000, or 0.
 63                  For the MAX199, it will be adjusted to -4000, -2000, or 0.
 64                  RW
 65 
 66   in[0-7]_max    The higher limit (in mV) for the corresponding channel.
 67                  For the MAX197, it will be adjusted to 0, 5000, or 10000.
 68                  For the MAX199, it will be adjusted to 0, 2000, or 4000.
 69                  RW
 70   ============== ==============================================================

~ [ 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