Home
last modified time | relevance | path

Searched +full:vbus +full:- +full:sink +full:- +full:enable +full:- +full:polarity (Results 1 – 8 of 8) 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/subsys/usb/usb_c/
Dusbc_tc_snk_states.c4 * SPDX-License-Identifier: Apache-2.0
16 * @brief Sink power sub states. Only called if a PD contract is not in place
20 struct usbc_port_data *data = dev->data; in sink_power_sub_states()
24 struct tc_sm_t *tc = data->tc; in sink_power_sub_states()
27 cc = tc->cc_polarity ? tc->cc2 : tc->cc1; in sink_power_sub_states()
31 * This sub-state supports Sinks consuming current within the in sink_power_sub_states()
32 * lowest range (default) of Source-supplied current. in sink_power_sub_states()
38 * This sub-state supports Sinks consuming current within the in sink_power_sub_states()
39 * two lower ranges (default and 1.5 A) of Source-supplied in sink_power_sub_states()
46 * This sub-state supports Sinks consuming current within all in sink_power_sub_states()
[all …]
Dusbc_tc_src_states.c4 * SPDX-License-Identifier: Apache-2.0
18 * presence of a Sink or an Accessory.
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()
[all …]
Dusbc_tc_common_internal.h4 * SPDX-License-Identifier: Apache-2.0
19 * Flag to track Rp resistor change when the sink attached
20 * sub-state runs
28 * @brief Type-C States
36 /** Unattached Sink State */
38 /** Attach Wait Sink State */
40 /** Attached Sink State */
73 /** VBUS measurement device */
75 /** Port polarity */
101 * @brief Sets a Type-C State
[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.
42 * (1) Support only VCONN source, no VCONN sink (like Plug Cable)
[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 */
67 /** The TCPC in Attached.SNK state has detected a sink disconnect */
122 bool enable);
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-3.3.rst14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery)
17 CMSIS-DSP as the default backend.
30 * CVE-2023-0359: Under embargo until 2023-04-20
32 * CVE-2023-0779: Under embargo until 2023-04-22
51 allow disabling sync reports, and enable sync report filtering. these two
56 added to enable the PAST implementation rather than
66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding.
71 * Starting from this release ``zephyr-`` prefixed tags won't be created
75 standard logging system. To enable debugging for a particular module in the
76 Bluetooth subsystem, enable `CONFIG_BT_(module name)_LOG_LEVEL_DBG` instead of
[all …]