Searched +full:source +full:- +full:pdos (Results 1 – 12 of 12) sorted by relevance
/Zephyr-latest/dts/bindings/usb-c/ |
D | usb-c-connector.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 A USB Type-C connector node represents a physical USB Type-C connector. 6 It should be a child of a USB-C interface controller or a separate node 7 when it is attached to both MUX and USB-C interface controller. 10 …/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/connector/usb-connector.yaml?h=v5.1… 14 USB-C connector attached to a STM32 UCPD typec port controller, which has 18 compatible = "zephyr,usb-c-vbus-adc"; 19 io-channels = <&adc2 8>; 20 output-ohms = <49900>; 21 full-ohms = <(330000 + 49900)>; [all …]
|
/Zephyr-latest/include/zephyr/usb_c/ |
D | usbc.h | 3 * 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 */ 70 * Request Policy Engine layer to get Source Capabilities from 80 * Request Policy Engine to request the port partner to source [all …]
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_stack.h | 4 * SPDX-License-Identifier: Apache-2.0 17 #define PRIV_PORT_REQUEST_SUSPEND -1 18 #define PRIV_PORT_REQUEST_START -2 65 /* Type-C layer data */ 67 /** Type-C state machine object */ 69 /** Enables or Disables the Type-C state machine */ 71 /** The state of the Type-C state machine */ 100 /** The Type-C Port Controller on this port */ 112 /** Bypass next sleep and request one more iteration of the USB-C state machines */ 115 /* USB-C Callbacks */ [all …]
|
D | usbc_pe_common_internal.h | 4 * SPDX-License-Identifier: Apache-2.0 18 * @brief Used in sub-machines for message transmit and receive operation 21 /* Wait for a message transmission sub-machine state */ 23 /* Wait for a message reception sub-machine state */ 28 * @brief Used in sub-machines for message source hard reset operation 31 /* Start the hard-reset sub-machine state */ 33 /* Wait for hard-reset to complete sub-machine state */ 151 * If this flag is not set the AMS is non-interruptible. This flag must 202 /** current port power role (SOURCE or SINK) */ 213 /** The Sink made a valid request of the Source if true */ [all …]
|
D | usbc_pe_snk_states.c | 4 * SPDX-License-Identifier: Apache-2.0 19 * @brief Initialize the Source Policy Engine layer 23 struct usbc_port_data *data = dev->data; in pe_snk_init() 24 struct policy_engine *pe = data->pe; in pe_snk_init() 30 usbc_timer_init(&pe->pd_t_typec_sink_wait_cap, PD_T_TYPEC_SINK_WAIT_CAP_MAX_MS); in pe_snk_init() 31 usbc_timer_init(&pe->pd_t_ps_transition, PD_T_SPR_PS_TRANSITION_NOM_MS); in pe_snk_init() 32 usbc_timer_init(&pe->pd_t_wait_to_resend, PD_T_SINK_REQUEST_MIN_MS); in pe_snk_init() 39 * @brief Handle sink-specific DPM requests 43 struct usbc_port_data *data = dev->data; in sink_dpm_requests() 44 struct policy_engine *pe = data->pe; in sink_dpm_requests() [all …]
|
D | usbc_pe_common.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * @brief Set the ready state for sink or source. 27 struct usbc_port_data *data = dev->data; in pe_set_ready_state() 29 if (data->pe->power_role == TC_ROLE_SOURCE) { in pe_set_ready_state() 43 struct usbc_port_data *data = dev->data; in common_dpm_requests() 44 struct policy_engine *pe = data->pe; in common_dpm_requests() 46 if (pe->dpm_request > REQUEST_TC_END) { in common_dpm_requests() 47 atomic_set_bit(pe->flags, PE_FLAGS_DPM_INITIATED_AMS); in common_dpm_requests() 49 if (pe->dpm_request == REQUEST_PE_DR_SWAP) { in common_dpm_requests() 52 } else if (pe->dpm_request == REQUEST_PE_SOFT_RESET_SEND) { in common_dpm_requests() [all …]
|
D | usbc_pe_src_states.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief USB-C Power Policy Engine (PE) 27 * @brief Initialize the Source Policy Engine layer 31 struct usbc_port_data *data = dev->data; in pe_src_init() 32 struct policy_engine *pe = data->pe; in pe_src_init() 34 /* Initial role of source is DFP */ in pe_src_init() 38 pe->snk_request_reply = SNK_REQUEST_REJECT; in pe_src_init() 41 usbc_timer_init(&pe->pd_t_typec_send_source_cap, PD_T_TYPEC_SEND_SOURCE_CAP_MIN_MS); in pe_src_init() 42 usbc_timer_init(&pe->pd_t_ps_hard_reset, PD_T_PS_HARD_RESET_MAX_MS); in pe_src_init() 49 * @brief Handle source-specific DPM requests [all …]
|
/Zephyr-latest/samples/subsys/usb_c/sink/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 33 /** Source Capabilities */ 35 /** Number of Source Capabilities */ 51 * - Maximum operating current 100mA 52 * - Operating current is 100mA 53 * - Unchunked Extended Messages Not Supported 54 * - No USB Suspend 55 * - Not USB Communications Capable 56 * - No capability mismatch 57 * - Does not Giveback [all …]
|
/Zephyr-latest/samples/subsys/usb_c/source/boards/ |
D | stm32g081b_eval.overlay | 4 * 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"; 26 /* Pin D3 is used to enable VBUS Source */ 51 /* usbc.rst vbus-voltage-divider-adc start */ 53 compatible = "zephyr,usb-c-vbus-adc"; 54 io-channels = <&adc1 9>; 55 output-ohms = <49900>; [all …]
|
/Zephyr-latest/samples/subsys/usb_c/sink/ |
D | README.rst | 1 .. zephyr:code-sample:: usb-c-sink 2 :name: Basic USB-C Sink 3 :relevant-api: _usbc_device_api 5 Implement a USB-C Power Delivery application in the form of a USB-C Sink. 10 This example demonstrates how to create a USB-C Power Delivery application and 11 how to generate USB VIF policies in XML format using the USB-C subsystem. The 12 application implements a USB-C Sink device. 14 After the USB-C Sink device is plugged into a Power Delivery charger, it 16 Power Delivery Objects (PDOs) provided by the charger. 18 .. _usb-c-sink-sample-requirements: [all …]
|
/Zephyr-latest/samples/subsys/usb_c/source/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 20 /* A Source power role evauates to 1. See usbc_tc.h: TC_ROLE_SOURCE */ 22 #error "Unsupported board: Only Source device supported" 32 /** Source Capabilities */ 34 /** Number of Source Capabilities */ 91 *rp = dpm_data->rp; in port0_policy_cb_get_src_rp() 114 dpm_data->vconn_pol = pol; in port0_policy_cb_vconn_en() 131 * @brief PE calls this function to get the Source Caps that will be sent 135 const uint32_t **pdos, uint32_t *num_pdos) in port0_policy_cb_get_src_caps() argument 139 *pdos = dpm_data->src_caps; in port0_policy_cb_get_src_caps() [all …]
|
/Zephyr-latest/boards/weact/stm32g431_core/ |
D | weact_stm32g431_core.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <st/g4/stm32g431c(6-8-b)ux-pinctrl.dtsi> 10 #include <zephyr/dt-bindings/usb-c/pd.h> 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 15 compatible = "weact,stm32g431-core"; 19 zephyr,shell-uart = &usart2; 26 mcuboot-button0 = &button_0; 27 mcuboot-led0 = &led_0; 30 usbc-port0 = &usbc1; [all …]
|