Lines Matching +full:0 +full:deg
7 * by Winbond. It reports a single external temperature with a 1 deg
8 * resolution and a 3 deg accuracy. Datasheet can be obtained from
52 static const unsigned short normal_i2c[] = { 0x2e, I2C_CLIENT_END };
56 * Manufacturer ID is 0x5CA3 for Winbond.
59 #define W83L785TS_REG_MAN_ID1 0x4D
60 #define W83L785TS_REG_MAN_ID2 0x4C
61 #define W83L785TS_REG_CHIP_ID 0x4E
62 #define W83L785TS_REG_CONFIG 0x40
63 #define W83L785TS_REG_TYPE 0x52
64 #define W83L785TS_REG_TEMP 0x27
65 #define W83L785TS_REG_TEMP_OVER 0x53 /* not sure about this one */
91 { "w83l785ts", 0 },
119 s8 temp[2]; /* 0: input, 1: critical limit */
134 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0);
141 /* Return 0 if detection is successful, -ENODEV otherwise */
153 if ((w83l785ts_read_value(client, W83L785TS_REG_CONFIG, 0) & 0x80) in w83l785ts_detect()
154 || (w83l785ts_read_value(client, W83L785TS_REG_TYPE, 0) & 0xFC)) { in w83l785ts_detect()
156 "W83L785TS-S detection failed at 0x%02x\n", in w83l785ts_detect()
162 man_id = (w83l785ts_read_value(client, W83L785TS_REG_MAN_ID1, 0) << 8) in w83l785ts_detect()
163 + w83l785ts_read_value(client, W83L785TS_REG_MAN_ID2, 0); in w83l785ts_detect()
164 chip_id = w83l785ts_read_value(client, W83L785TS_REG_CHIP_ID, 0); in w83l785ts_detect()
166 if (man_id != 0x5CA3 /* Winbond */ in w83l785ts_detect()
167 || chip_id != 0x70) { /* W83L785TS-S */ in w83l785ts_detect()
169 "Unsupported chip (man_id=0x%04X, chip_id=0x%02X)\n", in w83l785ts_detect()
176 return 0; in w83l785ts_detect()
213 return 0; in w83l785ts_probe()
231 return 0; in w83l785ts_remove()
259 if (value >= 0) { in w83l785ts_read_value()
260 dev_dbg(dev, "%sRead 0x%02x from register 0x%02x.\n", in w83l785ts_read_value()
268 dev_err(dev, "%sCouldn't read value from register 0x%02x.\n", prefix, in w83l785ts_read_value()
282 data->temp[0] = w83l785ts_read_value(client, in w83l785ts_update_device()
283 W83L785TS_REG_TEMP, data->temp[0]); in w83l785ts_update_device()