Home
last modified time | relevance | path

Searched full:tcpc (Results 1 – 25 of 43) sorted by relevance

12

/Zephyr-Core-3.6.0/drivers/usb_c/tcpc/
DKconfig1 # USBC TCPC configuration options
7 bool "USB-C TCPC drivers"
9 Enable USB TypeC Port Controller (TCPC) drivers
14 int "USB-C TCPC driver init priority"
23 bool "Shell commands for TCPC subsystem"
25 Enable support for TCPC shell commands that helps with USB-C diagnostics.
28 source "drivers/usb_c/tcpc/Kconfig.tcpc_stm32"
Dshell.c11 /** Macro used to call the dump_std_reg function from the TCPC device pointer */
15 #define TCPC_DUMP_CONN_NODE(node) TCPC_DUMP_DEV(DEVICE_DT_GET(DT_PROP(node, tcpc)))
28 /** Macro used to call the get_chip function from the TCPC device pointer */
40 #define TCPC_GET_CHIP_CONN_NODE(node) TCPC_GET_CHIP_DEV(DEVICE_DT_GET(DT_PROP(node, tcpc)))
144 "Dump TCPC registers\n"
145 "Usage: tcpc dump [<tcpc device>]",
149 "Usage: tcpc vbus [<vbus device>]",
153 "Usage: tcpc chip [<tcpc device>]",
157 SHELL_CMD_REGISTER(tcpc, &sub_tcpc_cmds, "TCPC (USB-C PD) diagnostics", NULL);
DKconfig.tcpc_stm321 # USB-C STM32 TCPC device configuration options
7 bool "USB-C TCPC device controller driver"
12 Enable USB-C TCPC support on the STM32 G0, G4, L5, and U5 family of
/Zephyr-Core-3.6.0/doc/hardware/peripherals/
Dtcpc.rst3 USB Type-C Port Controller (TCPC)
9 `TCPC <tcpc-specification_>`_ (USB Type-C Port Controller)
10 The TCPC is a device used to simplify the implementation of a USB-C system
14 The TCPC may provide a Source device, the mechanism to control VBUS sourcing,
19 The TCPC implements logic for controlling the CC pin pull-up and pull-down
24 The TCPC sends and receives messages constructed in the TCPM and places them
29 TCPC API
32 The TCPC device driver functions as the liaison between the TCPC device and the
34 device driver that's used to communicate with and control the TCPC device.
Dindex.rst59 tcpc.rst
/Zephyr-Core-3.6.0/subsys/usb/usb_c/
Dusbc_tc_common.c40 const struct device *tcpc = data->tcpc; in tc_run() local
82 if (tcpc_get_cc(tcpc, &tc->cc1, &tc->cc2) != 0) { in tc_run()
83 /* If this function fails, it may mean that the TCPC is in sleep mode or in tc_run()
84 * the communication with TCPC has failed, so we can assume that the CC in tc_run()
127 const struct device *tcpc = data->tcpc; in tc_init() local
141 /* Initialize the TCPC */ in tc_init()
142 ret = tcpc_init(tcpc); in tc_init()
144 LOG_ERR("TCPC initialization failed: %d", ret); in tc_init()
149 /* Stop sourcing VBUS by policy callback and/or TCPC */ in tc_init()
162 ret = tcpc_set_vconn(tcpc, false); in tc_init()
[all …]
Dusbc_tc_src_states.c76 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()
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
325 ret = tcpc_set_vconn(tcpc, false); in tc_attached_src_exit()
[all …]
Dusbc_stack.c81 .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
380 /* Make sure TCPC is ready */ in usbc_subsys_init()
381 if (!device_is_ready(tcpc)) { in usbc_subsys_init()
382 LOG_ERR("TCPC NOT READY"); in usbc_subsys_init()
Dusbc_tc_snk_states.c203 const struct device *tcpc = data->tcpc; in tc_attached_snk_entry() local
209 ret = tcpc_set_cc_polarity(tcpc, tc->cc_polarity); in tc_attached_snk_entry()
280 const struct device *tcpc = data->tcpc; in tc_cc_rd_entry() local
283 ret = tcpc_set_cc(tcpc, TC_CC_RD); in tc_cc_rd_entry()
Dusbc_prl.c47 * cleared when the message is sent to the TCPC layer.
312 tcpc_set_rx_enable(data->tcpc, false); in prl_run()
363 * @brief Alert Handler called by the TCPC driver
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()
542 * Set TCPC alert handler so we are notified when messages in prl_init()
545 tcpc_set_alert_handler_cb(data->tcpc, alert_handler, (void *)dev); in prl_init()
[all …]
/Zephyr-Core-3.6.0/dts/bindings/gpio/
Drichtek,rt1718s.yaml5 Richtek RT1718S TCPC chip
7 The Richtek RT1718S chip is TCPC, but also has 3 pins, which can be used as
9 address. Feature-specific(GPIO, TCPC) properties should be placed in a child
Drichtek,rt1718s-gpio-port.yaml5 Richtek RT1718S TCPC chip GPIO port
7 "richtek,rt1718s-gpio-port" node handles GPIO feature of the RT1718S TCPC
/Zephyr-Core-3.6.0/dts/bindings/mfd/
Dnuvoton,nct38xx.yaml7 The NCT38xx provides a TCPC and an I/O Expander capabilities.
9 The TCPC and I/O expander drivers are added to the devicetree
/Zephyr-Core-3.6.0/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h37 * @brief TCPC Alert bits
63 /** TCPC RX buffer has overflowed */
65 /** The TCPC in Attached.SNK state has detected a sink disconnect */
81 * @brief TCPC Status register
99 * @brief TCPC Chip Information
228 * @brief Initializes the TCPC
337 * @brief Sets a callback that can enable or disable VCONN if the TCPC is
339 * the VCONN control capabilities of the TCPC
359 * @brief Sets a callback that can enable or discharge VCONN if the TCPC is
361 * the VCONN control capabilities of the TCPC
[all …]
/Zephyr-Core-3.6.0/drivers/gpio/
DKconfig.rt1718s7 bool "RT1718S I2C-based TCPC chip with GPIOs"
11 Enable driver GPIO for RT1718S I2C-based TCPC chip.
/Zephyr-Core-3.6.0/drivers/usb_c/
DCMakeLists.txt3 add_subdirectory_ifdef(CONFIG_USBC_TCPC_DRIVER tcpc)
DKconfig6 source "drivers/usb_c/tcpc/Kconfig"
/Zephyr-Core-3.6.0/samples/subsys/usb_c/source/
Dsample.yaml5 depends_on: tcpc
/Zephyr-Core-3.6.0/samples/subsys/usb_c/sink/
Dsample.yaml5 depends_on: tcpc
/Zephyr-Core-3.6.0/boards/arm/stm32g081b_eval/
Dstm32g081b_eval.yaml16 - tcpc
/Zephyr-Core-3.6.0/boards/arm/stm32g071b_disco/
Dstm32g071b_disco.yaml16 - tcpc
/Zephyr-Core-3.6.0/boards/arm/b_g474e_dpow1/
Db_g474e_dpow1.yaml15 - tcpc
/Zephyr-Core-3.6.0/drivers/mfd/
DKconfig.nct38xx10 Enable the Nuvoton NCT38xx TCPC multi-function device driver.
/Zephyr-Core-3.6.0/boards/arm/weact_stm32g431_core/
Dweact_stm32g431_core.yaml16 - tcpc
/Zephyr-Core-3.6.0/samples/subsys/usb_c/sink/boards/
Dstm32g081b_eval.overlay32 tcpc = <&ucpd1>;

12