Lines Matching +full:manufacturer +full:- +full:id
1 // SPDX-License-Identifier: GPL-2.0-or-later
43 .R[PSC_CURRENT_OUT] = 3 - 6,
51 .R[PSC_POWER] = 4 - 6,
78 return dev_err_probe(&client->dev, ret, in ltc4286_probe()
79 "Failed to read manufacturer id\n"); in ltc4286_probe()
84 * the manufacturer id is LTC in ltc4286_probe()
88 return dev_err_probe(&client->dev, -ENODEV, in ltc4286_probe()
89 "Manufacturer id mismatch\n"); in ltc4286_probe()
94 return dev_err_probe(&client->dev, ret, in ltc4286_probe()
95 "Failed to read manufacturer model\n"); in ltc4286_probe()
98 for (mid = ltc4286_id; mid->name[0]; mid++) { in ltc4286_probe()
99 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ltc4286_probe()
102 if (!mid->name[0]) in ltc4286_probe()
103 return dev_err_probe(&client->dev, -ENODEV, in ltc4286_probe()
106 if (of_property_read_u32(client->dev.of_node, in ltc4286_probe()
107 "shunt-resistor-micro-ohms", &rsense)) in ltc4286_probe()
111 return -EINVAL; in ltc4286_probe()
115 return -EINVAL; in ltc4286_probe()
117 info = devm_kmemdup(&client->dev, <c4286_info, sizeof(*info), in ltc4286_probe()
120 return -ENOMEM; in ltc4286_probe()
125 return dev_err_probe(&client->dev, vrange_oval, in ltc4286_probe()
126 "Failed to read manufacturer configuration one\n"); in ltc4286_probe()
129 if (device_property_read_bool(&client->dev, "adi,vrange-low-enable")) { in ltc4286_probe()
133 info->m[PSC_VOLTAGE_IN] = 128; in ltc4286_probe()
134 info->m[PSC_VOLTAGE_OUT] = 128; in ltc4286_probe()
135 info->m[PSC_POWER] = 4 * rsense; in ltc4286_probe()
140 info->m[PSC_POWER] = rsense; in ltc4286_probe()
147 return dev_err_probe(&client->dev, ret, in ltc4286_probe()
151 info->m[PSC_CURRENT_OUT] = 1024 * rsense; in ltc4286_probe()