/openbmc/linux/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec.c | 34 struct tcpc_dev tcpc; member 42 #define tcpc_to_tcpm(_tcpc_) container_of(_tcpc_, struct pmic_typec, tcpc) 44 static int qcom_pmic_typec_get_vbus(struct tcpc_dev *tcpc) in qcom_pmic_typec_get_vbus() argument 46 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_get_vbus() 56 static int qcom_pmic_typec_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in qcom_pmic_typec_set_vbus() argument 58 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_set_vbus() 79 static int qcom_pmic_typec_set_vconn(struct tcpc_dev *tcpc, bool on) in qcom_pmic_typec_set_vconn() argument 81 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_set_vconn() 86 static int qcom_pmic_typec_get_cc(struct tcpc_dev *tcpc, in qcom_pmic_typec_get_cc() argument 90 struct pmic_typec *tcpm = tcpc_to_tcpm(tcpc); in qcom_pmic_typec_get_cc() [all …]
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | tcpci.c | 40 struct tcpc_dev tcpc; member 55 static inline struct tcpci *tcpc_to_tcpci(struct tcpc_dev *tcpc) in tcpc_to_tcpci() argument 57 return container_of(tcpc, struct tcpci, tcpc); in tcpc_to_tcpci() 70 static int tcpci_set_cc(struct tcpc_dev *tcpc, enum typec_cc_status cc) in tcpci_set_cc() argument 72 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_set_cc() 143 static int tcpci_apply_rc(struct tcpc_dev *tcpc, enum typec_cc_status cc, in tcpci_apply_rc() argument 146 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_apply_rc() 170 static int tcpci_start_toggling(struct tcpc_dev *tcpc, in tcpci_start_toggling() argument 175 struct tcpci *tcpci = tcpc_to_tcpci(tcpc); in tcpci_start_toggling() 217 static int tcpci_get_cc(struct tcpc_dev *tcpc, in tcpci_get_cc() argument [all …]
|
H A D | wcove.c | 154 struct tcpc_dev tcpc; member 158 #define tcpc_to_wcove(_tcpc_) container_of(_tcpc_, struct wcove_typec, tcpc) 200 static int wcove_init(struct tcpc_dev *tcpc) in wcove_init() argument 202 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_init() 217 static int wcove_get_vbus(struct tcpc_dev *tcpc) in wcove_get_vbus() argument 219 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_get_vbus() 232 static int wcove_set_vbus(struct tcpc_dev *tcpc, bool on, bool sink) in wcove_set_vbus() argument 234 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_set_vbus() 239 static int wcove_set_vconn(struct tcpc_dev *tcpc, bool on) in wcove_set_vconn() argument 241 struct wcove_typec *wcove = tcpc_to_wcove(tcpc); in wcove_set_vconn() [all …]
|
H A D | tcpm.c | 308 struct tcpc_dev *tcpc; member 798 port->tcpc->set_cc(port->tcpc, cc); in tcpm_set_cc() 805 if (port->tcpc->enable_auto_vbus_discharge) { in tcpm_enable_auto_vbus_discharge() 806 ret = port->tcpc->enable_auto_vbus_discharge(port->tcpc, enable); in tcpm_enable_auto_vbus_discharge() 822 if (port->tcpc->enable_auto_vbus_discharge && port->tcpc->apply_rc) { in tcpm_apply_rc() 824 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity); in tcpm_apply_rc() 895 ret = port->tcpc->pd_transmit(port->tcpc, type, msg, port->negotiated_rev); in tcpm_pd_transmit() 973 ret = port->tcpc->set_polarity(port->tcpc, polarity); in tcpm_set_polarity() 988 ret = port->tcpc->set_vconn(port->tcpc, enable); in tcpm_set_vconn() 1012 if (port->tcpc->get_current_limit) in tcpm_get_current_limit() [all …]
|
H A D | tcpci_mt6360.c | 212 { .compatible = "mediatek,mt6360-tcpc", }, 219 .name = "mt6360-tcpc",
|
H A D | tcpci_mt6370.c | 188 { .compatible = "mediatek,mt6370-tcpc" }, 195 .name = "mt6370-tcpc",
|
H A D | tcpci_maxim.h | 5 * MAXIM TCPC header file.
|
H A D | maxim_contaminant.c | 385 MODULE_DESCRIPTION("MAXIM TCPC CONTAMINANT Module");
|
H A D | tcpci_maxim_core.c | 5 * MAXIM TCPCI based TCPC driver
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | mediatek,mt6360-tcpc.yaml | 4 $id: http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml# 20 - mediatek,mt6360-tcpc 58 tcpc { 59 compatible = "mediatek,mt6360-tcpc";
|
H A D | mediatek,mt6370-tcpc.yaml | 4 $id: http://devicetree.org/schemas/usb/mediatek,mt6370-tcpc.yaml# 22 - mediatek,mt6370-tcpc
|
H A D | willsemi,wusb3801.yaml | 59 tcpc@60 {
|
/openbmc/linux/include/linux/usb/ |
H A D | tcpm.h | 31 /* Time to wait for TCPC to complete transmit */ 96 * Optional; TCPCI spec based TCPC implementations can optionally 98 * as sink or source. TCPM signals TCPC to enable the mechanism upon 108 * Optional; TCPCI spec based TCPC implementations are expected to 110 * is supported by TCPC, set this callback for TCPM to query 161 struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc);
|
H A D | tcpci.h | 185 * Optional; Enables TCPC to autonously discharge vbus on disconnect. 187 * optional; Set when TCPC can detect whether vbus is at VSAFE0V.
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | mediatek,mt6370.yaml | 63 tcpc: 65 $ref: /schemas/usb/mediatek,mt6370-tcpc.yaml# 108 - tcpc 216 tcpc { 217 compatible = "mediatek,mt6370-tcpc";
|
H A D | mediatek,mt6360.yaml | 46 tcpc: 47 $ref: /schemas/usb/mediatek,mt6360-tcpc.yaml# 206 tcpc { 207 compatible = "mediatek,mt6360-tcpc";
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | stp.h | 19 u32 tcpc : 1; /* Time control parameter change */ member
|
/openbmc/linux/drivers/mfd/ |
H A D | mt6370.c | 142 MFD_CELL_OF("mt6370-tcpc", 143 NULL, NULL, 0, 0, "mediatek,mt6370-tcpc"),
|
H A D | mt6360-core.c | 344 MFD_CELL_OF("mt6360-tcpc", NULL, 345 NULL, 0, 0, "mediatek,mt6360-tcpc"),
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3566-pinenote.dtsi | 468 wusb3801: tcpc@60 { 606 tcpc { 607 tcpc_int_l: tcpc-int-l {
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8qxp-mek.dts | 147 ptn5110: tcpc@50 {
|
H A D | imx8mn-evk.dtsi | 217 ptn5110: tcpc@50 {
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-debug.c | 86 "Resources:\n\tCPC %#x\n\tIBS %#x\n\tOBS %#x\t\n", in module_read()
|
/openbmc/linux/drivers/usb/typec/ |
H A D | anx7411.c | 48 /* TCPC register define */ 888 /* Set TCPC to RD and DRP enable */ in anx7411_chip_standby() 898 /* Send TCPC enter standby command */ in anx7411_chip_standby()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | vpe-mt.c | 78 * Write the address we want it to start running from in the TCPC in vpe_run()
|