| /Linux-v6.1/drivers/usb/typec/tcpm/ |
| D | tcpci.c | 30 struct tcpci { struct 44 struct tcpci *tcpci; argument 48 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci) in tcpci_get_tcpm_port() argument 50 return tcpci->port; in tcpci_get_tcpm_port() 54 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() 56 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci() 59 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument 61 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16() 64 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument 66 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16() [all …]
|
| D | tcpci_mt6370.c | 31 struct tcpci *tcpci; member 51 static int mt6370_tcpc_init(struct tcpci *tcpci, struct tcpci_data *data) in mt6370_tcpc_init() argument 71 static int mt6370_tcpc_set_vconn(struct tcpci *tcpci, struct tcpci_data *data, in mt6370_tcpc_set_vconn() argument 79 static int mt6370_tcpc_set_vbus(struct tcpci *tcpci, struct tcpci_data *data, in mt6370_tcpc_set_vbus() argument 103 return tcpci_irq(priv->tcpci); in mt6370_irq_handler() 123 static void mt6370_unregister_tcpci_port(void *tcpci) in mt6370_unregister_tcpci_port() argument 125 tcpci_unregister_port(tcpci); in mt6370_unregister_tcpci_port() 161 priv->tcpci = tcpci_register_port(dev, &priv->tcpci_data); in mt6370_tcpc_probe() 162 if (IS_ERR(priv->tcpci)) in mt6370_tcpc_probe() 163 return dev_err_probe(dev, PTR_ERR(priv->tcpci), in mt6370_tcpc_probe() [all …]
|
| D | tcpci_maxim.c | 44 struct tcpci *tcpci; member 210 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument 255 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument 262 max_tcpci_set_vbus(tcpci, tdata, true, false); in max_tcpci_frs_sourcing_vbus() 280 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 422 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument 432 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument 476 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in max_tcpci_probe() 477 if (IS_ERR(chip->tcpci)) { in max_tcpci_probe() 479 return PTR_ERR(chip->tcpci); in max_tcpci_probe() [all …]
|
| D | tcpci_rt1711h.c | 56 struct tcpci *tcpci; member 95 static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata) in rt1711h_init() argument 146 static int rt1711h_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vbus() argument 165 static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vconn() argument 221 static int rt1711h_start_drp_toggling(struct tcpci *tcpci, in rt1711h_start_drp_toggling() argument 267 if (!chip->tcpci) in rt1711h_irq() 286 return tcpci_irq(chip->tcpci); in rt1711h_irq() 373 chip->tcpci = tcpci_register_port(chip->dev, &chip->data); in rt1711h_probe() 374 if (IS_ERR_OR_NULL(chip->tcpci)) in rt1711h_probe() 375 return PTR_ERR(chip->tcpci); in rt1711h_probe() [all …]
|
| D | tcpci_mt6360.c | 41 struct tcpci *tcpci; member 58 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument 142 return tcpci_irq(mti->tcpci); in mt6360_irq() 167 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe() 168 if (IS_ERR(mti->tcpci)) { in mt6360_tcpc_probe() 170 return PTR_ERR(mti->tcpci); in mt6360_tcpc_probe() 177 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_probe() 192 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_remove()
|
| D | Makefile | 6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
|
| /Linux-v6.1/include/linux/usb/ |
| D | tcpci.h | 175 struct tcpci; 198 int (*init)(struct tcpci *tcpci, struct tcpci_data *data); 199 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data, 201 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data, 203 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink); 204 void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data); 205 void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data, 209 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data); 210 void tcpci_unregister_port(struct tcpci *tcpci); 211 irqreturn_t tcpci_irq(struct tcpci *tcpci); [all …]
|
| /Linux-v6.1/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
|