Lines Matching +full:0 +full:deg
8 * by Winbond. It reports a single external temperature with a 1 deg
9 * resolution and a 3 deg accuracy. Datasheet can be obtained from
39 static const unsigned short normal_i2c[] = { 0x2e, I2C_CLIENT_END };
43 * Manufacturer ID is 0x5CA3 for Winbond.
46 #define W83L785TS_REG_MAN_ID1 0x4D
47 #define W83L785TS_REG_MAN_ID2 0x4C
48 #define W83L785TS_REG_CHIP_ID 0x4E
49 #define W83L785TS_REG_CONFIG 0x40
50 #define W83L785TS_REG_TYPE 0x52
51 #define W83L785TS_REG_TEMP 0x27
52 #define W83L785TS_REG_TEMP_OVER 0x53 /* not sure about this one */
77 { "w83l785ts", 0 },
105 s8 temp[2]; /* 0: input, 1: critical limit */
120 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0);
127 /* Return 0 if detection is successful, -ENODEV otherwise */
139 if ((w83l785ts_read_value(client, W83L785TS_REG_CONFIG, 0) & 0x80) in w83l785ts_detect()
140 || (w83l785ts_read_value(client, W83L785TS_REG_TYPE, 0) & 0xFC)) { in w83l785ts_detect()
142 "W83L785TS-S detection failed at 0x%02x\n", in w83l785ts_detect()
148 man_id = (w83l785ts_read_value(client, W83L785TS_REG_MAN_ID1, 0) << 8) in w83l785ts_detect()
149 + w83l785ts_read_value(client, W83L785TS_REG_MAN_ID2, 0); in w83l785ts_detect()
150 chip_id = w83l785ts_read_value(client, W83L785TS_REG_CHIP_ID, 0); in w83l785ts_detect()
152 if (man_id != 0x5CA3 /* Winbond */ in w83l785ts_detect()
153 || chip_id != 0x70) { /* W83L785TS-S */ in w83l785ts_detect()
155 "Unsupported chip (man_id=0x%04X, chip_id=0x%02X)\n", in w83l785ts_detect()
162 return 0; in w83l785ts_detect()
198 return 0; in w83l785ts_probe()
216 return 0; in w83l785ts_remove()
244 if (value >= 0) { in w83l785ts_read_value()
245 dev_dbg(dev, "%sRead 0x%02x from register 0x%02x.\n", in w83l785ts_read_value()
253 dev_err(dev, "%sCouldn't read value from register 0x%02x.\n", prefix, in w83l785ts_read_value()
267 data->temp[0] = w83l785ts_read_value(client, in w83l785ts_update_device()
268 W83L785TS_REG_TEMP, data->temp[0]); in w83l785ts_update_device()