diff options
Diffstat (limited to 'Documentation/hwmon/ltc4245')
-rw-r--r-- | Documentation/hwmon/ltc4245 | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Documentation/hwmon/ltc4245 b/Documentation/hwmon/ltc4245 index 86b5880d8502..b478b0864965 100644 --- a/Documentation/hwmon/ltc4245 +++ b/Documentation/hwmon/ltc4245 | |||
@@ -72,9 +72,31 @@ in6_min_alarm 5v output undervoltage alarm | |||
72 | in7_min_alarm 3v output undervoltage alarm | 72 | in7_min_alarm 3v output undervoltage alarm |
73 | in8_min_alarm Vee (-12v) output undervoltage alarm | 73 | in8_min_alarm Vee (-12v) output undervoltage alarm |
74 | 74 | ||
75 | in9_input GPIO voltage data | 75 | in9_input GPIO voltage data (see note 1) |
76 | in10_input GPIO voltage data (see note 1) | ||
77 | in11_input GPIO voltage data (see note 1) | ||
76 | 78 | ||
77 | power1_input 12v power usage (mW) | 79 | power1_input 12v power usage (mW) |
78 | power2_input 5v power usage (mW) | 80 | power2_input 5v power usage (mW) |
79 | power3_input 3v power usage (mW) | 81 | power3_input 3v power usage (mW) |
80 | power4_input Vee (-12v) power usage (mW) | 82 | power4_input Vee (-12v) power usage (mW) |
83 | |||
84 | |||
85 | Note 1 | ||
86 | ------ | ||
87 | |||
88 | If you have NOT configured the driver to sample all GPIO pins as analog | ||
89 | voltages, then the in10_input and in11_input sysfs attributes will not be | ||
90 | created. The driver will sample the GPIO pin that is currently connected to the | ||
91 | ADC as an analog voltage, and report the value in in9_input. | ||
92 | |||
93 | If you have configured the driver to sample all GPIO pins as analog voltages, | ||
94 | then they will be sampled in round-robin fashion. If userspace reads too | ||
95 | slowly, -EAGAIN will be returned when you read the sysfs attribute containing | ||
96 | the sensor reading. | ||
97 | |||
98 | The LTC4245 chip can be configured to sample all GPIO pins with two methods: | ||
99 | 1) platform data -- see include/linux/i2c/ltc4245.h | ||
100 | 2) OF device tree -- add the "ltc4245,use-extra-gpios" property to each chip | ||
101 | |||
102 | The default mode of operation is to sample a single GPIO pin. | ||