| /Zephyr-latest/subsys/usb/usb_c/ |
| D | usbc_tc_src_states.c | 76 const struct device *tcpc = data->tcpc; in tc_unattached_wait_src_entry() local 81 tcpc_vconn_discharge(tcpc, true); in tc_unattached_wait_src_entry() 103 const struct device *tcpc = data->tcpc; in tc_unattached_wait_src_exit() local 106 tcpc_vconn_discharge(tcpc, false); in tc_unattached_wait_src_exit() 225 const struct device *tcpc = data->tcpc; in tc_attached_src_entry() local 231 tcpc_set_roles(tcpc, TC_ROLE_SOURCE, TC_ROLE_DFP); in tc_attached_src_entry() 234 ret = tcpc_set_cc_polarity(tcpc, tc->cc_polarity); in tc_attached_src_entry() 242 if (usbc_policy_src_en(dev, tcpc, true) == 0) { in tc_attached_src_entry() 245 if (tcpc_set_vconn(tcpc, true) == 0) { in tc_attached_src_entry() 304 const struct device *tcpc = data->tcpc; in tc_attached_src_exit() local [all …]
|
| D | usbc_tc_common.c | 40 const struct device *tcpc = data->tcpc; in tc_run() local 82 if (tcpc_get_cc(tcpc, &tc->cc1, &tc->cc2) != 0) { in tc_run() 127 const struct device *tcpc = data->tcpc; in tc_init() local 142 ret = tcpc_init(tcpc); in tc_init() 150 ret = usbc_policy_src_en(dev, tcpc, false); in tc_init() 162 ret = tcpc_set_vconn(tcpc, false); in tc_init() 221 const struct device *tcpc = data->tcpc; in tc_select_src_collision_rp() local 225 ret = tcpc_select_rp_value(tcpc, rp); in tc_select_src_collision_rp() 233 ret = tcpc_set_cc(tcpc, TC_CC_RP); in tc_select_src_collision_rp() 248 const struct device *tcpc = data->tcpc; in tc_cc_open_entry() local [all …]
|
| D | usbc_stack.c | 81 .tcpc = DEVICE_DT_GET(DT_INST_PROP(inst, tcpc)), \ 320 const struct device *tcpc = data->tcpc; in usbc_set_vconn_control_cb() local 322 tcpc_set_vconn_cb(tcpc, cb); in usbc_set_vconn_control_cb() 333 const struct device *tcpc = data->tcpc; in usbc_set_vconn_discharge() local 335 tcpc_set_vconn_discharge_cb(tcpc, cb); in usbc_set_vconn_discharge() 378 const struct device *tcpc = data->tcpc; in usbc_subsys_init() local 381 if (!device_is_ready(tcpc)) { in usbc_subsys_init()
|
| D | usbc_tc_snk_states.c | 203 const struct device *tcpc = data->tcpc; in tc_attached_snk_entry() local 212 ret = tcpc_set_cc_polarity(tcpc, tc->cc_polarity); in tc_attached_snk_entry() 283 const struct device *tcpc = data->tcpc; in tc_cc_rd_entry() local 286 ret = tcpc_set_cc(tcpc, TC_CC_RD); in tc_cc_rd_entry()
|
| D | usbc_prl.c | 312 tcpc_set_rx_enable(data->tcpc, false); in prl_run() 365 static void alert_handler(const struct device *tcpc, void *port_dev, enum tcpc_alert alert) in alert_handler() argument 475 const struct device *tcpc = data->tcpc; in prl_tx_construct_message() local 498 tcpc_transmit_data(tcpc, &prl_tx->emsg); in prl_tx_construct_message() 508 const struct device *tcpc = data->tcpc; in prl_hr_send_msg_to_phy() local 522 tcpc_transmit_data(tcpc, &prl_tx->emsg); in prl_hr_send_msg_to_phy() 545 tcpc_set_alert_handler_cb(data->tcpc, alert_handler, (void *)dev); in prl_init() 577 const struct device *tcpc = data->tcpc; in prl_tx_phy_layer_reset_entry() local 582 tcpc_set_rx_enable(tcpc, tc_is_in_attached_state(dev)); in prl_tx_phy_layer_reset_entry() 900 const struct device *tcpc = data->tcpc; in prl_tx_snk_pending_run() local [all …]
|
| D | usbc_stack.h | 101 const struct device *tcpc; member 230 static inline int usbc_policy_src_en(const struct device *dev, const struct device *tcpc, bool en) in usbc_policy_src_en() argument 243 ret_tcpc = tcpc_set_src_ctrl(tcpc, en); in usbc_policy_src_en()
|
| D | usbc_pe_common.c | 197 tcpc_set_roles(data->tcpc, pe->power_role, pe->data_role); in pe_set_data_role() 850 tcpc_set_roles(data->tcpc, pe->power_role, pe->data_role); in pe_drs_send_swap_run()
|
| /Zephyr-latest/drivers/usb_c/tcpc/ |
| D | Kconfig | 28 source "drivers/usb_c/tcpc/Kconfig.tcpc_stm32" 29 source "drivers/usb_c/tcpc/Kconfig.tcpc_numaker" 30 source "drivers/usb_c/tcpc/Kconfig.tcpc_tcpci" 31 source "drivers/usb_c/tcpc/Kconfig.tcpc_ps8xxx" 32 source "drivers/usb_c/tcpc/Kconfig.tcpc_rt1715"
|
| D | shell.c | 15 #define TCPC_DUMP_CONN_NODE(node) TCPC_DUMP_DEV(DEVICE_DT_GET(DT_PROP(node, tcpc))) 40 #define TCPC_GET_CHIP_CONN_NODE(node) TCPC_GET_CHIP_DEV(DEVICE_DT_GET(DT_PROP(node, tcpc))) 157 SHELL_CMD_REGISTER(tcpc, &sub_tcpc_cmds, "TCPC (USB-C PD) diagnostics", NULL);
|
| D | ps8xxx.c | 452 static DEVICE_API(tcpc, ps8xxx_driver_api) = {
|
| D | rt1715.c | 481 static DEVICE_API(tcpc, rt1715_driver_api) = {
|
| D | ucpd_stm32.c | 1421 static DEVICE_API(tcpc, driver_api) = {
|
| D | ucpd_numaker.c | 2307 static DEVICE_API(tcpc, numaker_tcpc_driver_api) = {
|
| /Zephyr-latest/drivers/usb_c/ |
| D | CMakeLists.txt | 3 add_subdirectory_ifdef(CONFIG_USBC_TCPC_DRIVER tcpc)
|
| D | Kconfig | 6 source "drivers/usb_c/tcpc/Kconfig"
|
| /Zephyr-latest/samples/subsys/usb_c/sink/boards/ |
| D | stm32g081b_eval.overlay | 32 tcpc = <&ucpd1>;
|
| D | b_g474e_dpow1.overlay | 31 tcpc = <&ucpd1>;
|
| D | numaker_m2l31ki.overlay | 17 tcpc = <&tcpc0>;
|
| /Zephyr-latest/doc/hardware/peripherals/ |
| D | index.rst | 62 tcpc.rst
|
| D | tcpc.rst | 9 `TCPC <tcpc-specification_>`_ (USB Type-C Port Controller)
|
| /Zephyr-latest/samples/subsys/usb_c/source/boards/ |
| D | stm32g081b_eval.overlay | 71 tcpc = <&ucpd1>;
|
| /Zephyr-latest/boards/weact/stm32g431_core/ |
| D | weact_stm32g431_core.dts | 72 tcpc = <&ucpd1>;
|
| /Zephyr-latest/dts/bindings/ |
| D | binding-types.txt | 122 tcpc USB Type-C Port Controller
|
| /Zephyr-latest/dts/arm/nuvoton/ |
| D | m2l31x.dtsi | 414 compatible = "nuvoton,numaker-tcpc";
|