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

TOMOYO Linux Cross Reference
Linux/Documentation/hwmon/abituguru-datasheet.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/hwmon/abituguru-datasheet.rst (Version linux-6.12-rc7) and /Documentation/hwmon/abituguru-datasheet.rst (Version linux-4.13.16)


  1 ===============                                   
  2 uGuru datasheet                                   
  3 ===============                                   
  4                                                   
  5 First of all, what I know about uGuru is no fa    
  6 datasheet from Abit. The data I have got on uG    
  7 my weak knowledge in "backwards engineering".     
  8 And just for the record, you may have noticed     
  9 Abit, as they claim it to be. It's really just    
 10 Winbond (W83L950D). And no, reading the manual    
 11 mailing  Windbond for help won't give any usef    
 12 the program inside the uC that is responding t    
 13                                                   
 14 Olle Sandberg <ollebull@gmail.com>, 2005-05-25     
 15                                                   
 16                                                   
 17 Original version by Olle Sandberg who did the     
 18 reverse engineering. This version has been alm    
 19 and extended with write support and info on mo    
 20 is once again reverse engineered by Olle the a    
 21 reverse engineered by me. I would like to expr    
 22 document and the Linux driver could not have b    
 23                                                   
 24 Note: because of the lack of specs only the se    
 25 described here and not the CPU / RAM / etc vol    
 26                                                   
 27 Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-200    
 28                                                   
 29                                                   
 30 Detection                                         
 31 =========                                         
 32                                                   
 33 As far as known the uGuru is always placed at     
 34 0xE0 and 0xE4, so we don't have to scan any po    
 35 ports are holding for detection. We will refer    
 36 and 0xE4 as DATA because Abit refers to them w    
 37                                                   
 38 If DATA holds 0x00 or 0x08 and CMD holds 0x00     
 39 present. We have to check for two different va    
 40 after a reboot uGuru will hold 0x00 here, but     
 41 later on attached again data-port will hold 0x    
 42                                                   
 43 After wider testing of the Linux kernel driver    
 44 turned up which will hold 0x00 instead of 0xAC    
 45 have to test CMD for two different values. On     
 46 hold 0x09 and will only hold 0x08 after readin    
 47 first!                                            
 48                                                   
 49 To be really sure an uGuru is present a test r    
 50 sets should be done.                              
 51                                                   
 52                                                   
 53 Reading / Writing                                 
 54 =================                                 
 55                                                   
 56 Addressing                                        
 57 ----------                                        
 58                                                   
 59 The uGuru has a number of different addressing    
 60 level we will call banks. A bank holds data fo    
 61 in a bank for a sensor is one or more bytes la    
 62                                                   
 63 The number of bytes is fixed for a given bank,    
 64 that many bytes, reading / writing more will f    
 65 less then the number of bytes for a given bank    
 66                                                   
 67 See below for all known bank addresses, number    
 68 number of bytes data per sensor and contents/m    
 69                                                   
 70 Although both this document and the kernel dri    
 71 terminology for the addressing within a bank t    
 72 bank 0x24 for example the addressing within th    
 73 a sensor.                                         
 74                                                   
 75 Notice that some banks have both a read and a     
 76 uGuru determines if a read from or a write to     
 77 when reading you should always use the read ad    
 78 write address. The write address is always one    
 79                                                   
 80                                                   
 81 uGuru ready                                       
 82 -----------                                       
 83                                                   
 84 Before you can read from or write to the uGuru    
 85 in "ready" mode.                                  
 86                                                   
 87 To put the uGuru in ready mode first write 0x0    
 88 to hold 0x09, DATA should read 0x09 within 250    
 89                                                   
 90 Next CMD _must_ be read and should hold 0xAC,     
 91 first read but sometimes it takes a while befo    
 92 has to be read a number of times (max 50).        
 93                                                   
 94 After reading CMD, DATA should hold 0x08 which    
 95 for input. As above DATA will usually hold 0x0    
 96 This step can be skipped, but it is undetermin    
 97 not yet reported 0x08 at DATA and you proceed     
 98                                                   
 99                                                   
