/Zephyr-latest/dts/bindings/regulator/ |
D | adi,adp5360-regulator.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 The PMIC has one buck converter and one buck-boost converter. Both need to be 16 compatible = "adi,adp5360-regulator"; 27 compatible: "adi,adp5360-regulator" 31 child-binding: 33 - name: regulator.yaml 34 property-allowlist: 35 - regulator-always-on 36 - regulator-boot-on 37 - regulator-boot-off [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_common.c | 6 * SPDX-License-Identifier: Apache-2.0 24 const struct icm42688_dev_cfg *dev_cfg = dev->config; in icm42688_reset() 26 /* start up time for register read/write after POR is 1ms and supply ramp time is 3ms */ in icm42688_reset() 29 /* perform a soft reset to ensure a clean slate, reset bit will auto-clear */ in icm42688_reset() 30 res = icm42688_spi_single_write(&dev_cfg->spi, REG_DEVICE_CONFIG, BIT_SOFT_RESET); in icm42688_reset() 37 /* wait for soft reset to take effect */ in icm42688_reset() 41 res = icm42688_spi_read(&dev_cfg->spi, REG_INT_STATUS, &value, 1); in icm42688_reset() 49 return -EINVAL; in icm42688_reset() 52 res = icm42688_spi_read(&dev_cfg->spi, REG_WHO_AM_I, &value, 1); in icm42688_reset() 59 return -EINVAL; in icm42688_reset() [all …]
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_prl.c | 4 * SPDX-License-Identifier: Apache-2.0 122 struct usbc_port_data *data = dev->data; in prl_subsys_init() 123 struct protocol_layer_tx_t *prl_tx = data->prl_tx; in prl_subsys_init() 124 struct protocol_hard_reset_t *prl_hr = data->prl_hr; in prl_subsys_init() 127 prl_tx->dev = dev; in prl_subsys_init() 128 prl_hr->dev = dev; in prl_subsys_init() 143 struct usbc_port_data *data = dev->data; in prl_is_running() 145 return data->prl_sm_state == SM_RUN; in prl_is_running() 154 struct usbc_port_data *data = dev->data; in prl_execute_hard_reset() 155 struct protocol_hard_reset_t *prl_hr = data->prl_hr; in prl_execute_hard_reset() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bme280/ |
D | bme280.c | 1 /* bme280.c - Driver for Bosch BME280 temperature and pressure sensor */ 8 * SPDX-License-Identifier: Apache-2.0 32 * = 112.8 ms 43 const struct bme280_config *cfg = dev->config; in bme280_bus_check() 45 return cfg->bus_io->check(&cfg->bus); in bme280_bus_check() 49 uint8_t start, uint8_t *buf, int size) in bme280_reg_read() argument 51 const struct bme280_config *cfg = dev->config; in bme280_reg_read() 53 return cfg->bus_io->read(&cfg->bus, start, buf, size); in bme280_reg_read() 59 const struct bme280_config *cfg = dev->config; in bme280_reg_write() 61 return cfg->bus_io->write(&cfg->bus, reg, val); in bme280_reg_write() [all …]
|
/Zephyr-latest/drivers/led/ |
D | lp5562.c | 4 * SPDX-License-Identifier: Apache-2.0 13 * The LP5562 is a 4-channel LED driver that communicates over I2C. The four 23 * - Set the brightness. 24 * - Fade the brightness over time. 25 * - Loop parts of the program or the whole program. 26 * - Add delays. 27 * - Synchronize between the engines. 70 * 15.6ms per step if the prescaler is set to 1. We round the step length 71 * however to 16ms for easier handling, so the maximum blinking period is 72 * therefore (16 * 63) = 1008ms. We round it down to 1000ms to be on the safe [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | ieee802154_radio.h | 5 * SPDX-License-Identifier: Apache-2.0 12 * @note All references to the standard in this file cite IEEE 802.15.4-2020. 38 * @details This API provides a common representation of vendor-specific 44 * - a basic, mostly PHY-level driver API to be implemented by all drivers, 45 * - several optional MAC-level extension points to offload performance 51 * offloading to vendor-specific hardware or firmware features may be required 56 * Whether or not MAC-level offloading extension points need to be implemented 58 * provide a "soft" MAC fallback whenever possible. 60 * @note All section, table and figure references are to the IEEE 802.15.4-2020 67 * @name IEEE 802.15.4-2020, Section 6: MAC functional description [all …]
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_dw.c | 5 * SPDX-License-Identifier: Apache-2.0 59 /* Number of SETUP back-to-back packets */ 104 const struct pinctrl_dev_config *const pcfg = config->pcfg; in usb_dw_init_pinctrl() 189 "0x%x", base->gotgctl, base->gotgint, base->gahbcfg); in usb_dw_reg_dump() 191 base->gusbcfg, base->gintsts, base->gintmsk); in usb_dw_reg_dump() 193 base->dcfg, base->dctl, base->dsts); in usb_dw_reg_dump() 195 base->diepmsk, base->doepmsk, base->daint); in usb_dw_reg_dump() 197 base->daintmsk, base->ghwcfg1, base->ghwcfg2); in usb_dw_reg_dump() 199 base->ghwcfg3, base->ghwcfg4); in usb_dw_reg_dump() 203 "0x%x", i, base->in_ep[i].diepctl, in usb_dw_reg_dump() [all …]
|
D | usb_dc_stm32.c | 3 * Copyright (c) 2017, I-SENSE group of ICCS 5 * SPDX-License-Identifier: Apache-2.0 41 * pin(s) in the device tree. E.g: pinctrl-0 = <&usb_otg_fs_vbus_pa9 ...>; 133 /* We need a minimum size for RX FIFO - exact number seemingly determined through trial and error */ 139 #define TX_FIFO_WORDS (USB_RAM_SIZE / 4 - RX_FIFO_EP_WORDS - TX_FIFO_EP_0_WORDS) 141 #define TX_FIFO_EP_WORDS (TX_FIFO_WORDS / (TX_FIFO_NUM - 1)) 234 return -EIO; in usb_dc_stm32u5_phy_clock_select() 246 return -EINVAL; in usb_dc_stm32u5_phy_clock_select() 256 return -EIO; in usb_dc_stm32u5_phy_clock_enable() 262 return -EIO; in usb_dc_stm32u5_phy_clock_enable() [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_xec_qmspi_ldma.c | 4 * SPDX-License-Identifier: Apache-2.0 20 #include <zephyr/dt-bindings/clock/mchp_xec_pcr.h> 21 #include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h> 35 * data bytes will be left shifted by 1. Work-around for SPI Mode 3 is 43 /* spin loops waiting for HW to clear soft reset bit */ 68 #define XEC_QSPI_TIMEOUT_US (100 * 1000) /* 100 ms */ 123 return -ETIMEDOUT; in xec_qmspi_spin_yield() 133 * Some QMSPI timing register may be modified by the Boot-ROM OTP 144 taps[0] = regs->TM_TAPS; in qmspi_reset() 145 taps[1] = regs->TM_TAPS_ADJ; in qmspi_reset() [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_adin2111.c | 4 * SPDX-License-Identifier: Apache-2.0 40 /* Boot delay for clocks stabilisation (maximum 90ms) */ 55 /* As per RM rev. A table 3, t3 >= 50ms, delay for SPI interface to be ready */ 57 /* As per RM rev. A page 20: approximately 10 ms (maximum) for internal logic to be ready. */ 86 return -EBUSY; in eth_adin2111_mac_reset() 111 struct adin2111_data *ctx = dev->data; in eth_adin2111_get_iface() 113 return ((struct adin2111_port_data *)ctx->port[port_idx]->data)->iface; in eth_adin2111_get_iface() 118 struct adin2111_data *ctx = dev->data; in eth_adin2111_lock() 120 return k_mutex_lock(&ctx->lock, timeout); in eth_adin2111_lock() 125 struct adin2111_data *ctx = dev->data; in eth_adin2111_unlock() [all …]
|
D | dsa_ksz8xxx.c | 4 * SPDX-License-Identifier: Apache-2.0 45 #define PRV_DATA(ctx) ((struct ksz8xxx_data *const)(ctx)->prv_data) 66 spi_write_dt(&pdev->spi, &tx); in dsa_ksz8xxx_write_reg() 98 if (!spi_transceive_dt(&pdev->spi, &tx, &rx)) { in dsa_ksz8xxx_read_reg() 139 * Wait for SPI of KSZ8794 being fully operational - up to 10 ms in dsa_ksz8xxx_probe() 142 tmp != KSZ8XXX_CHIP_ID0_ID_DEFAULT && timeout > 0; timeout--) { in dsa_ksz8xxx_probe() 149 return -ENODEV; in dsa_ksz8xxx_probe() 163 return -ENODEV; in dsa_ksz8xxx_probe() 176 * According to KSZ8794 manual - write to static mac address table in dsa_ksz8xxx_write_static_mac_table() 234 * According to KSZ8794 manual - read from static mac address table in dsa_ksz8xxx_read_static_mac_table() [all …]
|
/Zephyr-latest/drivers/sdhc/ |
D | rcar_mmc.c | 4 * SPDX-License-Identifier: Apache-2.0 109 struct mmc_rcar_data *data = dev->data; in rcar_mmc_reset_and_mask_irqs() 124 k_sem_reset(&data->irq_xref_fin); in rcar_mmc_reset_and_mask_irqs() 138 * @retval -EINVAL: the dev pointer is NULL 145 return -EINVAL; in rcar_mmc_card_busy() 160 * @retval -ETIMEDOUT: timed out while tx/rx 161 * @retval -EIO: I/O error 162 * @retval -EILSEQ: communication out of sync 170 return -ETIMEDOUT; in rcar_mmc_check_errors() 175 return -EILSEQ; in rcar_mmc_check_errors() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_lmp90xxx.c | 4 * SPDX-License-Identifier: Apache-2.0 106 #define LMP90XXX_HAS_DRDYB(config) (config->drdyb.port != NULL) 172 const struct lmp90xxx_config *config = dev->config; in lmp90xxx_read_reg() 173 struct lmp90xxx_data *data = dev->data; in lmp90xxx_read_reg() 187 return -EINVAL; in lmp90xxx_read_reg() 192 return -EWOULDBLOCK; in lmp90xxx_read_reg() 195 k_mutex_lock(&data->ura_lock, K_FOREVER); in lmp90xxx_read_reg() 197 if (ura != data->ura) { in lmp90xxx_read_reg() 225 err = spi_transceive_dt(&config->bus, &tx, &rx); in lmp90xxx_read_reg() 227 data->ura = ura; in lmp90xxx_read_reg() [all …]
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_dwc2.c | 4 * SPDX-License-Identifier: Apache-2.0 44 /* Minimum RX FIFO size in 32-bit words considering the largest used OUT packet 49 /* Default Rx FIFO size in 32-bit words calculated to support High-Speed with: 57 /* TX FIFO0 depth in 32-bit words (used by control IN endpoint) 105 /* Transfer triggers (IN on bits 0-15, OUT on bits 16-31) */ 107 /* Finished transactions (IN on bits 0-15, OUT on bits 16-31) */ 143 const struct udc_dwc2_config *const config = dev->config; in dwc2_init_pinctrl() 144 const struct pinctrl_dev_config *const pcfg = config->pcfg; in dwc2_init_pinctrl() 172 const struct udc_dwc2_config *const config = dev->config; in dwc2_get_base() 174 return config->base; in dwc2_get_base() [all …]
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.2.rst | 13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`). 15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`. 31 * CVE-2022-2993: Under embargo until 2022-11-03 33 * CVE-2022-2741: Under embargo until 2022-10-14 56 This definition can be used by third-party code to compile code conditional 58 Therefore, any third-party code integrated using the Zephyr build system will 91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates 129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig 156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and 157 :dtcompatible:`fixed-partitions`. [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 …]
|