/Zephyr-latest/drivers/ethernet/phy/ |
D | Kconfig | 1 # Ethernet PHY drivers configuration options 3 # Copyright (c) 2021 IP-Logix Inc. 4 # SPDX-License-Identifier: Apache-2.0 7 bool "Ethernet PHY drivers" 12 module = PHY 13 module-dep = LOG 14 module-str = Log level for Ethernet PHY driver 15 module-help = Sets log level for Ethernet PHY Device Drivers. 17 source "drivers/ethernet/phy/Kconfig.tja1103" 18 source "drivers/ethernet/phy/Kconfig.dm8806" [all …]
|
D | phy_mii.c | 2 * Copyright (c) 2021 IP-Logix Inc. 5 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/init.h> 14 #include <zephyr/drivers/mdio.h> 15 #include <zephyr/net/phy.h> 26 const struct device * const mdio; member 39 /* Offset to align capabilities bits of 1000BASE-T Control and Status regs */ 50 const struct phy_mii_dev_config *const cfg = dev->config; in phy_mii_reg_read() 52 /* if there is no mdio (fixed-link) it is not supported to read */ in phy_mii_reg_read() 53 if (cfg->mdio == NULL) { in phy_mii_reg_read() [all …]
|
D | phy_qualcomm_ar8031.c | 5 * Copyright (c) 2021 IP-Logix Inc. 8 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/init.h> 17 #include <zephyr/drivers/mdio.h> 18 #include <zephyr/net/phy.h> 19 #include <zephyr/net/mdio.h> 28 /* PHY Specific Status Register */ 39 /* The PHY Debug port address register */ 41 /* The PHY Debug port data register */ 77 const struct qc_ar8031_config *config = dev->config; in qc_ar8031_read() [all …]
|
/Zephyr-latest/drivers/mdio/ |
D | mdio_esp32.c | 4 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/drivers/mdio.h> 36 struct mdio_esp32_dev_data *const dev_data = dev->data; in mdio_transfer() 38 k_sem_take(&dev_data->sem, K_FOREVER); in mdio_transfer() 40 if (emac_ll_is_mii_busy(dev_data->hal.mac_regs)) { in mdio_transfer() 41 LOG_ERR("phy busy"); in mdio_transfer() 42 k_sem_give(&dev_data->sem); in mdio_transfer() 43 return -EBUSY; in mdio_transfer() 47 emac_ll_set_phy_data(dev_data->hal.mac_regs, data_in); in mdio_transfer() 49 emac_hal_set_phy_cmd(&dev_data->hal, prtad, regad, write); in mdio_transfer() [all …]
|
D | mdio_nxp_enet.c | 2 * Copyright 2023-2024 NXP 4 * SPDX-License-Identifier: Apache-2.0 11 #include <zephyr/net/mdio.h> 12 #include <zephyr/drivers/mdio.h> 36 * in order to wait for the completion of an MDIO transaction. 37 * It returns -ETIMEDOUT if timeout occurs as specified in DT, 39 * operation, otherwise -EIO. 43 struct nxp_enet_mdio_data *data = dev->data; in nxp_enet_mdio_wait_xfer() 47 return -EWOULDBLOCK; in nxp_enet_mdio_wait_xfer() 50 if (!data->interrupt_up) { in nxp_enet_mdio_wait_xfer() [all …]
|
D | mdio_gpio.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/init.h> 13 #include <zephyr/drivers/mdio.h> 34 gpio_pin_set_dt(&dev_cfg->mdc_gpio, 1); in mdio_gpio_clock_the_bit() 36 gpio_pin_set_dt(&dev_cfg->mdc_gpio, 0); in mdio_gpio_clock_the_bit() 41 gpio_pin_configure_dt(&dev_cfg->mdio_gpio, dir ? GPIO_OUTPUT_ACTIVE : GPIO_INPUT); in mdio_gpio_dir() 54 if (gpio_pin_get_dt(&dev_cfg->mdio_gpio) == 1) { in mdio_gpio_read() 68 v_data <<= 32 - v_len; in mdio_gpio_write() 69 for (; v_len > 0; v_len--) { in mdio_gpio_write() 70 gpio_pin_set_dt(&dev_cfg->mdio_gpio, (v_data & MDIO_GPIO_MSB) ? 1 : 0); in mdio_gpio_write() [all …]
|
D | mdio_litex_liteeth.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/init.h> 12 #include <zephyr/drivers/mdio.h> 44 if (litex_read8(dev_cfg->r_addr) & LITEX_MDIO_DI) { in mdio_litex_read() 47 litex_write8(LITEX_MDIO_CLK, dev_cfg->w_addr); in mdio_litex_read() 49 litex_write8(0, dev_cfg->w_addr); in mdio_litex_read() 65 v_data <<= 32 - v_len; in mdio_litex_write() 68 litex_write8(LITEX_MDIO_DO | LITEX_MDIO_OE, dev_cfg->w_addr); in mdio_litex_write() 71 dev_cfg->w_addr); in mdio_litex_write() 73 litex_write8(LITEX_MDIO_DO | LITEX_MDIO_OE, dev_cfg->w_addr); in mdio_litex_write() [all …]
|
/Zephyr-latest/dts/bindings/ethernet/ |
D | xlnx,gem.yaml | 3 # SPDX-License-Identifier: Apache-2.0 10 include: ethernet-controller.yaml 19 clock-frequency: 26 is determined by the current link speed reported by the PHY, to 27 which it will be adjusted at run-time. Therefore, the value of this 29 respective GEM's TX clock - by default, this is the IO PLL. 31 mdc-divider: 36 applied to the LPD_LSBUS clock in order to derive MDIO interface 37 clock driving communications with the attached PHY. Refer to the 42 init-mdio-phy: [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_gecko.c | 5 * SPDX-License-Identifier: Apache-2.0 12 * - no link monitoring through PHY interrupt 20 #include <zephyr/init.h> 54 eth->NETWORKCTRL &= ~(ETH_NETWORKCTRL_ENBTX | ETH_NETWORKCTRL_ENBRX); in link_configure() 57 val = eth->NETWORKCFG; in link_configure() 61 eth->NETWORKCFG = val; in link_configure() 64 eth->NETWORKCTRL |= (ETH_NETWORKCTRL_ENBTX | ETH_NETWORKCTRL_ENBRX); in link_configure() 69 const struct eth_gecko_dev_cfg *const cfg = dev->config; in eth_gecko_setup_mac() 70 ETH_TypeDef *eth = cfg->regs; in eth_gecko_setup_mac() 74 /* PHY auto-negotiate link parameters */ in eth_gecko_setup_mac() [all …]
|
D | eth_nxp_s32_netc_psi.c | 2 * Copyright 2022-2024 NXP 4 * SPDX-License-Identifier: Apache-2.0 20 #include <zephyr/net/phy.h> 64 const struct nxp_s32_eth_config *cfg = dev->config; in phy_link_state_changed() 65 const struct nxp_s32_eth_data *ctx = dev->data; in phy_link_state_changed() 69 if (state->is_up) { in phy_link_state_changed() 71 nxp_s32_eth_configure_port(cfg->port_idx, state->speed); in phy_link_state_changed() 72 net_eth_carrier_on(ctx->iface); in phy_link_state_changed() 75 net_eth_carrier_off(ctx->iface); in phy_link_state_changed() 81 const struct nxp_s32_eth_config *cfg = dev->config; in nxp_s32_eth_get_phy() [all …]
|
D | eth_smsc91x.c | 3 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/net/phy.h> 10 #include <zephyr/drivers/mdio.h> 18 #define SMSC_LOCK(sc) k_mutex_lock(&(sc)->lock, K_FOREVER) 19 #define SMSC_UNLOCK(sc) k_mutex_unlock(&(sc)->lock) 91 sys_write16(bank & BSR_BANK_MASK, sc->smsc_reg + BSR); in smsc_select_bank() 96 return FIELD_GET(BSR_BANK_MASK, sys_read16(sc->smsc_reg + BSR)); in smsc_current_bank() 102 while (sys_read16(sc->smsc_reg + MMUCR) & MMUCR_BUSY) { in smsc_mmu_wait() 109 return sys_read8(sc->smsc_reg + offset); in smsc_read_1() 114 return sys_read16(sc->smsc_reg + offset); in smsc_read_2() [all …]
|
D | eth_xlnx_gem.c | 5 * SPDX-License-Identifier: Apache-2.0 8 * - Only supports 32-bit addresses in buffer descriptors, therefore 9 * the ZynqMP APU (Cortex-A53 cores) may not be fully supported. 10 * - Hardware timestamps not considered. 11 * - VLAN tags not considered. 12 * - Wake-on-LAN interrupt not supported. 13 * - Send function is not SMP-capable (due to single TX done semaphore). 14 * - Interrupt-driven PHY management not supported - polling only. 15 * - No explicit placement of the DMA memory area(s) in either a 18 * with the Cortex-R5 QEMU target or an actual R5 running without the [all …]
|
D | eth_adin2111.c | 4 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/net/phy.h> 22 #include <zephyr/net/phy.h> 25 #include "phy/phy_adin2111_priv.h" 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 | eth_xmc4xxx.c | 5 * SPDX-License-Identifier: Apache-2.0 22 #include <zephyr/net/phy.h> 40 #define PHY_NODE DT_PHANDLE_BY_IDX(ETH_NODE, phy, 0) 49 #define IS_OWNED_BY_DMA_TX(desc) (((desc)->status & ETH_MAC_DMA_TDES0_OWN) != 0) 50 #define IS_OWNED_BY_DMA_RX(desc) (((desc)->status & ETH_MAC_DMA_RDES0_OWN) != 0) 52 #define IS_START_OF_FRAME_RX(desc) (((desc)->status & ETH_MAC_DMA_RDES0_FS) != 0) 53 #define IS_END_OF_FRAME_RX(desc) (((desc)->status & ETH_MAC_DMA_RDES0_LS) != 0) 55 #define IS_TIMESTAMP_AVAILABLE_RX(desc) (((desc)->status & ETH_MAC_DMA_RDES0_TSA) != 0) 56 #define IS_TIMESTAMP_AVAILABLE_TX(desc) (((desc)->status & ETH_MAC_DMA_TDES0_TTSS) != 0) 58 #define TOTAL_FRAME_LENGTH(desc) (FIELD_GET(ETH_MAC_DMA_RDES0_FL, (desc)->status) - 4) [all …]
|
D | eth_stm32_hal.c | 5 * SPDX-License-Identifier: Apache-2.0 26 #include <zephyr/net/phy.h> 62 DEVICE_DT_GET(DT_CHILD(DT_INST_CHILD(n, mdio), _CONCAT(ethernet_phy_, PHY_ADDR))) 73 #define IS_ETH_DMATXDESC_OWN(dma_tx_desc) (dma_tx_desc->DESC3 & \ 86 #define IS_ETH_DMATXDESC_OWN(dma_tx_desc) (dma_tx_desc->Status & \ 161 size_t index = (RxBufferPtr)buff - &dma_rx_buffer[0]; in HAL_ETH_RxLinkCallback() 166 header->size = Length; in HAL_ETH_RxLinkCallback() 175 ((struct eth_stm32_rx_buffer_header *)*pEnd)->next = header; in HAL_ETH_RxLinkCallback() 188 &dma_tx_buffer_header[ctx->first_tx_buffer_index]; in HAL_ETH_TxFreeCallback() 191 buffer_header->used = false; in HAL_ETH_TxFreeCallback() [all …]
|
/Zephyr-latest/boards/espressif/esp32_ethernet_kit/doc/ |
D | index.rst | 6 The ESP32-Ethernet-Kit is an Ethernet-to-Wi-Fi development board that enables 7 Ethernet devices to be interconnected over Wi-Fi. At the same time, to provide 8 more flexible power supply options, the ESP32-Ethernet-Kit also supports power 11 .. _get-started-esp32-ethernet-kit-v1.2-overview: 13 ESP32-Ethernet-Kit is an ESP32-WROVER-E based development. 14 For more information, check the datasheet at `ESP32-WROVER-E Datasheet`_. 17 board B. The `Ethernet Board (A)`_ contains Bluetooth/Wi-Fi dual-mode 18 ESP32-WROVER-E module and IP101GRI, a Single Port 10/100 Fast Ethernet 19 Transceiver (PHY). The `PoE Board (B)`_ provides power over Ethernet 23 .. _get-started-esp32-ethernet-kit-v1.2: [all …]
|
/Zephyr-latest/drivers/ethernet/nxp_enet/ |
D | eth_nxp_enet.c | 3 * Copyright 2023-2024 NXP 6 * Copyright (c) 2016-2017 ARM Ltd 11 * SPDX-License-Identifier: Apache-2.0 31 #include <zephyr/net/phy.h> 52 #include <zephyr/dt-bindings/ethernet/nxp_enet.h> 60 #define ETH_NXP_ENET_UNIQUE_ID (OCOTP->CFG1 ^ OCOTP->CFG2) 62 #define ETH_NXP_ENET_UNIQUE_ID (OCOTP->FUSEN[40].FUSE) 64 #define ETH_NXP_ENET_UNIQUE_ID (SIM->UIDH ^ SIM->UIDMH ^ SIM->UIDML ^ SIM->UIDL) 66 #define ETH_NXP_ENET_UNIQUE_ID (OCOTP->OTP_SHADOW[46]) 91 const struct device *mdio; member [all …]
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-3.5.rst | 21 taking a ``void *mem`` pointer instead of a ``void **mem`` double-pointer. 37 * The default C library used on most targets has changed from the built-in 47 increase by 8-16 bytes. 68 * Picolibc removes the ``-ffreestanding`` compiler option. This allows 71 the Zephyr required type -- ``int main(void)``. 100 * ``psa-arch-tests`` 102 * ``tf-m-tests`` 103 * ``tflite-micro`` 107 To enable them again use the ``west config manifest.project-filter -- +<module 108 name>`` command, or ``west config manifest.group-filter -- +optional`` to [all …]
|
D | release-notes-4.0.rst | 15 is now the standard way to provide device-specific protection to data at rest. (:github:`76222`) 18 :ref:`ZMS <zms_api>` is a new key-value storage subsystem compatible with all non-volatile storage 25 runtime configuration through vendor specific APIs. Initially the :dtcompatible:`nordic,nrf-comp`, 26 :dtcompatible:`nordic,nrf-lpcomp` and :dtcompatible:`nxp,kinetis-acmp` are supported. 31 Initially implemented drivers include a simple :dtcompatible:`zephyr,gpio-steppers` and a complex 32 sensor-less stall-detection capable with integrated ramp-controller :dtcompatible:`adi,tmc5041`. 50 directory for :zephyr:code-sample-category:`code samples <samples>`. 70 * :cve:`2024-8798`: Under embargo until 2024-11-22 71 * :cve:`2024-10395`: Under embargo until 2025-01-23 72 * :cve:`2024-11263` `Zephyr project bug tracker GHSA-jjf3-7x72-pqm9 [all …]
|
D | release-notes-3.5.rst | 38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3 39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_ 41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j 42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_ 44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7 45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_ 47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4 48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_ 50 * CVE-2023-4260 `Zephyr project bug tracker GHSA-gj27-862r-55wh 51 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gj27-862r-55wh>`_ [all …]
|
D | release-notes-3.6.rst | 12 * New :ref:`GNSS subsystem <gnss_api>` added, enabling geo-awareness in Zephyr applications. 13 * New API and drivers introduced for interfacing with :ref:`keyboard matrices <gpio-kbd>`. 16 * Integrated Trusted Firmware-M (TF-M) 2.0, including an update to Mbed TLS 3.5.2. 23 * Over 30 new supported boards, spanning all Zephyr-supported architectures. 37 * CVE-2023-5779 `Zephyr project bug tracker GHSA-7cmj-963q-jj47 38 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-7cmj-963q-jj47>`_ 40 * CVE-2023-6249 `Zephyr project bug tracker GHSA-32f5-3p9h-2rqc 41 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-32f5-3p9h-2rqc>`_ 43 * CVE-2023-6749 `Zephyr project bug tracker GHSA-757h-rw37-66hw 44 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-757h-rw37-66hw>`_ [all …]
|
D | release-notes-3.7.rst | 10 This release is the last non-maintenance 3.x release and, as such, will be the next 18 * A long-awaited :ref:`HTTP Server <http_server_interface>` library, and associated service API, 21 * :ref:`POSIX support <posix_support>` has been extended, with most Options of the IEEE 1003-2017 25 * Bluetooth Host has been extended with support for the Nordic UART Service (NUS), Hands-free Audio 29 :ref:`read-then-decode approach <sensor-read-and-decode>` that enables more types of sensors and 35 * Trusted Firmware-M (TF-M) 2.1.0 and Mbed TLS 3.6.0 have been integrated into Zephyr. 39 1588) allows to synchronize time across devices with sub-microsecond accuracy. 52 * 1-Wire 71 :ref:`pinctrl-guide` for more details. 88 * CVE-2024-3077 `Zephyr project bug tracker GHSA-gmfv-4vfh-2mh8 [all …]
|
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 29 * Added both Ethernet MDIO and Ethernet generic PHY drivers 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 [all …]
|
D | release-notes-3.3.rst | 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 129 This may cause out-of-tree scripts or commands to fail if they have relied [all …]
|
/Zephyr-latest/ |
D | MAINTAINERS.yml | 45 # files-regex: 56 # files-exclude: 59 # files-regex-exclude: 60 # Like 'files-regex', but any matching files will be excluded from the 63 # description: >- 64 # Plain-English description. Describe what the system is about, from an 68 # All areas must have a 'files' and/or 'files-regex' key. The other keys are 72 # this would be sub-areas which add extra fields (for ex. more `collaborators` 73 # who work only in that sub-area) to other areas. 98 # Collaborators: <list of sub-maintainers> [all …]
|