/Zephyr-latest/drivers/mdio/ |
D | Kconfig | 1 # 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 …]
|
D | mdio_nxp_enet_qos.c | 9 #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 …]
|
D | Kconfig.nxp_enet | 5 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
|
D | Kconfig.nxp_enet_qos | 5 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.
|
D | mdio_shell.c | 10 #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 …]
|
D | mdio_nxp_enet.c | 11 #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 …]
|
D | Kconfig.dwcxgmac | 5 bool "synopsys mdio driver" 9 Enable Synopsys dwc xgmac MDIO driver. 18 the software reset status during the MDIo initialization.
|
D | Kconfig.nxp_s32_gmac | 5 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/ |
D | zephyr,mdio-gpio.yaml | 4 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
|
D | mdio-controller.yaml | 4 # 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
|
D | nxp,s32-gmac-mdio.yaml | 5 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]
|
D | snps,dwcxgmac-mdio.yaml | 4 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.
|
D | infineon,xmc4xxx-mdio.yaml | 4 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.
|
D | nxp,enet-qos-mdio.yaml | 4 description: NXP ENET QOS MDIO Controller 6 compatible: "nxp,enet-qos-mdio" 8 include: [mdio-controller.yaml]
|
D | litex,liteeth-mdio.yaml | 4 description: LiteX LiteEth MDIO bitbang driver 6 compatible: "litex,liteeth-mdio" 8 include: mdio-controller.yaml
|
D | adi,adin2111-mdio.yaml | 4 description: ADIN2111 MDIO Driver node 6 compatible: "adi,adin2111-mdio" 8 include: mdio-controller.yaml
|
D | nxp,enet-mdio.yaml | 4 description: NXP ENET MDIO Features 6 compatible: "nxp,enet-mdio" 8 include: [mdio-controller.yaml, pinctrl-device.yaml]
|
D | smsc,lan91c111-mdio.yaml | 4 description: SMSC (now Microchip) LAN91C111 MDIO Driver node 6 compatible: "smsc,lan91c111-mdio" 9 - name: mdio-controller.yaml
|
D | espressif,esp32-mdio.yaml | 4 description: ESP32 MDIO Driver node 6 compatible: "espressif,esp32-mdio" 9 - name: mdio-controller.yaml
|
D | atmel,sam-mdio.yaml | 4 description: Atmel SAM Family MDIO Driver node 6 compatible: "atmel,sam-mdio" 9 - name: mdio-controller.yaml
|
D | renesas,ra-mdio.yaml | 4 description: Renesas RA External MDIO controller 6 compatible: "renesas,ra-mdio" 8 include: [mdio-controller.yaml, pinctrl-device.yaml]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | mdio.h | 4 * @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/ |
D | app.overlay | 26 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/ |
D | Kconfig | 32 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
|
D | phy_dm8806.c | 18 #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 …]
|