Commit f1af93216c3460873e0ff46f17951eac4c066d79

Authored by Chris Packham
Committed by Guenter Roeck
1 parent 3b443def46

hwmon: (adt7475) document mapping of sysfs entries to inputs

As per the usual standard with hwmon drivers the mapping to sysfs
entries follows the register map of the device e.g. in0_input
corresponds to the register 0x20, in1_input corresponds to 0x21 etc.

Hardware designers tend to work with input pins instead of registers
which is where things start to get confusing. A hardware designer might
say "the 1.5V rail is connected to the VCCP pin" leaving the software
designer none the wiser as to which of the sysfs entries should be
associated with the label "1.5V".

Try to bridge the gap by documenting the mapping of sysfs entries to
the corresponding pins. This should allow someone to create a
configuration file or other mapping without needing to dive into the
code and ADT datasheets.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Showing 1 changed file with 12 additions and 0 deletions Side-by-side Diff

Documentation/hwmon/adt7475
... ... @@ -79,6 +79,18 @@
79 79 * 2 GPIO pins (not implemented)
80 80 * system acoustics optimizations (not implemented)
81 81  
  82 +Sysfs Mapping
  83 +-------------
  84 +
  85 + ADT7490 ADT7476 ADT7475 ADT7473
  86 + ------- ------- ------- -------
  87 +in0 2.5VIN (22) 2.5VIN (22) - -
  88 +in1 VCCP (23) VCCP (23) VCCP (14) VCCP (14)
  89 +in2 VCC (4) VCC (4) VCC (4) VCC (3)
  90 +in3 5VIN (20) 5VIN (20)
  91 +in4 12VIN (21) 12VIN (21)
  92 +in5 VTT (8)
  93 +
82 94 Special Features
83 95 ----------------
84 96