Home
last modified time | relevance | path

Searched +full:vconn +full:- +full:discharge (Results 1 – 11 of 11) 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/samples/subsys/usb_c/source/boards/
Dstm32g081b_eval.overlay4 * SPDX-License-Identifier: Apache-2.0
8 #include <dt-bindings/usb-c/pd.h>
12 usbc-port0 = &port1;
16 compatible = "pwm-leds";
24 compatible = "gpio-leds";
38 /* Pin D4 enables VCONN on CC1 */
44 /* Pin B9 enables VCONN on CC2 */
51 /* usbc.rst vbus-voltage-divider-adc start */
53 compatible = "zephyr,usb-c-vbus-adc";
54 io-channels = <&adc1 9>;
[all …]
/Zephyr-latest/include/zephyr/usb_c/
Dtcpci.h3 * SPDX-License-Identifier: Apache-2.0
15 * Registers and fields are compliant to the Type-C Port Controller Interface
19 /** Register address - vendor id */
22 /** Register address - product id */
25 /** Register address - version of TCPC */
28 /** Register address - USB TypeC version */
30 /** Mask for major part of type-c release supported */
32 /** Macro to extract the major part of type-c release supported */
34 /** Mask for minor part of type-c release supported */
36 /** Macro to extract the minor part of type-c release supported */
[all …]
Dusbc.h3 * SPDX-License-Identifier: Apache-2.0
8 * @brief USB-C Device APIs
10 * This file contains the USB-C Device APIs.
26 * @brief USB-C Device APIs
27 * @defgroup _usbc_device_api USB-C Device API
56 /** Request Type-C layer to transition to Disabled State */
58 /** Request Type-C layer to transition to Error Recovery State */
60 /** End of Type-C requests */
142 /** Check if should control VCONN */
158 /** The port partner is unable to do a VCONN Swap at this time */
[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_priv.h4 * SPDX-License-Identifier: Apache-2.0
17 * @brief The packet type(SOP*) consists of 2-bytes
22 * @brief The message header consists of 2-bytes
98 #define UCPD_ANASUB_TO_RP(r) ((r - 1) & 0x3)
194 TX_MSG_NONE = -1,
276 /* VCONN callback function */
278 /* VCONN Discharge callback function */
320 /* Track VCONN on/off state */
322 /* Track CC line that VCONN was active on */
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 */
231 * @retval -EIO on failure
232 * @retval -EAGAIN if initialization should be postponed
[all …]
/Zephyr-latest/boards/st/stm32g081b_eval/doc/
Dindex.rst5 The STM32G081B-EVAL Evaluation board is a high-end development platform, for
6 Arm Cortex-M0+ core-based STM32G081RBT6 microcontroller, with USB Type-C and
7 power delivery controller interfaces (UCPD), compliant with USB type-C r1.2
9 one 12-bit ADC, two 12-bit DACs, two GP comparators, two LP timers, internal
11 hardware features on the STM32G081B-EVAL Evaluation board includes a mother
12 board, a legacy peripheral daughterboard and a USB-C and Power Delivery
13 daughterboard, which help to evaluate all peripherals (USB Type-C connector
19 The board integrates an ST-LINK/V2-1 as an embedded in-circuit debugger and
24 The USB-C and Power Delivery daughterboard
25 features two independent USB-C ports controlled by an STM32G0. USB-C port 1
[all …]