Home
last modified time | relevance | path

Searched full:mdio (Results 1 – 25 of 199) sorted by relevance

12345678

/Zephyr-latest/drivers/mdio/
DKconfig1 # MDIO configuration options
7 # MDIO options
9 menuconfig MDIO config
10 bool "Management Data Input/Output (MDIO) drivers"
12 Enable MDIO Driver Configuration
14 if MDIO
17 bool "MDIO Shell"
20 Enable MDIO Shell.
22 The MDIO shell currently supports scanning and device
27 source "drivers/mdio/Kconfig.esp32"
[all …]
Dmdio_nxp_enet_qos.c9 #include <zephyr/net/mdio.h>
10 #include <zephyr/drivers/mdio.h>
47 static int do_transaction(struct mdio_transaction *mdio) in do_transaction() argument
49 enet_qos_t *base = mdio->base; in do_transaction()
53 k_mutex_lock(mdio->mdio_bus_mutex, K_FOREVER); in do_transaction()
55 if (mdio->op == MDIO_OP_C22_WRITE) { in do_transaction()
58 ENET_QOS_REG_PREP(MAC_MDIO_DATA, GD, mdio->write_data); in do_transaction()
60 } else if (mdio->op == MDIO_OP_C22_READ) { in do_transaction()
72 ENET_QOS_REG_PREP(MAC_MDIO_ADDRESS, PA, mdio->portaddr) | in do_transaction()
74 ENET_QOS_REG_PREP(MAC_MDIO_ADDRESS, RDA, mdio->regaddr); in do_transaction()
[all …]
DKconfig.nxp_enet5 bool "NXP ENET MDIO Driver"
10 Enable NXP ENET MDIO Driver. This Kconfig can be disabled manually
11 if all ethernet PHYs being used with ENET are not managed by MDIO bus.
16 int "NXP ENET MDIO Timeout time"
19 Time in microseconds before an MDIO transaction that has not
DKconfig.nxp_enet_qos5 bool "NXP ENET QoS MDIO driver"
9 Enable NXP ENET QOS (Quality of Service) MDIO driver.
14 int "Number of times to recheck MDIO transaction status"
18 of an MDIO bus transaction before timing out
27 busy wait between checks of the MDIO transaction status.
Dmdio_shell.c10 #include <zephyr/drivers/mdio.h>
47 #error "No known devicetree compatible match for MDIO shell"
53 * Scan the entire 5-bit address space of the MDIO bus
66 shell_error(sh, "MDIO: Device driver %s is not ready.", dev->name); in cmd_mdio_scan()
89 shell_print(sh, "Found MDIO device @ 0x%x", i); in cmd_mdio_scan()
100 /* mdio write <port_addr> <reg_addr> <data> */
110 shell_error(sh, "MDIO: Device driver %s is not ready.", dev->name); in cmd_mdio_write()
133 /* mdio read <port_addr> <reg_addr> */
143 shell_error(sh, "MDIO: Device driver %s is not ready.", dev->name); in cmd_mdio_read()
167 /* mdio write_c45 <port_addr> <dev_addr> <reg_addr> <value> */
[all …]
Dmdio_nxp_enet.c11 #include <zephyr/net/mdio.h>
12 #include <zephyr/drivers/mdio.h>
36 * in order to wait for the completion of an MDIO transaction.
56 /* Wait for the MDIO transaction to finish or time out */ in nxp_enet_mdio_wait_xfer()
62 /* MDIO Read API implementation */
69 /* Only one MDIO bus operation attempt at a time */ in nxp_enet_mdio_read()
73 * Clear the bit (W1C) that indicates MDIO transfer is ready to in nxp_enet_mdio_read()
79 * Write MDIO frame to MII management register which will in nxp_enet_mdio_read()
80 * send the read command and data out to the MDIO bus as this frame: in nxp_enet_mdio_read()
106 /* This MDIO interaction is finished */ in nxp_enet_mdio_read()
[all …]
DKconfig.dwcxgmac5 bool "synopsys mdio driver"
9 Enable Synopsys dwc xgmac MDIO driver.
18 the software reset status during the MDIo initialization.
DKconfig.nxp_s32_gmac5 bool "NXP S32 GMAC MDIO driver"
12 Enable GMAC MDIO driver for NXP S32 SoCs.
20 Timeout (in milliseconds) for read/write operations over MDIO.
/Zephyr-latest/dts/bindings/mdio/
Dzephyr,mdio-gpio.yaml4 description: Zephyr MDIO bitbang driver
6 compatible: "zephyr,mdio-gpio"
8 include: mdio-controller.yaml
16 mdio-gpios:
19 description: GPIO pin for the MDIO
Dmdio-controller.yaml4 # Common fields for MDIO controllers
8 bus: mdio
23 MDIO frames with only 1 preamble bit. By default, the MDIO frame
30 Some MDIO controllers have the ability to configure the MDC frequency.
32 on what the PHYs connected to the mdio bus can support. Default of 2.5MHz
Dnxp,s32-gmac-mdio.yaml5 NXP S32 GMAC MDIO controller.
8 interface (MDC/MDIO), implemented as per IEEE 802.3 specification. SMA
9 supports both MDIO Clause 45 and Clause 22 frame structure.
11 compatible: "nxp,s32-gmac-mdio"
13 include: [mdio-controller.yaml, pinctrl-device.yaml]
Dsnps,dwcxgmac-mdio.yaml4 description: Synopsys DWC XGMAC MDIO SMA Driver node
6 compatible: "snps,dwcxgmac-mdio"
9 - name: mdio-controller.yaml
16 MDIO csr reference clock speed
27 MDIO clock generation based on CSR clock.
Dinfineon,xmc4xxx-mdio.yaml4 description: Infineon xmc4xxx Family MDIO Driver node
6 compatible: "infineon,xmc4xxx-mdio"
9 - name: mdio-controller.yaml
15 The MDIO input is connected to several port/pins via a mux.
Dnxp,enet-qos-mdio.yaml4 description: NXP ENET QOS MDIO Controller
6 compatible: "nxp,enet-qos-mdio"
8 include: [mdio-controller.yaml]
Dlitex,liteeth-mdio.yaml4 description: LiteX LiteEth MDIO bitbang driver
6 compatible: "litex,liteeth-mdio"
8 include: mdio-controller.yaml
Dadi,adin2111-mdio.yaml4 description: ADIN2111 MDIO Driver node
6 compatible: "adi,adin2111-mdio"
8 include: mdio-controller.yaml
Dnxp,enet-mdio.yaml4 description: NXP ENET MDIO Features
6 compatible: "nxp,enet-mdio"
8 include: [mdio-controller.yaml, pinctrl-device.yaml]
Dsmsc,lan91c111-mdio.yaml4 description: SMSC (now Microchip) LAN91C111 MDIO Driver node
6 compatible: "smsc,lan91c111-mdio"
9 - name: mdio-controller.yaml
Despressif,esp32-mdio.yaml4 description: ESP32 MDIO Driver node
6 compatible: "espressif,esp32-mdio"
9 - name: mdio-controller.yaml
Datmel,sam-mdio.yaml4 description: Atmel SAM Family MDIO Driver node
6 compatible: "atmel,sam-mdio"
9 - name: mdio-controller.yaml
Drenesas,ra-mdio.yaml4 description: Renesas RA External MDIO controller
6 compatible: "renesas,ra-mdio"
8 include: [mdio-controller.yaml, pinctrl-device.yaml]
/Zephyr-latest/include/zephyr/drivers/
Dmdio.h4 * @brief Public APIs for MDIO drivers.
17 * @brief MDIO Interface
18 * @defgroup mdio_interface MDIO Interface
37 /** Enable the MDIO bus device */
40 /** Disable the MDIO bus device */
43 /** Read data from MDIO bus */
47 /** Write data to MDIO bus */
51 /** Read data from MDIO bus using Clause 45 access */
55 /** Write data to MDIO bus using Clause 45 access */
64 * @brief Enable MDIO bus
[all …]
/Zephyr-latest/tests/drivers/build_all/mdio/
Dapp.overlay26 test_mdio0: mdio@11112222 {
27 compatible = "zephyr,mdio-gpio";
30 mdio-gpios = <&test_gpio 0 0>;
36 test_mdio1: mdio@33334444 {
37 compatible = "zephyr,mdio-gpio";
40 mdio-gpios = <&test_gpio 0 0>;
/Zephyr-latest/drivers/ethernet/phy/
DKconfig32 depends on MDIO
35 PHY using the MDIO bus.
48 depends on MDIO
57 depends on MDIO
66 depends on MDIO
76 depends on MDIO
Dphy_dm8806.c18 #include <zephyr/drivers/mdio.h>
24 const struct device *mdio; member
69 mdio_read(cfg->mdio, INT_STAT_PHY_ADDR, INT_STAT_REG_ADDR, &data); in phy_dm8806_thread_cb()
71 mdio_write(cfg->mdio, INT_STAT_PHY_ADDR, INT_STAT_REG_ADDR, data); in phy_dm8806_thread_cb()
128 res = mdio_read(cfg->mdio, INT_MASK_CTRL_PHY_ADDR, INT_MASK_CTRL_REG_ADDR, &data); in phy_dm8806_init_interrupt()
134 res = mdio_write(cfg->mdio, INT_MASK_CTRL_PHY_ADDR, INT_MASK_CTRL_REG_ADDR, data); in phy_dm8806_init_interrupt()
143 res = mdio_read(cfg->mdio, WOLL_CTRL_REG_PHY_ADDR, WOLL_CTRL_REG_REG_ADDR, &data); in phy_dm8806_init_interrupt()
149 res = mdio_write(cfg->mdio, WOLL_CTRL_REG_PHY_ADDR, WOLL_CTRL_REG_REG_ADDR, data); in phy_dm8806_init_interrupt()
210 ret = mdio_read(cfg->mdio, PHY_ADDRESS_18H, PORT5_MAC_CONTROL, &val); in phy_dm8806_init()
220 ret = mdio_write(cfg->mdio, PHY_ADDRESS_18H, PORT5_MAC_CONTROL, val); in phy_dm8806_init()
[all …]

12345678