1 Kernel driver smsc47b397
2 ========================
14 Addresses scanned: none, address read from Super I/O config space
16 Datasheet: In this file
20 - Mark M. Hoffman <mhoffman@lightlink.com>
21 - Utilitek Systems, Inc.
25 The following specification describes the SMSC LPC47B397-NC [1]_ sensor chip
26 (for which there is no public datasheet available). This document was
27 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected
28 by Mark M. Hoffman <mhoffman@lightlink.com>.
30 .. [1] And SMSC SCH5307-NS and SCH5317, which have different device IDs but are
33 -------------------------------------------------------------------------
35 Methods for detecting the HP SIO and reading the thermal data on a dc7100
36 -------------------------------------------------------------------------
38 The thermal information on the dc7100 is contained in the SIO Hardware Monitor
39 (HWM). The information is accessed through an index/data pair. The index/data
40 pair is located at the HWM Base Address + 0 and the HWM Base Address + 1. The
41 HWM Base address can be obtained from Logical Device 8, registers 0x60 (MSB)
42 and 0x61 (LSB). Currently we are using 0x480 for the HWM Base Address and
43 0x480 and 0x481 for the index/data pair.
45 Reading temperature information.
46 The temperature information is located in the following registers:
48 =============== ======= =======================================================
49 Temp1 0x25 (Currently, this reflects the CPU temp on all systems).
53 =============== ======= =======================================================
56 The following is an example of how to read the HWM temperature registers::
64 AL contains the data in hex, the temperature in Celsius is the decimal
67 Ex: If AL contains 0x2A, the temperature is 42 degrees C.
69 Reading tach information.
70 The fan speed information is located in the following registers:
72 =============== ======= ======= =================================
74 Tach1 0x28 0x29 (Currently, this reflects the CPU
75 fan speed on all systems).
79 =============== ======= ======= =================================
83 Reading the tach LSB locks the tach MSB.
84 The LSB Must be read first.
86 How to convert the tach reading to RPM
87 --------------------------------------
89 The tach reading (TCount) is given by: (Tach MSB * 256) + (Tach LSB)
90 The SIO counts the number of 90kHz (11.111us) pulses per revolution.
91 RPM = 60/(TCount * 11.111us)
100 RPM = 60 / (2203 * 11.11111 E-6) = 2451 RPM
102 Obtaining the SIO version.
104 Configuration Sequence
105 ----------------------
107 To program the configuration registers, the following sequence must be followed:
108 1. Enter Configuration Mode
109 2. Configure the Configuration Registers
110 3. Exit Configuration Mode.
112 Enter Configuration Mode
113 ^^^^^^^^^^^^^^^^^^^^^^^^
115 To place the chip into the Configuration State The config key (0x55) is written
116 to the CONFIG PORT (0x2E).
121 In configuration mode, the INDEX PORT is located at the CONFIG PORT address and
122 the DATA PORT is at INDEX PORT address + 1.
124 The desired configuration registers are accessed in two steps:
126 a. Write the index of the Logical Device Number Configuration Register
127 (i.e., 0x07) to the INDEX PORT and then write the number of the
128 desired logical device to the DATA PORT.
130 b. Write the address of the desired configuration register within the
131 logical device to the INDEX PORT and then write or read the config-
132 uration register through the DATA PORT.
135 If accessing the Global Configuration Registers, step (a) is not required.
137 Exit Configuration Mode
138 ^^^^^^^^^^^^^^^^^^^^^^^
140 To exit the Configuration State the write 0xAA to the CONFIG PORT (0x2E).
141 The chip returns to the RUN State. (This is important).
146 The following is an example of how to read the SIO Device ID located at 0x20:
148 ; ENTER CONFIGURATION MODE
152 ; GLOBAL CONFIGURATION REGISTER
159 ; EXIT CONFIGURATION MODE
164 The registers of interest for identifying the SIO on the dc7100 are Device ID
165 (0x20) and Device Rev (0x21).
167 The Device ID will read 0x6F (0x81 for SCH5307-NS, and 0x85 for SCH5317)
168 The Device Rev currently reads 0x01
170 Obtaining the HWM Base Address
171 ------------------------------
173 The following is an example of how to read the HWM Base Address located in
176 ; ENTER CONFIGURATION MODE
180 ; CONFIGURE REGISTER CRE0,
184 OUT DX,AL ;Point to LD# Config Reg
187 OUT DX,AL;Point to Logical Device 8
191 OUT DX,AL ; Point to HWM Base Addr MSB
193 IN AL,DX ; Get MSB of HWM Base Addr
194 ; EXIT CONFIGURATION MODE