/Zephyr-Core-3.5.0/include/zephyr/drivers/usb_c/ |
D | usbc_vbus.h | 8 * @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 …]
|
D | usbc_tc.h | 31 * @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/ |
D | usbc_vbus.rst | 3 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.
|
D | tcpc.rst | 13 * 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/ |
D | power_ctrl.h | 11 * @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/ |
D | Kconfig | 1 # 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"
|
D | Kconfig.usbc_vbus_adc | 1 # USB-C VBUS device configuration options 7 bool "USB-C VBUS ADC" 11 Measure VBUS with an ADC through a voltage divider
|
D | usbc_vbus_adc.c | 24 * @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/ |
D | stm32g081b_eval.overlay | 23 /* 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/ |
D | b_g474e_dpow1.overlay | 11 /* 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>;
|
D | stm32g081b_eval.overlay | 11 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/ |
D | meas.h | 19 * @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/ |
D | zephyr,usb-c-vbus-adc.yaml | 5 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"
|
D | usb-c-connector.yaml | 17 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/ |
D | ucds.rst | 30 * 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/ |
D | usbc_tc_snk_states.c | 122 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()
|
D | usbc_tc_src_states.c | 20 * 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/ |
D | usb-controller.yaml | 24 vbus-gpios: 26 description: Control VBUS via GPIO pin.
|
/Zephyr-Core-3.5.0/drivers/usb_c/ |
D | CMakeLists.txt | 4 add_subdirectory_ifdef(CONFIG_USBC_VBUS_DRIVER vbus)
|
D | Kconfig | 7 source "drivers/usb_c/vbus/Kconfig"
|
/Zephyr-Core-3.5.0/samples/boards/google_twinkie_v2_pda/ |
D | sample.yaml | 2 name: Twinkie V2 usb Vbus snooper
|
/Zephyr-Core-3.5.0/dts/bindings/sensor/ |
D | ti,ina230.yaml | 48 vbus-conversion-time-us: 51 Vbus conversion time in microseconds.
|
D | nordic,npm1300-charger.yaml | 44 vbus-limit-microamp: 47 Vbus current limit in uA.
|
D | ti,ina237.yaml | 69 vbus-conversion-time-us: 72 Vbus conversion time in microseconds.
|
/Zephyr-Core-3.5.0/boards/arm/stm32g071b_disco/doc/ |
D | index.rst | 14 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
|