100 Sending bank and sensor addresses to the uGuru    
101 ----------------------------------------------    
102                                                   
103 First the uGuru must be in "ready" mode as des    
104 0x08 indicating that the uGuru wants input, in    
105                                                   
106 Next write the bank address to DATA. After the    
107 wait for to DATA to hold 0x08 again indicating    
108 more input (max 250 reads).                       
109                                                   
110 Once DATA holds 0x08 again write the sensor ad    
111                                                   
112                                                   
113 Reading                                           
114 -------                                           
115                                                   
116 First send the bank and sensor addresses as de    
117 Then for each byte of data you want to read wa    
118 which indicates that the uGuru is ready to be     
119 DATA holds 0x01 read the byte from CMD.           
120                                                   
121 Once all bytes have been read data will hold 0    
122 test for this. Notice that the number of bytes    
123 above and below.                                  
124                                                   
125 After completing a successful read it is advis    
126 ready mode, so that it is ready for the next r    
127 if your program / driver is unloaded and later    
128 algorithm described above will still work.        
129                                                   
130                                                   
131                                                   
132 Writing                                           
133 -------                                           
134                                                   
135 First send the bank and sensor addresses as de    
136 Then for each byte of data you want to write w    
137 which indicates that the uGuru is ready to be     
138 once DATA holds 0x00 write the byte to CMD.       
139                                                   
140 Once all bytes have been written wait for DATA    
141 don't ask why this is the way it is.              
142                                                   
143 Once DATA holds 0x01 read CMD it should hold 0    
144                                                   
145 After completing a successful write it is advi    
146 ready mode, so that it is ready for the next r    
147 if your program / driver is unloaded and later    
148 algorithm described above will still work.        
149                                                   
150                                                   
151 Gotchas                                           
152 -------                                           
153                                                   
154 After wider testing of the Linux kernel driver    
155 turned up which do not hold 0x08 at DATA withi    
156 bank address. With these versions this happens    
157 timeouts doesn't help, they just go offline fo    
158 internal calibration or whatever. Your code sh    
159 this and in case of no response in this specif    
160 while and then retry.                             
161                                                   
162                                                   
163 Address Map                                       
164 ===========                                       
165                                                   
166 Bank 0x20 Alarms (R)                              
167 --------------------                              
168 This bank contains 0 sensors, iow the sensor a    
169 written) just use 0. Bank 0x20 contains 3 byte    
170                                                   
171 Byte 0:                                           
172   This byte holds the alarm flags for sensor 0    
173   corresponding to sensor 0, 1 to 1, etc.         
174                                                   
175 Byte 1:                                           
176   This byte holds the alarm flags for sensor 8    
177   corresponding to sensor 8, 1 to 9, etc.         
178                                                   
179 Byte 2:                                           
180   This byte holds the alarm flags for sensor 0    
181   corresponding to sensor 0, 1 to 1, etc.         
182                                                   
183                                                   
184 Bank 0x21 Sensor Bank1 Values / Readings (R)      
185 --------------------------------------------      
186 This bank contains 16 sensors, for each sensor    
187 So far the following sensors are known to be a    
188                                                   
189 - Sensor  0 CPU temp                              
190 - Sensor  1 SYS temp                              
191 - Sensor  3 CPU core volt                         
192 - Sensor  4 DDR volt                              
193 - Sensor 10 DDR Vtt volt                          
194 - Sensor 15 PWM temp                              
195                                                   
196 Byte 0:                                           
197   This byte holds the reading from the sensor.    
198   volt and temp sensors, this is motherboard s    
199   seem to know (be programmed with) what kindo    
200   Bank1 Settings description.                     
201                                                   
202 Volt sensors use a linear scale, a reading 0 c    
203 reading of 255 with 3494 mV. The sensors for h    
204 connected through a division circuit. The curr    
205 in use result in ranges of: 0-4361mV, 0-6248mV    
206 use the 0-4361mV range, 5 volt the 0-6248mV an    
207                                                   
208 Temp sensors also use a linear scale, a readin    
209 Celsius and a reading of 255 with a reading of    
210                                                   
211                                                   
212 Bank 0x22 Sensor Bank1 Settings (R) and Bank 0    
213 ----------------------------------------------    
214                                                   
215 Those banks contain 16 sensors, for each senso    
216 set of 3 bytes contains the settings for the s    
217 address in Bank 0x21 .                            
218                                                   
219 Byte 0:                                           
220   Alarm behaviour for the selected sensor. A 1    
221   behaviour.                                      
222                                                   
223 Bit 0:                                            
224   Give an alarm if measured temp is over the w    
225                                                   
226 Bit 1:                                            
227   Give an alarm if measured volt is over the m    
228                                                   
229 Bit 2:                                            
230   Give an alarm if measured volt is under the     
231                                                   
232 Bit 3:                                            
233   Beep if alarm                                   
234                                                   
235 Bit 4:                                            
236   1 if alarm cause measured temp is over the w    
237                                                   
238 Bit 5:                                            
239   1 if alarm cause measured volt is over the m    
240                                                   
241 Bit 6:                                            
242   1 if alarm cause measured volt is under the     
243                                                   
244 Bit 7:                                            
245   - Volt sensor: Shutdown if alarm persist for    
246   - Temp sensor: Shutdown if temp is over the     
247                                                   
248 .. [1] This bit is only honored/used by the uG    
249                                                   
250 .. [2] This bit is only honored/used by the uG    
251        Note with some trickery this can be use    
252        is detected see the Linux kernel driver    
253        comments on how todo this.                 
254                                                   
255 Byte 1:                                           
256   - Temp sensor: warning threshold  (scale as     
257   - Volt sensor: min threshold      (scale as     
258                                                   
259 Byte 2:                                           
260   - Temp sensor: shutdown threshold (scale as     
261   - Volt sensor: max threshold      (scale as     
262                                                   
263                                                   
264 Bank 0x24 PWM outputs for FAN's (R) and Bank 0    
265 ----------------------------------------------    
266                                                   
267 Those banks contain 3 "sensors", for each sens    
268   - Sensor 0 usually controls the CPU fan         
269   - Sensor 1 usually controls the NB (or chips    
270   - Sensor 2 usually controls the System fan      
271                                                   
272 Byte 0:                                           
273   Flag 0x80 to enable control, Fan runs at 100    
274   low nibble (temp)sensor address at bank 0x21    
275                                                   
276 Byte 1:                                           
277   0-255 = 0-12v (linear), specify voltage at w    
278   low threshold temp (specified in byte 3)        
279                                                   
280 Byte 2:                                           
281   0-255 = 0-12v (linear), specify voltage at w    
282   high threshold temp (specified in byte 4)       
283                                                   
284 Byte 3:                                           
285   Low threshold temp  (scale as bank 0x21)        
286                                                   
287 byte 4:                                           
288   High threshold temp (scale as bank 0x21)        
289                                                   
290                                                   
291 Bank 0x26 Sensors Bank2 Values / Readings (R)     
292 ---------------------------------------------     
293                                                   
294 This bank contains 6 sensors (AFAIK), for each    
295                                                   
296 So far the following sensors are known to be a    
297   - Sensor 0: CPU fan speed                       
298   - Sensor 1: NB (or chipset for single chip)     
299   - Sensor 2: SYS fan speed                       
300                                                   
301 Byte 0:                                           
302   This byte holds the reading from the sensor.    
303                                                   
304                                                   
305 Bank 0x27 Sensors Bank2 Settings (R) and Bank     
306 ----------------------------------------------    
307                                                   
308 Those banks contain 6 sensors (AFAIK), for eac    
309                                                   
310 Byte 0:                                           
311   Alarm behaviour for the selected sensor. A 1    
312                                                   
313 Bit 0:                                            
314   Give an alarm if measured rpm is under the m    
315                                                   
316 Bit 3:                                            
317   Beep if alarm                                   
318                                                   
319 Bit 7:                                            
320   Shutdown if alarm persist for more than 4 se    
321                                                   
322 Byte 1:                                           
323   min threshold (scale as bank 0x26)              
324                                                   
325                                                   
326 Warning for the adventurous                       
327 ===========================                       
328                                                   
329 A word of caution to those who want to experim    
330 the voltage / clock programming out, I tried r    
331 0-0x30 with the reading code used for the sens    
332 resulted in a _permanent_ reprogramming of the    
333 sensors part configured so that it would shutd    
334 voltages which probably safed my computer (aft    
335 immediately enter the bios and reload the defa    
336 the read/write cycle for the non sensor part i    
                                                      

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