Home
last modified time | relevance | path

Searched +full:dead +full:- +full:battery (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-latest/soc/st/stm32/stm32g0x/
Dsoc.c5 * 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,
83 /* Enable ART Accelerator I-cache and prefetch */ in soc_early_init_hook()
91 /* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */ in soc_early_init_hook()
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_ppc.h3 * 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_driver_api *api = (const struct usbc_ppc_driver_api *)dev->api; in ppc_is_dead_battery_mode()
83 if (api->is_dead_battery_mode == NULL) { in ppc_is_dead_battery_mode()
[all …]
/Zephyr-latest/dts/bindings/tcpc/
Dst,stm32-ucpd.yaml2 # 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 …]
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:
28 - "low-active"
29 - "high-active"
31 vconn-discharge-polarity:
36 - "low-active"
37 - "high-active"
[all …]
/Zephyr-latest/soc/st/stm32/stm32u5x/
Dsoc.c4 * SPDX-License-Identifier: Apache-2.0
32 /* Enable instruction cache in 1-way (direct mapped cache) */ in soc_early_init_hook()
43 /* For devices with USB C PD, we can disable the dead battery in soc_early_init_hook()
44 * pull-down behaviour. in soc_early_init_hook()
49 /* Disable USB Type-C dead battery pull-down behavior */ in soc_early_init_hook()
/Zephyr-latest/drivers/usb_c/ppc/
Dshell.c3 * 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 …]
Dusbc_ppc_numaker.c4 * SPDX-License-Identifier: Apache-2.0
38 * @brief Initializes the usb-c ppc driver
41 * @retval -ENODEV if dependent TCPC device is not ready
45 const struct numaker_ppc_config *const config = dev->config; in numaker_ppc_init()
46 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_init()
51 return -ENODEV; in numaker_ppc_init()
58 * @brief Check if PPC is in the dead battery mode
60 * @retval 1 if PPC is in the dead battery mode
61 * @retval 0 if PPC is not in the dead battery mode
62 * @retval -EIO if on failure
[all …]
Dnxp_nx20p3483_priv.h3 * 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 …]
Dnxp_nx20p3483.c3 * 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-latest/samples/subsys/usb_c/sink/boards/
Dweact_stm32g431_core.overlay4 * SPDX-License-Identifier: Apache-2.0
8 #include <dt-bindings/usb-c/pd.h>
29 dead-battery;
Dstm32g081b_eval.overlay4 * 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 …]
Db_g474e_dpow1.overlay4 * 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-latest/soc/st/stm32/stm32l5x/
Dsoc.c4 * SPDX-License-Identifier: Apache-2.0
47 /* Disable USB Type-C dead battery pull-down behavior */ in soc_early_init_hook()
/Zephyr-latest/soc/st/stm32/stm32h5x/
Dsoc.c4 * SPDX-License-Identifier: Apache-2.0
32 /* Enable instruction cache in 1-way (direct mapped cache) */ in soc_early_init_hook()
43 /* Disable USB Type-C dead battery pull-down behavior */ in soc_early_init_hook()
/Zephyr-latest/soc/st/stm32/stm32g4x/
Dsoc.c4 * SPDX-License-Identifier: Apache-2.0
32 /* Enable ART Accelerator I/D-cache and prefetch */ in soc_early_init_hook()
47 /* Disable USB Type-C dead battery pull-down behavior */ in soc_early_init_hook()
/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_stm32_priv.h4 * 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 */
Ducpd_numaker.c4 * SPDX-License-Identifier: Apache-2.0
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.
49 * (1) DPM-supplied callback
76 #define NUMAKER_SYS_REG_DUMP(dev, reg_name) LOG_INF("SYS: %8s: 0x%08x", #reg_name, SYS->reg_name);
82 LOG_INF("%s: %8s: 0x%08x", #port, #reg_name, port->reg_name);
98 utcpd_base->reg_name = (val); \
110 LOG_ERR("UTCPD register (%s) write timeout, force-write", #reg_name); \
112 utcpd_base->reg_name = (val); \
137 LOG_ERR("UTCPD register (0x%04x) write timeout, force-write", reg_offset); \
[all …]
Ducpd_stm32.c4 * 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-latest/boards/weact/stm32g431_core/doc/
Dindex.rst3 The WeAct STM32G431 Core Board is a low-cost bare-bones STM32G431-based development
7 Modifications USB-C Power Delivery
10 The board does not support USB-C PD in its standard configuration. To enable USB-C PD, CC1
11 and CC2 need to be disconnected from their pull-down resistors and be connected to PB6 and
12 PB4 respectively. Dead battery support requires PA9 and PA10 to be routed to CC1 and
15 The pull-downs are disconnected by removing the zero-Ohm resistors on SB8 and SB9 next to
16 the USB-C connector. SB3, SB5, SB6, and SB7 then need to be closed to connect the CCx
20 considered reserved for USB-C and not available for other applications.
24 PD signaling unless dead battery support has been enabled. A USB-C to USB-A adapter or
34 +------------+------------+-------------------------------------+
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-2.7.rst17 * 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 …]
Drelease-notes-2.6.rst13 * 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 …]
Drelease-notes-3.4.rst20 * 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 …]
Drelease-notes-2.3.rst18 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 …]
Drelease-notes-3.0.rst22 * 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 …]
/Zephyr-latest/soc/ite/ec/it8xxx2/
Dsoc.c4 * SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h>
34 /* PLL Frequency Auto-Calibration Control 0 Register */
44 /* PLL Frequency Auto-Calibration Control 2 Register */
79 return -ERANGE; in chip_get_pll_freq()
191 IT8XXX2_ECPM_PLLFREQR = pll->pll_freq; in chip_run_pll_sequence()
192 /* Pre-set FND clock frequency = PLL / 3 */ in chip_run_pll_sequence()
195 IT8XXX2_ECPM_SCDCR3 = (pll->div_jtag << 4) | pll->div_ec; in chip_run_pll_sequence()
201 IT8XXX2_ECPM_SCDCR0 = (pll->div_fnd << 4) | pll->div_mcu; in chip_run_pll_sequence()
205 IT8XXX2_ECPM_SCDCR1 = (pll->div_usb << 4) | pll->div_uart; in chip_run_pll_sequence()
[all …]

12