/linux/drivers/usb/typec/tcpm/ |
H A D | tcpci.c | 33 struct tcpci { struct 48 struct tcpci *tcpci; member 52 struct tcpm_port *tcpci_get_tcpm_port(struct tcpci *tcpci) in tcpci_get_tcpm_port() argument 54 return tcpci->port; in tcpci_get_tcpm_port() 58 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() 60 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci() 63 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument 65 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16() 68 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument 70 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16() [all …]
|
H A D | tcpci_mt6370.c | 30 struct tcpci *tcpci; member 50 static int mt6370_tcpc_init(struct tcpci *tcpci, struct tcpci_data *data) in mt6370_tcpc_init() argument 70 static int mt6370_tcpc_set_vconn(struct tcpci *tcpci, struct tcpci_data *data, in mt6370_tcpc_set_vconn() argument 78 static int mt6370_tcpc_set_vbus(struct tcpci *tcpci, struct tcpci_data *data, in mt6370_tcpc_set_vbus() argument 102 return tcpci_irq(priv->tcpci); in mt6370_irq_handler() 122 static void mt6370_unregister_tcpci_port(void *tcpci) in mt6370_unregister_tcpci_port() argument 124 tcpci_unregister_port(tcpci); in mt6370_unregister_tcpci_port() 160 priv->tcpci = tcpci_register_port(dev, &priv->tcpci_data); in mt6370_tcpc_probe() 161 if (IS_ERR(priv->tcpci)) in mt6370_tcpc_probe() 162 return dev_err_probe(dev, PTR_ERR(priv->tcpci), in mt6370_tcpc_probe() [all …]
|
H A D | tcpci_maxim_core.c | 205 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument 250 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument 257 max_tcpci_set_vbus(tcpci, tdata, true, false); in max_tcpci_frs_sourcing_vbus() 275 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 424 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument 434 static int tcpci_init(struct tcpci *tcpci, struct tcpci_data *data) in tcpci_init() argument 443 static void max_tcpci_check_contaminant(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_check_contaminant() argument 452 static bool max_tcpci_attempt_vconn_swap_discovery(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_attempt_vconn_swap_discovery() argument 464 static void max_tcpci_unregister_tcpci_port(void *tcpci) in max_tcpci_unregister_tcpci_port() argument 466 tcpci_unregister_port(tcpci); in max_tcpci_unregister_tcpci_port() [all …]
|
H A D | tcpci_mt6360.c | 41 struct tcpci *tcpci; member 52 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument 136 return tcpci_irq(mti->tcpci); in mt6360_irq() 161 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe() 162 if (IS_ERR(mti->tcpci)) { in mt6360_tcpc_probe() 164 return PTR_ERR(mti->tcpci); in mt6360_tcpc_probe() 171 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_probe() 186 tcpci_unregister_port(mti->tcpci); in mt6360_tcpc_remove()
|
H A D | tcpci_maxim.h | 56 struct tcpci *tcpci; member
|
H A D | Makefile | 6 obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
|
/linux/include/linux/usb/ |
H A D | tcpci.h | 175 struct tcpci; 219 int (*init)(struct tcpci *tcpci, struct tcpci_data *data); 220 int (*set_vconn)(struct tcpci *tcpci, struct tcpci_data *data, 222 int (*start_drp_toggling)(struct tcpci *tcpci, struct tcpci_data *data, 224 int (*set_vbus)(struct tcpci *tcpci, struct tcpci_data *data, bool source, bool sink); 225 void (*frs_sourcing_vbus)(struct tcpci *tcpci, struct tcpci_data *data); 226 void (*set_partner_usb_comm_capable)(struct tcpci *tcpci, struct tcpci_data *data, 228 void (*check_contaminant)(struct tcpci *tcpci, struct tcpci_data *data); 229 bool (*attempt_vconn_swap_discovery)(struct tcpci *tcpci, struct tcpci_data *data); 232 struct tcpci *tcpci_register_port(struct device *dev, struct tcpci_data *data); [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx93-9x9-qsb-i3c.dtso | 28 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx93-11x11-evk.dts | 445 compatible = "nxp,ptn5110", "tcpci"; 478 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx8mp-beacon-kit.dts | 385 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx93-9x9-qsb.dts | 260 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx8mm-evk.dtsi | 407 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx93-tqma9352-mba91xxca.dts | 338 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx93-tqma9352-mba93xxca.dts | 358 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx95-19x19-evk.dts | 405 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx93-tqma9352-mba93xxla.dts | 312 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx8mq-librem5-devkit.dts | 432 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx8qm-mek.dts | 584 compatible = "nxp,ptn5110", "tcpci";
|
H A D | imx95-15x15-evk.dts | 371 compatible = "nxp,ptn5110", "tcpci";
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | richtek,rt1711h.txt | 10 - connector: The "usb-c-connector" attached to the tcpci chip, the bindings
|
/linux/arch/arm64/boot/dts/exynos/google/ |
H A D | gs101-pixel-common.dtsi | 139 compatible = "maxim,max77759-tcpci", "maxim,max33359";
|
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8390-genio-common.dtsi | 1053 tcpci_int_pins: tcpci-int-pins {
|
/linux/ |
H A D | MAINTAINERS | 26207 F: drivers/usb/typec/tcpm/tcpci.c 26209 F: include/linux/usb/tcpci.h
|