Home
last modified time | relevance | path

Searched +full:vconn +full:- +full:discharge +full:- +full:polarity (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/dts/bindings/tcpc/
Dnuvoton,numaker-tcpc.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Nuvoton NuMaker USB Type-C port controller
6 compatible: "nuvoton,numaker-tcpc"
8 include: [base.yaml, reset-device.yaml, pinctrl-device.yaml]
23 vconn-overcurrent-event-polarity:
26 Polarity of VCONN overcurrent event
28 - "low-active"
29 - "high-active"
31 vconn-discharge-polarity:
34 Polarity of VCONN discharge
[all …]
/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_numaker.c4 * SPDX-License-Identifier: Apache-2.0
30 * 1. UTCPD, interfacing to external circuit on VBUS/VCONN voltage measurement,
31 * VBUS/VCONN overcurrent protection, VBUS overvoltage protection, etc.,
35 * 2. For VBUS/VCONN voltage measurement, UTCPD is updated periodically
36 * by Timer-trigger EADC. To implement this interconnection, TCPC node_id
39 * NOTE: EADC and Timer interrupts needn't enable for Timer-triggered EADC.
41 * 3. About VCONN per PCB
42 * (1) Support only VCONN source, no VCONN sink (like Plug Cable)
43 * (2) Separate pins for VCONN enable on CC1/CC2 (VCNEN1/VCNEN2)
44 * (3) Single pin for VCONN discharge (DISCHG)
[all …]
Ducpd_stm32.c4 * SPDX-License-Identifier: Apache-2.0
65 * UCPDx_STROBE: UCPDx pull-down configuration strobe:
72 SYSCFG->CFGR1 |= SYSCFG_CFGR1_UCPD1_STROBE_Msk; in update_stm32g0x_cc_line()
74 SYSCFG->CFGR1 |= SYSCFG_CFGR1_UCPD2_STROBE_Msk; in update_stm32g0x_cc_line()
84 struct tcpc_data *data = dev->data; in ucpd_tx_data_byte()
85 const struct tcpc_config *const config = dev->config; in ucpd_tx_data_byte()
86 int index = data->ucpd_tx_active_buffer->msg_index++; in ucpd_tx_data_byte()
88 LL_UCPD_WriteData(config->ucpd_port, in ucpd_tx_data_byte()
89 data->ucpd_tx_active_buffer->data.msg[index]); in ucpd_tx_data_byte()
97 struct tcpc_data *data = dev->data; in ucpd_rx_data_byte()
[all …]
Dps8xxx.c3 * SPDX-License-Identifier: Apache-2.0
37 /** Alert handler set by USB-C stack */
39 /** Alert handler data set by USB-C stack */
42 /** VCONN discharge callback set by USB-C stack */
44 /** VCONN discharge callback data set by USB-C stack */
46 /** Polarity of CC lines for PD and VCONN */
69 const struct ps8xxx_cfg *cfg = dev->config; in tcpci_init_alert_mask()
76 ret = tcpci_write_reg16(&cfg->bus, TCPC_REG_ALERT_MASK, mask); in tcpci_init_alert_mask()
86 struct ps8xxx_data *data = dev->data; in ps8xxx_tcpc_init()
88 if (!data->initialized) { in ps8xxx_tcpc_init()
[all …]
/Zephyr-latest/subsys/usb/usb_c/
Dusbc_tc_src_states.c4 * SPDX-License-Identifier: Apache-2.0
21 * 1: The port shall not drive VBUS or VCONN.
38 const struct device *dev = tc->dev; in tc_unattached_src_run()
47 if (tcpc_is_cc_at_least_one_rd(tc->cc1, tc->cc2)) { in tc_unattached_src_run()
56 * that was providing VCONN in the previous Attached.SRC state.
59 * 1: The port shall not enable VBUS or VCONN.
74 const struct device *dev = tc->dev; in tc_unattached_wait_src_entry()
75 struct usbc_port_data *data = dev->data; in tc_unattached_wait_src_entry()
76 const struct device *tcpc = data->tcpc; in tc_unattached_wait_src_entry()
80 /* Start discharging VCONN */ in tc_unattached_wait_src_entry()
[all …]
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USBC Type-C Port Controller device APIs
10 * This file contains the USB Type-C Port Controller device APIs.
11 * All Type-C Port Controller device drivers should implement the
19 * @brief USB Type-C Port Controller API
20 * @defgroup usb_type_c_port_controller_api USB Type-C Port Controller API
59 /** A high-voltage alarm has occurred */
61 /** A low-voltage alarm has occurred */
143 int (*set_cc_polarity)(const struct device *dev, enum tc_cc_polarity polarity);
231 * @retval -EIO on failure
[all …]