Home
last modified time | relevance | path

Searched full:vbus (Results 1 – 25 of 131) sorted by relevance

123456

/Zephyr-Core-3.5.0/include/zephyr/drivers/usb_c/
Dusbc_vbus.h8 * @brief USB-C VBUS device APIs
10 * This file contains the USB-C VBUS device APIs.
11 * All USB-C VBUS measurment and control device drivers should
19 * @brief USB-C VBUS API
20 * @defgroup usbc_vbus_api USB-C VBUS API
41 * @brief Checks if VBUS is at a particular level
46 * @retval true if VBUS is at the level voltage
47 * @retval false if VBUS is not at that level voltage
57 * @brief Reads and returns VBUS measured in mV
60 * @param meas pointer where the measured VBUS voltage is stored
[all …]
Dusbc_tc.h31 * @brief VBUS minimum for a sink disconnect detection.
32 * See Table 4-3 VBUS Sink Characteristics
37 * @brief VBUS maximum for a sink disconnect detection.
38 * See Table 4-3 VBUS Sink Characteristics
43 * @brief From entry to Attached.SRC until VBUS reaches the minimum vSafe5V threshold as
45 * See Table 4-29 VBUS and VCONN Timing Parameters
50 * @brief From the time the Sink is detached until the Source removes VBUS and reaches
52 * See Table 4-29 VBUS and VCONN Timing Parameters
57 * @brief From the time the Source supplied VBUS in the Attached.SRC state.
58 * See Table 4-29 VBUS and VCONN Timing Parameters
[all …]
/Zephyr-Core-3.5.0/doc/hardware/peripherals/
Dusbc_vbus.rst3 USB-C VBUS
9 USB-C VBUS is the line in a USB Type-C connection that delivers power from a
12 .. _usbc-vbus-api:
14 USB-C VBUS API
17 The USB-C VBUS device driver presents an API that's used to control and measure
18 VBUS.
Dtcpc.rst13 * VBUS and VCONN control `USB Type-C <usb-type-c-specification_>`_:
14 The TCPC may provide a Source device, the mechanism to control VBUS sourcing,
15 and a Sink device, the mechanism to control VBUS sinking. A similar mechanism
/Zephyr-Core-3.5.0/samples/subsys/usb_c/source/src/
Dpower_ctrl.h11 * @brief VBUS levels
14 /* VBUS off */
16 /* VBUS at default */
18 /* VBUS at 9V */
20 /* VBUS at 15V */
42 * @brief Control VBUS
/Zephyr-Core-3.5.0/drivers/usb_c/vbus/
DKconfig1 # USB-C VBUS Measurement configuration options
7 bool "USB-C VBUS drivers"
14 int "USB-C VBUS driver init priority"
17 Initialization priority of the USB-C VBUS measurement drivers in POST_KERNEL.
19 source "drivers/usb_c/vbus/Kconfig.usbc_vbus_adc"
DKconfig.usbc_vbus_adc1 # USB-C VBUS device configuration options
7 bool "USB-C VBUS ADC"
11 Measure VBUS with an ADC through a voltage divider
Dusbc_vbus_adc.c24 * @brief Reads and returns VBUS measured in mV
36 __ASSERT(meas != NULL, "ADC VBUS meas must not be NULL"); in adc_vbus_measure()
52 /* VBUS is scaled down though a voltage divider */ in adc_vbus_measure()
61 * @brief Checks if VBUS is at a particular level
63 * @retval true if VBUS is at the level voltage, else false
89 * @brief Sets pin to discharge VBUS
109 * @brief Sets pin to enable VBUS measurments
129 * @brief Initializes the ADC VBUS Driver
147 /* Configure VBUS Measurement enable pin if defined */ in adc_vbus_init()
162 /* Configure VBUS Discharge pin if defined */ in adc_vbus_init()
[all …]
/Zephyr-Core-3.5.0/samples/subsys/usb_c/source/boards/
Dstm32g081b_eval.overlay23 /* Pin D3 is used to enable VBUS Source */
48 /* usbc.rst vbus-voltage-divider-adc start */
49 vbus1: vbus {
50 compatible = "zephyr,usb-c-vbus-adc";
55 /* Pin B13 is used to control VBUS Discharge for Port1 */
58 /* usbc.rst vbus-voltage-divider-adc end */
69 vbus = <&vbus1>;
/Zephyr-Core-3.5.0/samples/subsys/usb_c/sink/boards/
Db_g474e_dpow1.overlay11 /* usbc.rst vbus-voltage-divider-adc start */
12 vbus1: vbus {
13 compatible = "zephyr,usb-c-vbus-adc";
18 /* usbc.rst vbus-voltage-divider-adc end */
28 vbus = <&vbus1>;
Dstm32g081b_eval.overlay11 vbus1: vbus {
12 compatible = "zephyr,usb-c-vbus-adc";
17 /* Pin B13 is used to control VBUS Discharge for Port1 */
29 vbus = <&vbus1>;
/Zephyr-Core-3.5.0/samples/boards/google_twinkie_v2_pda/src/
Dmeas.h19 * @brief Measure the voltage on VBUS
21 * @param v pointer where VBUS voltage, in millivolts, is stored
28 * @brief Measure the current on VBUS
30 * @param c pointer where VBUS current, in milliamperes, is stored
/Zephyr-Core-3.5.0/dts/bindings/usb-c/
Dzephyr,usb-c-vbus-adc.yaml5 This device is used to measure VBUS on a Type-C Port and to
6 discharge VBUS when needed.
8 compatible: "zephyr,usb-c-vbus-adc"
Dusb-c-connector.yaml17 vbus1: vbus {
18 compatible = "zephyr,usb-c-vbus-adc";
31 vbus = <&vbus1>;
51 vbus:
55 VBUS measurement and control for this port.
/Zephyr-Core-3.5.0/doc/connectivity/usb/pd/
Ducds.rst30 * Devicetree vbus node referencing a VBUS measurement device
45 VBUS is measured by a device that's referenced in the devicetree by a
46 usb-c-vbus-adc compatible node:
50 :start-after: usbc.rst vbus-voltage-divider-adc start
51 :end-before: usbc.rst vbus-voltage-divider-adc end
120 * Devicetree ``vbus`` node referencing a VBUS measurement device
135 VBUS is measured by a device that's referenced in the devicetree by a
136 ``usb-c-vbus-adc`` compatible node:
140 :start-after: usbc.rst vbus-voltage-divider-adc start
141 :end-before: usbc.rst vbus-voltage-divider-adc end
/Zephyr-Core-3.5.0/subsys/usb/usb_c/
Dusbc_tc_snk_states.c122 const struct device *vbus = data->vbus; in tc_attach_wait_snk_run() local
152 * VBUS is detected. in tc_attach_wait_snk_run()
154 vbus_present = usbc_vbus_check_level(vbus, TC_VBUS_PRESENT); in tc_attach_wait_snk_run()
195 const struct device *vbus = data->vbus; in tc_attached_snk_run() local
198 if (usbc_vbus_check_level(vbus, TC_VBUS_PRESENT) == false) { in tc_attached_snk_run()
Dusbc_tc_src_states.c20 * 1: The port shall not drive VBUS or VCONN.
58 * 1: The port shall not enable VBUS or VCONN.
136 const struct device *vbus = data->vbus; in tc_attach_wait_src_run() local
163 * The port shall transition to Attached.SRC when VBUS is at vSafe0V in tc_attach_wait_src_run()
167 if (usbc_vbus_check_level(vbus, TC_VBUS_SAFE0V)) { in tc_attach_wait_src_run()
205 * 5: The port shall supply VBUS current at the level it advertises on Rp.
208 * 7: The port shall not initiate any USB PD communications until VBUS
234 /* Start sourcing VBUS */ in tc_attached_src_entry()
297 /* Stop sourcing VBUS */ in tc_attached_src_exit()
/Zephyr-Core-3.5.0/dts/bindings/usb/
Dusb-controller.yaml24 vbus-gpios:
26 description: Control VBUS via GPIO pin.
/Zephyr-Core-3.5.0/drivers/usb_c/
DCMakeLists.txt4 add_subdirectory_ifdef(CONFIG_USBC_VBUS_DRIVER vbus)
DKconfig7 source "drivers/usb_c/vbus/Kconfig"
/Zephyr-Core-3.5.0/samples/boards/google_twinkie_v2_pda/
Dsample.yaml2 name: Twinkie V2 usb Vbus snooper
/Zephyr-Core-3.5.0/dts/bindings/sensor/
Dti,ina230.yaml48 vbus-conversion-time-us:
51 Vbus conversion time in microseconds.
Dnordic,npm1300-charger.yaml44 vbus-limit-microamp:
47 Vbus current limit in uA.
Dti,ina237.yaml69 vbus-conversion-time-us:
72 Vbus conversion time in microseconds.
/Zephyr-Core-3.5.0/boards/arm/stm32g071b_disco/doc/
Dindex.rst14 such as data role, power role, VBUS and IBUS monitoring. It offers an advanced
24 - 3 bidirectional current and power monitors with I2C interface to measure VBUS,
26 - On-board DC/DC converter to sustain power supply with VBUS varying from 3 V to
42 - Flexible power-supply options: ST-LINK USB VBUS or USB Type-C™ VBUS

123456