Lines Matching +full:en +full:- +full:pin +full:- +full:fixed +full:- +full:level
1 // SPDX-License-Identifier: GPL-2.0+
38 return -ENODATA; in tda38640_read_byte_data()
51 enabled ^= data->en_pin_lvl; in tda38640_read_byte_data()
71 return -ENODATA; in tda38640_write_byte_data()
80 enable ^= data->en_pin_lvl; in tda38640_write_byte_data()
97 .addr = client->addr, in svid_mode()
103 .addr = client->addr, in svid_mode()
110 ret = i2c_transfer(client->adapter, msgs, 2); in svid_mode()
112 dev_err(&client->dev, "i2c_transfer failed. %d", ret); in svid_mode()
123 * Determine EN pin level for use in SVID mode. in svid_mode()
124 * This is done with help of STATUS_BYTE bit 6(OFF) & ON_OFF_CONFIG bit 2(EN pin polarity). in svid_mode()
136 data->en_pin_lvl = off ^ reg_en_pin_pol; in svid_mode()
167 data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); in tda38640_probe()
169 return -ENOMEM; in tda38640_probe()
170 memcpy(&data->info, &tda38640_info, sizeof(tda38640_info)); in tda38640_probe()
173 of_property_read_bool(client->dev.of_node, "infineon,en-pin-fixed-level")) { in tda38640_probe()
176 dev_err_probe(&client->dev, svid, "Could not determine operating mode."); in tda38640_probe()
190 data->info.read_byte_data = tda38640_read_byte_data; in tda38640_probe()
191 data->info.write_byte_data = tda38640_write_byte_data; in tda38640_probe()
194 return pmbus_do_probe(client, &data->info); in tda38640_probe()