/Zephyr-Core-3.6.0/soc/arm/st_stm32/stm32g0/ |
D | soc.c | 5 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/linker/linker-defs.h> 25 * @brief Disable the internal Pull-Up in Dead Battery pins of UCPD peripherals 27 * The internal Pull-Up in Dead Battery pins of UCPD peripherals are disabled, 88 /* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */ in stm32g0_init()
|
/Zephyr-Core-3.6.0/include/zephyr/drivers/usb_c/ |
D | usbc_ppc.h | 3 * SPDX-License-Identifier: Apache-2.0 8 * @brief USB Type-C Power Path Controller device API 25 /** Exit from dead-battery mode failed */ 71 * @brief Check if PPC is in the dead battery mode 74 * @retval 1 if PPC is in the dead battery mode 75 * @retval 0 if PPC is not in the dead battery mode 76 * @retval -EIO if I2C communication failed 77 * @retval -ENOSYS if this function is not supported by the driver 81 const struct usbc_ppc_drv *api = (const struct usbc_ppc_drv *)dev->api; in ppc_is_dead_battery_mode() 83 if (api->is_dead_battery_mode == NULL) { in ppc_is_dead_battery_mode() [all …]
|
/Zephyr-Core-3.6.0/dts/bindings/tcpc/ |
D | st,stm32-ucpd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 ST STM32 family USB Type-C / Power Delivery. The default values were 8 compatible: "st,stm32-ucpd" 10 include: [base.yaml, pinctrl-device.yaml] 22 psc-ucpdclk: 26 - 1 27 - 2 28 - 4 29 - 8 30 - 16 [all …]
|
/Zephyr-Core-3.6.0/drivers/usb_c/ppc/ |
D | shell.c | 3 * SPDX-License-Identifier: Apache-2.0 10 /** Macro used to iterate over USB-C connector and call a function if the node has PPC property */ 45 printk("PPC %s:\n", dev->name); in print_status() 46 printk(" Dead battery: %d\n", ppc_is_dead_battery_mode(dev)); in print_status() 78 * @brief Command that requests one or all of the PPCs to try exiting the dead battery mode 111 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get() 112 entry->handler = NULL; in device_name_get() 113 entry->help = NULL; in device_name_get() 114 entry->subcmd = NULL; in device_name_get() 129 "Exit from the dead battery mode\n" [all …]
|
D | nxp_nx20p3483_priv.h | 3 * SPDX-License-Identifier: Apache-2.0 14 #include<zephyr/dt-bindings/usb-c/nxp_nx20p3483.h> 16 /** Register address - device id */ 23 /** Register address - device status */ 28 /** Value for dead battery mode */ 30 /** Value for high-voltage sink mode */ 34 /** Value for high-voltage source mode */ 39 /** Register address - switch control */ 44 /** Register address - switch status */ 53 /** Register address - interrupt1 */ [all …]
|
D | nxp_nx20p3483.c | 3 * SPDX-License-Identifier: Apache-2.0 37 /** Boolean value whether to use high-voltage source if true or 5V source if false */ 63 const struct nx20p3483_cfg *cfg = dev->config; in read_reg() 66 ret = i2c_reg_read_byte(cfg->bus.bus, cfg->bus.addr, reg, value); in read_reg() 77 const struct nx20p3483_cfg *cfg = dev->config; in write_reg() 80 ret = i2c_reg_write_byte(cfg->bus.bus, cfg->bus.addr, reg, value); in write_reg() 94 return -EINVAL; in nx20p3483_set_snk_ovp_limit() 170 const struct nx20p3483_cfg *cfg = dev->config; in nx20p3483_set_vbus_sink() 177 return nx20p3483_set_snk_ovp_limit(dev, cfg->snk_ovp_thresh); in nx20p3483_set_vbus_sink() 204 struct nx20p3483_data *data = dev->data; in nx20p3483_set_event_handler() [all …]
|
/Zephyr-Core-3.6.0/samples/subsys/usb_c/sink/boards/ |
D | weact_stm32g431_core.overlay | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <dt-bindings/usb-c/pd.h> 29 dead-battery;
|
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 = "zephyr,usb-c-vbus-adc"; 17 io-channels = <&adc1 9>; 18 output-ohms = <49900>; 19 full-ohms = <(330000 + 49900)>; 22 discharge-gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>; 26 #address-cells = <1>; 27 #size-cells = <0>; [all …]
|
D | b_g474e_dpow1.overlay | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <dt-bindings/usb-c/pd.h> 12 usbc-port0 = &port1; 15 /* usbc.rst vbus-voltage-divider-adc start */ 17 compatible = "zephyr,usb-c-vbus-adc"; 18 io-channels = <&adc2 8>; 19 output-ohms = <49900>; 20 full-ohms = <(330000 + 49900)>; 22 /* usbc.rst vbus-voltage-divider-adc end */ 25 #address-cells = <1>; [all …]
|
/Zephyr-Core-3.6.0/soc/arm/st_stm32/stm32g4/ |
D | soc.c | 4 * SPDX-License-Identifier: Apache-2.0 40 /* Disable USB Type-C dead battery pull-down behavior */ in stm32g4_init()
|
/Zephyr-Core-3.6.0/soc/arm/st_stm32/stm32l5/ |
D | soc.c | 4 * SPDX-License-Identifier: Apache-2.0 47 /* Disable USB Type-C dead battery pull-down behavior */ in stm32l5_init()
|
/Zephyr-Core-3.6.0/soc/arm/st_stm32/stm32h5/ |
D | soc.c | 4 * SPDX-License-Identifier: Apache-2.0 34 /* Enable instruction cache in 1-way (direct mapped cache) */ in stm32h5_init() 43 /* Disable USB Type-C dead battery pull-down behavior */ in stm32h5_init()
|
/Zephyr-Core-3.6.0/soc/arm/st_stm32/stm32u5/ |
D | soc.c | 4 * SPDX-License-Identifier: Apache-2.0 34 /* Enable instruction cache in 1-way (direct mapped cache) */ in stm32u5_init() 45 /* Disable USB Type-C dead battery pull-down behavior */ in stm32u5_init()
|
/Zephyr-Core-3.6.0/drivers/usb_c/tcpc/ |
D | ucpd_stm32_priv.h | 4 * SPDX-License-Identifier: Apache-2.0 17 * @brief The packet type(SOP*) consists of 2-bytes 22 * @brief The message header consists of 2-bytes 89 * Dead Battery functionality 98 #define UCPD_ANASUB_TO_RP(r) ((r - 1) & 0x3) 194 TX_MSG_NONE = -1, 268 /* STM32 UCPD dead battery support */ 325 /* Dead Battery active */
|
D | ucpd_stm32.c | 4 * SPDX-License-Identifier: Apache-2.0 65 * UCPDx_STROBE: UCPDx pull-down configuration strobe: 72 SYSCFG->CFGR1 |= SYSCFG_CFGR1_UCPD1_STROBE_Msk; in update_stm32g0x_cc_line() 74 SYSCFG->CFGR1 |= SYSCFG_CFGR1_UCPD2_STROBE_Msk; in update_stm32g0x_cc_line() 84 struct tcpc_data *data = dev->data; in ucpd_tx_data_byte() 85 const struct tcpc_config *const config = dev->config; in ucpd_tx_data_byte() 86 int index = data->ucpd_tx_active_buffer->msg_index++; in ucpd_tx_data_byte() 88 LL_UCPD_WriteData(config->ucpd_port, in ucpd_tx_data_byte() 89 data->ucpd_tx_active_buffer->data.msg[index]); in ucpd_tx_data_byte() 97 struct tcpc_data *data = dev->data; in ucpd_rx_data_byte() [all …]
|
/Zephyr-Core-3.6.0/boards/arm/weact_stm32g431_core/doc/ |
D | index.rst | 6 The WeAct STM32G431 Core Board is a low-cost bare-bones STM32G431-based development 10 Modifications USB-C Power Delivery 13 The board does not support USB-C PD in its standard configuration. To enable USB-C PD, CC1 14 and CC2 need to be disconnected from their pull-down resistors and be connected to PB6 and 15 PB4 respectively. Dead battery support requires PA9 and PA10 to be routed to CC1 and 18 The pull-downs are disconnected by removing the zero-Ohm resistors on SB8 and SB9 next to 19 the USB-C connector. SB3, SB5, SB6, and SB7 then need to be closed to connect the CCx 23 considered reserved for USB-C and not available for other applications. 27 PD signaling unless dead battery support has been enabled. A USB-C to USB-A adapter or 37 +------------+------------+-------------------------------------+ [all …]
|
/Zephyr-Core-3.6.0/doc/releases/ |
D | release-notes-2.7.rst | 17 * Support for M-Profile Vector Extensions (MVE) on ARMv8.1-M 18 * Improved thread safety for Newlib and C++ on SMP-capable systems 20 * New Action-based Power Management API 23 * Linker Support for Tightly-Coupled Memory in RISC-V 25 * Support for extended PCI / PCIe capabilities, improved MIS-X support 33 * The kernel now supports both 32- and 64-bit architectures 36 * We added support for Point-to-Point Protocol (PPP) 37 * We added support for UpdateHub, an end-to-end solution for over-the-air device updates 38 * We added support for ARM Cortex-R Architecture 40 * Expanded support for ARMv6-M architecture [all …]
|
D | release-notes-2.6.rst | 13 * Added support for 64-bit ARCv3 14 * Split ARM32 and ARM64, ARM64 is now a top-level architecture 15 * Added initial support for Arm v8.1-m and Cortex-M55 22 https://github.com/zephyrproject-rtos/example-application 34 * CVE-2021-3581: Under embargo until 2021-09-04 41 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 46 * Driver APIs now return ``-ENOSYS`` if optional functions are not implemented. 47 If the feature is not supported by the hardware ``-ENOTSUP`` will be returned. 48 Formerly ``-ENOTSUP`` was returned for both failure modes, meaning this change 194 * Added support for null pointer dereferencing detection in Cortex-M. [all …]
|
D | release-notes-3.4.rst | 20 * Added Power Delivery Source Support to the USB-C Stack. 22 * Cache API functions are now fully in-lined by compilers. 23 * Added an API for real-time clocks (RTC). 29 - Introduction of 3 new test harnesses into twister supporting pyTest, 31 - Transitioning to new Ztest API was completed and legacy Ztest was deprecated. 46 * CVE-2023-1901: Under embargo until 2023-07-04 48 * CVE-2023-1902: Under embargo until 2023-07-04 67 +--------------------------------------------------+ 69 +--------------------------------------------------+ 71 +--------------------------------------------------+ [all …]
|
D | release-notes-2.3.rst | 18 with future support for features like 64-bit and absolute timeouts in mind 21 * Zephyr now integrates with the TF-M (Trusted Firmware M) PSA-compliant 24 * The CMSIS-DSP library is now included and integrated 33 * CVE-2020-10022: UpdateHub Module Copies a Variable-Sized Hash String 34 into a fixed-size array. 35 * CVE-2020-10059: UpdateHub Module Explicitly Disables TLS 37 * CVE-2020-10061: Improper handling of the full-buffer case in the 39 * CVE-2020-10062: Packet length decoding error in MQTT 40 * CVE-2020-10063: Remote Denial of Service in CoAP Option Parsing Due 42 * CVE-2020-10068: In the Zephyr project Bluetooth subsystem, certain [all …]
|
D | release-notes-3.0.rst | 22 * CVE-2021-3835: `Zephyr project bug tracker GHSA-fm6v-8625-99jf 23 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fm6v-8625-99jf>`_ 25 * CVE-2021-3861: `Zephyr project bug tracker GHSA-hvfp-w4h8-gxvj 26 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hvfp-w4h8-gxvj>`_ 28 * CVE-2021-3966: `Zephyr project bug tracker GHSA-hfxq-3w6x-fv2m 29 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hfxq-3w6x-fv2m>`_ 36 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 53 * Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN() 58 CRC-16-ANSI checksum. A new function, :c:func:`crc16_reflect`, has been 69 * The following Kconfig options related to radio front-end modules (FEMs) were [all …]
|
D | release-notes-3.3.rst | 12 * Introduced :ref:`Fuel Gauge <fuel_gauge_api>` subsystem for battery level 14 * 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 66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding. 71 * Starting from this release ``zephyr-`` prefixed tags won't be created 82 image states). Use of a truncated hash or non-sha256 hash will still work 88 registration function at boot-up. If applications register this then 93 application code, these will now automatically be registered at boot-up (this [all …]
|
/Zephyr-Core-3.6.0/soc/riscv/ite_ec/it8xxx2/ |
D | soc.c | 4 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h> 64 return -ERANGE; in chip_get_pll_freq() 136 IT8XXX2_ECPM_PLLFREQR = pll->pll_freq; in chip_run_pll_sequence() 137 /* Pre-set FND clock frequency = PLL / 3 */ in chip_run_pll_sequence() 140 IT8XXX2_ECPM_SCDCR3 = (pll->div_jtag << 4) | pll->div_ec; in chip_run_pll_sequence() 146 IT8XXX2_ECPM_SCDCR0 = pll->div_fnd << 4; in chip_run_pll_sequence() 150 IT8XXX2_ECPM_SCDCR1 = pll->div_uart; in chip_run_pll_sequence() 152 IT8XXX2_ECPM_SCDCR2 = (pll->div_sspi << 4) | pll->div_smb; in chip_run_pll_sequence() 154 IT8XXX2_ECPM_SCDCR4 = (pll->div_usbpd << 4) | pll->div_pwm; in chip_run_pll_sequence() [all …]
|