Home
last modified time | relevance | path

Searched +full:vbus +full:- +full:discharge +full:- +full:enable +full:- +full:polarity (Results 1 – 5 of 5) 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/sink/boards/
Dnumaker_m2l31ki.overlay1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <dt-bindings/usb-c/pd.h>
7 usbc-port0 = &port0;
11 #address-cells = <1>;
12 #size-cells = <0>;
14 port0: usbc-port@0 {
15 compatible = "usb-c-connector";
18 vbus = <&vbus0>;
20 power-role = "sink";
21 sink-pdos = <PDO_FIXED(5000, 100, 0)>;
[all …]
/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_numaker.c4 * SPDX-License-Identifier: Apache-2.0
28 /* Implementation notes on NuMaker TCPC/PPC/VBUS
30 * 1. UTCPD, interfacing to external circuit on VBUS/VCONN voltage measurement,
31 * VBUS/VCONN overcurrent protection, VBUS overvoltage protection, etc.,
32 * can implement all functions defined in TCPC, PPC, and VBUS. For this,
33 * TCPC is implemented in UTCPD majorly; PPC and VBUS rely on TCPC for
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.
43 * (2) Separate pins for VCONN enable on CC1/CC2 (VCNEN1/VCNEN2)
[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()
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()
84 usbc_timer_start(&tc->tc_t_vconn_off); in tc_unattached_wait_src_entry()
90 const struct device *dev = tc->dev; in tc_unattached_wait_src_run()
[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 */
122 bool enable);
124 bool enable);
[all …]