Lines Matching +full:0 +full:x4140

33 #define LTC2978_MFR_VOUT_PEAK		0xdd
34 #define LTC2978_MFR_VIN_PEAK 0xde
35 #define LTC2978_MFR_TEMPERATURE_PEAK 0xdf
36 #define LTC2978_MFR_SPECIAL_ID 0xe7 /* Undocumented on LTC3882 */
37 #define LTC2978_MFR_COMMON 0xef
40 #define LTC2978_MFR_VOUT_MIN 0xfb
41 #define LTC2978_MFR_VIN_MIN 0xfc
42 #define LTC2978_MFR_TEMPERATURE_MIN 0xfd
45 #define LTC2974_MFR_IOUT_PEAK 0xd7
46 #define LTC2974_MFR_IOUT_MIN 0xd8
49 #define LTC3880_MFR_IOUT_PEAK 0xd7
50 #define LTC3880_MFR_CLEAR_PEAKS 0xe3
51 #define LTC3880_MFR_TEMPERATURE2_PEAK 0xf4
54 #define LTC3883_MFR_IIN_PEAK 0xe1
57 #define LTC2975_MFR_IIN_PEAK 0xc4
58 #define LTC2975_MFR_IIN_MIN 0xc5
59 #define LTC2975_MFR_PIN_PEAK 0xc6
60 #define LTC2975_MFR_PIN_MIN 0xc7
62 #define LTC2978_ID_MASK 0xfff0
64 #define LTC2972_ID 0x0310
65 #define LTC2974_ID 0x0210
66 #define LTC2975_ID 0x0220
67 #define LTC2977_ID 0x0130
68 #define LTC2978_ID_REV1 0x0110 /* Early revision */
69 #define LTC2978_ID_REV2 0x0120
70 #define LTC2979_ID_A 0x8060
71 #define LTC2979_ID_B 0x8070
72 #define LTC2980_ID_A 0x8030 /* A/B for two die IDs */
73 #define LTC2980_ID_B 0x8040
74 #define LTC3880_ID 0x4020
75 #define LTC3882_ID 0x4200
76 #define LTC3882_ID_D1 0x4240 /* Dash 1 */
77 #define LTC3883_ID 0x4300
78 #define LTC3884_ID 0x4C00
79 #define LTC3886_ID 0x4600
80 #define LTC3887_ID 0x4700
81 #define LTC3889_ID 0x4900
82 #define LTC7132_ID 0x4CE0
83 #define LTC7880_ID 0x49E0
84 #define LTM2987_ID_A 0x8010 /* A/B for two die IDs */
85 #define LTM2987_ID_B 0x8020
86 #define LTM4664_ID 0x4120
87 #define LTM4675_ID 0x47a0
88 #define LTM4676_ID_REV1 0x4400
89 #define LTM4676_ID_REV2 0x4480
90 #define LTM4676A_ID 0x47e0
91 #define LTM4677_ID_REV1 0x47B0
92 #define LTM4677_ID_REV2 0x47D0
93 #define LTM4678_ID_REV1 0x4100
94 #define LTM4678_ID_REV2 0x4110
95 #define LTM4680_ID 0x4140
96 #define LTM4686_ID 0x4770
97 #define LTM4700_ID 0x4130
132 #define FEAT_CLEAR_PEAKS BIT(0)
147 return 0; in ltc_wait_ready()
158 status = pmbus_read_byte_data(client, 0, LTC2978_MFR_COMMON); in ltc_wait_ready()
164 if (status < 0) in ltc_wait_ready()
168 return 0; in ltc_wait_ready()
182 if (ret < 0) in ltc_read_word_data()
185 return pmbus_read_word_data(client, page, 0xff, reg); in ltc_read_word_data()
193 if (ret < 0) in ltc_read_byte_data()
204 if (ret < 0) in ltc_write_byte_data()
215 if (ret < 0) in ltc_write_byte()
231 return (e < 0 ? m >> -e : m << e); in lin11_to_val()
239 ret = ltc_read_word_data(client, page, 0xff, reg); in ltc_get_max()
240 if (ret >= 0) { in ltc_get_max()
253 ret = ltc_read_word_data(client, page, 0xff, reg); in ltc_get_min()
254 if (ret >= 0) { in ltc_get_min()
275 ret = ltc_read_word_data(client, page, 0xff, in ltc2978_read_word_data_common()
277 if (ret >= 0) { in ltc2978_read_word_data_common()
295 ret = 0; in ltc2978_read_word_data_common()
299 if (ret < 0) in ltc2978_read_word_data_common()
322 if (ret >= 0) { in ltc2978_read_word_data()
371 ret = 0; in ltc2974_read_word_data()
406 ret = 0; in ltc2975_read_word_data()
439 ret = 0; in ltc3880_read_word_data()
461 ret = 0; in ltc3883_read_word_data()
476 ret = ltc_write_byte(client, 0, LTC3880_MFR_CLEAR_PEAKS); in ltc2978_clear_peaks()
492 data->iin_max = 0x7c00; in ltc2978_write_word_data()
493 data->iin_min = 0x7bff; in ltc2978_write_word_data()
494 ret = ltc2978_clear_peaks(data, client, 0); in ltc2978_write_word_data()
497 data->pin_max = 0x7c00; in ltc2978_write_word_data()
498 data->pin_min = 0x7bff; in ltc2978_write_word_data()
499 ret = ltc2978_clear_peaks(data, client, 0); in ltc2978_write_word_data()
502 data->iout_max[page] = 0x7c00; in ltc2978_write_word_data()
503 data->iout_min[page] = 0xfbff; in ltc2978_write_word_data()
507 data->temp2_max = 0x7c00; in ltc2978_write_word_data()
511 data->vout_min[page] = 0xffff; in ltc2978_write_word_data()
512 data->vout_max[page] = 0; in ltc2978_write_word_data()
516 data->vin_min = 0x7bff; in ltc2978_write_word_data()
517 data->vin_max = 0x7c00; in ltc2978_write_word_data()
521 data->temp_min[page] = 0x7bff; in ltc2978_write_word_data()
522 data->temp_max[page] = 0x7c00; in ltc2978_write_word_data()
527 if (ret < 0) in ltc2978_write_word_data()
566 #define LTC2978_ADC_RES 0xFFFF
573 PMBUS_REGULATOR_STEP("vout", 0, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
574 PMBUS_REGULATOR_STEP("vout", 1, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
575 PMBUS_REGULATOR_STEP("vout", 2, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
576 PMBUS_REGULATOR_STEP("vout", 3, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
577 PMBUS_REGULATOR_STEP("vout", 4, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
578 PMBUS_REGULATOR_STEP("vout", 5, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
579 PMBUS_REGULATOR_STEP("vout", 6, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
580 PMBUS_REGULATOR_STEP("vout", 7, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
584 PMBUS_REGULATOR("vout", 0),
600 if (chip_id < 0) { in ltc2978_get_id()
610 if (ret < 0) in ltc2978_get_id()
616 if (ret < 0) in ltc2978_get_id()
618 for (id = &ltc2978_id[0]; strlen(id->name); id++) { in ltc2978_get_id()
679 dev_err(&client->dev, "Unsupported chip ID 0x%x\n", chip_id); in ltc2978_get_id()
700 if (chip_id < 0) in ltc2978_probe()
719 data->vin_min = 0x7bff; in ltc2978_probe()
720 data->vin_max = 0x7c00; in ltc2978_probe()
721 for (i = 0; i < ARRAY_SIZE(data->vout_min); i++) in ltc2978_probe()
722 data->vout_min[i] = 0xffff; in ltc2978_probe()
723 for (i = 0; i < ARRAY_SIZE(data->iout_min); i++) in ltc2978_probe()
724 data->iout_min[i] = 0xfbff; in ltc2978_probe()
725 for (i = 0; i < ARRAY_SIZE(data->iout_max); i++) in ltc2978_probe()
726 data->iout_max[i] = 0x7c00; in ltc2978_probe()
727 for (i = 0; i < ARRAY_SIZE(data->temp_min); i++) in ltc2978_probe()
728 data->temp_min[i] = 0x7bff; in ltc2978_probe()
729 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe()
730 data->temp_max[i] = 0x7c00; in ltc2978_probe()
731 data->temp2_max = 0x7c00; in ltc2978_probe()
737 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
740 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
750 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
752 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
762 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
765 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
780 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
797 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
812 info->func[0] = PMBUS_HAVE_VIN in ltc2978_probe()
827 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
846 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()