| /Linux-v5.15/drivers/usb/typec/tcpm/ |
| D | tcpci.c | 36 struct tcpci { struct 50 struct tcpci *tcpci; argument 54 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci) in tcpci_get_tcpm_port() argument 56 return tcpci->port; in tcpci_get_tcpm_port() 60 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() 62 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci() 65 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument 67 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16() 70 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument 72 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16() [all …]
|
| D | tcpci.h | 168 struct tcpci; 191 int (*init)(struct tcpci *tcpci, struct tcpci_data *data); 192 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data, 194 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data, 196 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink); 197 void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data); 198 void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data, 202 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data); 203 void tcpci_unregister_port(struct tcpci *tcpci); 204 irqreturn_t tcpci_irq(struct tcpci *tcpci); [all …]
|
| D | tcpci_rt1711h.c | 40 struct tcpci *tcpci; member 76 static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata) in rt1711h_init() argument 107 static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vconn() argument 116 static int rt1711h_start_drp_toggling(struct tcpci *tcpci, in rt1711h_start_drp_toggling() argument 162 if (!chip->tcpci) in rt1711h_irq() 179 return tcpci_irq(chip->tcpci); in rt1711h_irq() 251 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe() 252 if (IS_ERR_OR_NULL(chip->tcpci)) in rt1711h_probe() 253 return PTR_ERR(chip->tcpci); in rt1711h_probe() 270 tcpci_unregister_port(chip->tcpci); in rt1711h_remove()
|
| D | tcpci_mt6360.c | 37 struct tcpci *tcpci; member 54 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument 117 return tcpci_irq(mti->tcpci); in mt6360_irq() 142 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe() 143 if (IS_ERR(mti->tcpci)) { in mt6360_tcpc_probe() 145 return PTR_ERR(mti->tcpci); in mt6360_tcpc_probe() 152 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_probe() 167 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_remove()
|
| D | tcpci_maxim.c | 45 struct tcpci *tcpci; member 211 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument 256 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument 263 max_tcpci_set_vbus(tcpci, tdata, true, false); in max_tcpci_frs_sourcing_vbus() 281 static void max_tcpci_set_partner_usb_comm_capable(struct tcpci *tcpci, struct tcpci_data *data, in max_tcpci_set_partner_usb_comm_capable() argument 423 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument 433 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument 477 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in max_tcpci_probe() 478 if (IS_ERR(chip->tcpci)) { in max_tcpci_probe() 480 return PTR_ERR(chip->tcpci); in max_tcpci_probe() [all …]
|
| D | Makefile | 6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
|
| /Linux-v5.15/Documentation/devicetree/bindings/usb/ |
| D | typec-tcpci.txt | 11 - interrupts: interrupt specification for tcpci alert. 14 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
|
| D | richtek,rt1711h.txt | 10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
|