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
58 #define LTC2975_MFR_IIN_PEAK 0xc4
59 #define LTC2975_MFR_IIN_MIN 0xc5
60 #define LTC2975_MFR_PIN_PEAK 0xc6
61 #define LTC2975_MFR_PIN_MIN 0xc7
63 #define LTC2978_ID_MASK 0xfff0
65 #define LTC2972_ID 0x0310
66 #define LTC2974_ID 0x0210
67 #define LTC2975_ID 0x0220
68 #define LTC2977_ID 0x0130
69 #define LTC2978_ID_REV1 0x0110 /* Early revision */
70 #define LTC2978_ID_REV2 0x0120
71 #define LTC2979_ID_A 0x8060
72 #define LTC2979_ID_B 0x8070
73 #define LTC2980_ID_A 0x8030 /* A/B for two die IDs */
74 #define LTC2980_ID_B 0x8040
75 #define LTC3880_ID 0x4020
76 #define LTC3882_ID 0x4200
77 #define LTC3882_ID_D1 0x4240 /* Dash 1 */
78 #define LTC3883_ID 0x4300
79 #define LTC3884_ID 0x4C00
80 #define LTC3886_ID 0x4600
81 #define LTC3887_ID 0x4700
82 #define LTM2987_ID_A 0x8010 /* A/B for two die IDs */
83 #define LTM2987_ID_B 0x8020
84 #define LTC3889_ID 0x4900
85 #define LTC7880_ID 0x49E0
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()
565 #define LTC2978_ADC_RES 0xFFFF
572 PMBUS_REGULATOR_STEP("vout", 0, LTC2978_N_VOLTAGES, LTC2978_UV_STEP),
583 PMBUS_REGULATOR("vout", 0),
599 if (chip_id < 0) { in ltc2978_get_id()
609 if (ret < 0) in ltc2978_get_id()
615 if (ret < 0) in ltc2978_get_id()
617 for (id = <c2978_id[0]; strlen(id->name); id++) { in ltc2978_get_id()
676 dev_err(&client->dev, "Unsupported chip ID 0x%x\n", chip_id); in ltc2978_get_id()
697 if (chip_id < 0) in ltc2978_probe()
716 data->vin_min = 0x7bff; in ltc2978_probe()
717 data->vin_max = 0x7c00; in ltc2978_probe()
718 for (i = 0; i < ARRAY_SIZE(data->vout_min); i++) in ltc2978_probe()
719 data->vout_min[i] = 0xffff; in ltc2978_probe()
720 for (i = 0; i < ARRAY_SIZE(data->iout_min); i++) in ltc2978_probe()
721 data->iout_min[i] = 0xfbff; in ltc2978_probe()
722 for (i = 0; i < ARRAY_SIZE(data->iout_max); i++) in ltc2978_probe()
723 data->iout_max[i] = 0x7c00; in ltc2978_probe()
724 for (i = 0; i < ARRAY_SIZE(data->temp_min); i++) in ltc2978_probe()
725 data->temp_min[i] = 0x7bff; in ltc2978_probe()
726 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe()
727 data->temp_max[i] = 0x7c00; in ltc2978_probe()
728 data->temp2_max = 0x7c00; in ltc2978_probe()
734 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
737 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
747 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
749 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
759 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
762 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
777 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
794 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
809 info->func[0] = PMBUS_HAVE_VIN in ltc2978_probe()
824 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
842 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()