Home
last modified time | relevance | path

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

12345678910>>...112

/kernel/linux/linux-5.10/drivers/net/
Dmdio.c3 * mdio.c: Generic support for MDIO-compatible transceivers
11 #include <linux/mdio.h>
14 MODULE_DESCRIPTION("Generic support for MDIO-compatible transceivers");
19 * mdio45_probe - probe for an MDIO (clause 45) device
20 * @mdio: MDIO interface
23 * This sets @prtad and @mmds in the MDIO interface if successful.
26 int mdio45_probe(struct mdio_if_info *mdio, int prtad) in mdio45_probe() argument
34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe()
40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe()
41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe()
[all …]
/kernel/linux/linux-6.6/drivers/net/
Dmdio.c3 * mdio.c: Generic support for MDIO-compatible transceivers
11 #include <linux/mdio.h>
14 MODULE_DESCRIPTION("Generic support for MDIO-compatible transceivers");
19 * mdio45_probe - probe for an MDIO (clause 45) device
20 * @mdio: MDIO interface
23 * This sets @prtad and @mmds in the MDIO interface if successful.
26 int mdio45_probe(struct mdio_if_info *mdio, int prtad) in mdio45_probe() argument
34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe()
40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe()
41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe()
[all …]
/kernel/linux/linux-6.6/drivers/net/mdio/
DKconfig3 # MDIO Layer Configuration
7 tristate "MDIO bus device drivers"
9 MDIO devices and driver infrastructure code.
27 FWNODE MDIO bus (Ethernet PHY) accessors
35 OpenFirmware MDIO bus (Ethernet PHY) accessors
42 ACPI MDIO bus (Ethernet PHY) accessors
50 tristate "Allwinner sun4i MDIO interface support"
53 This driver supports the MDIO interface found in the network
58 tristate "APM X-Gene SoC MDIO bus controller"
61 This module provides a driver for the MDIO busses found in the
[all …]
DMakefile2 # Makefile for Linux MDIO bus drivers
8 obj-$(CONFIG_MDIO_ASPEED) += mdio-aspeed.o
9 obj-$(CONFIG_MDIO_BCM_IPROC) += mdio-bcm-iproc.o
10 obj-$(CONFIG_MDIO_BCM_UNIMAC) += mdio-bcm-unimac.o
11 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
12 obj-$(CONFIG_MDIO_CAVIUM) += mdio-cavium.o
13 obj-$(CONFIG_MDIO_GPIO) += mdio-gpio.o
14 obj-$(CONFIG_MDIO_HISI_FEMAC) += mdio-hisi-femac.o
15 obj-$(CONFIG_MDIO_I2C) += mdio-i2c.o
16 obj-$(CONFIG_MDIO_IPQ4019) += mdio-ipq4019.o
[all …]
Dmdio-mvusb.c27 struct mii_bus *mdio; member
32 static int mvusb_mdio_read(struct mii_bus *mdio, int dev, int reg) in mvusb_mdio_read() argument
34 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_read()
52 static int mvusb_mdio_write(struct mii_bus *mdio, int dev, int reg, u16 val) in mvusb_mdio_write() argument
54 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_write()
69 struct mii_bus *mdio; in mvusb_mdio_probe() local
72 mdio = devm_mdiobus_alloc_size(dev, sizeof(*mvusb)); in mvusb_mdio_probe()
73 if (!mdio) in mvusb_mdio_probe()
76 mvusb = mdio->priv; in mvusb_mdio_probe()
77 mvusb->mdio = mdio; in mvusb_mdio_probe()
[all …]
/kernel/linux/linux-5.10/drivers/net/mdio/
DKconfig3 # MDIO Layer Configuration
7 tristate "MDIO bus device drivers"
9 MDIO devices and driver infrastructure code.
28 OpenFirmware MDIO bus (Ethernet PHY) accessors
36 tristate "Allwinner sun4i MDIO interface support"
39 This driver supports the MDIO interface found in the network
44 tristate "APM X-Gene SoC MDIO bus controller"
47 This module provides a driver for the MDIO busses found in the
51 tristate "ASPEED MDIO bus controller"
55 This module provides a driver for the independent MDIO bus
[all …]
DMakefile2 # Makefile for Linux MDIO bus drivers
6 obj-$(CONFIG_MDIO_ASPEED) += mdio-aspeed.o
7 obj-$(CONFIG_MDIO_BCM_IPROC) += mdio-bcm-iproc.o
8 obj-$(CONFIG_MDIO_BCM_UNIMAC) += mdio-bcm-unimac.o
9 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
10 obj-$(CONFIG_MDIO_CAVIUM) += mdio-cavium.o
11 obj-$(CONFIG_MDIO_GPIO) += mdio-gpio.o
12 obj-$(CONFIG_MDIO_HISI_FEMAC) += mdio-hisi-femac.o
13 obj-$(CONFIG_MDIO_I2C) += mdio-i2c.o
14 obj-$(CONFIG_MDIO_IPQ4019) += mdio-ipq4019.o
[all …]
Dmdio-mvusb.c27 struct mii_bus *mdio; member
32 static int mvusb_mdio_read(struct mii_bus *mdio, int dev, int reg) in mvusb_mdio_read() argument
34 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_read()
55 static int mvusb_mdio_write(struct mii_bus *mdio, int dev, int reg, u16 val) in mvusb_mdio_write() argument
57 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_write()
75 struct mii_bus *mdio; in mvusb_mdio_probe() local
78 mdio = devm_mdiobus_alloc_size(dev, sizeof(*mvusb)); in mvusb_mdio_probe()
79 if (!mdio) in mvusb_mdio_probe()
82 mvusb = mdio->priv; in mvusb_mdio_probe()
83 mvusb->mdio = mdio; in mvusb_mdio_probe()
[all …]
Dof_mdio.c3 * OF helpers for the MDIO (Ethernet PHY) API
63 int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, in of_mdiobus_phy_device_register() argument
74 mdio->irq[addr] = rc; in of_mdiobus_phy_device_register()
76 phy->irq = mdio->irq[addr]; in of_mdiobus_phy_device_register()
80 mdio->phy_ignore_ta_mask |= 1 << addr; in of_mdiobus_phy_device_register()
83 &phy->mdio.reset_assert_delay); in of_mdiobus_phy_device_register()
85 &phy->mdio.reset_deassert_delay); in of_mdiobus_phy_device_register()
90 phy->mdio.dev.of_node = child; in of_mdiobus_phy_device_register()
91 phy->mdio.dev.fwnode = of_fwnode_handle(child); in of_mdiobus_phy_device_register()
101 dev_dbg(&mdio->dev, "registered phy %pOFn at address %i\n", in of_mdiobus_phy_device_register()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/
Dbrcm,unimac-mdio.yaml4 $id: http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml#
7 title: Broadcom UniMAC MDIO bus controller
15 - $ref: mdio.yaml#
20 - brcm,genet-mdio-v1
21 - brcm,genet-mdio-v2
22 - brcm,genet-mdio-v3
23 - brcm,genet-mdio-v4
24 - brcm,genet-mdio-v5
25 - brcm,asp-v2.0-mdio
26 - brcm,asp-v2.1-mdio
[all …]
Dallwinner,sun8i-a83t-emac.yaml127 mdio-mux:
133 const: allwinner,sun8i-h3-mdio-mux
135 mdio-parent-bus:
138 Phandle to EMAC MDIO.
146 mdio@1:
147 $ref: mdio.yaml#
149 description: Internal MDIO Bus
153 const: allwinner,sun8i-h3-mdio-internal
176 mdio@2:
177 $ref: mdio.yaml#
[all …]
Dcavium-mdio.txt1 * System Management Interface (SMI) / MDIO
6 "cavium,octeon-3860-mdio": Compatibility with all cn3XXX, cn5XXX
9 "cavium,thunder-8890-mdio": Compatibility with all cn8XXX SOCs.
11 - reg: The base address of the MDIO bus controller register bank.
15 - #size-cells: Must be <0>. MDIO addresses have no size component.
17 Typically an MDIO bus might have several children.
20 mdio@1180000001800 {
21 compatible = "cavium,octeon-3860-mdio";
33 * System Management Interface (SMI) / MDIO Nexus
35 Several mdio buses may be gathered as children of a single PCI
[all …]
Dmdio-mux-multiplexer.yaml4 $id: http://devicetree.org/schemas/net/mdio-mux-multiplexer.yaml#
7 title: Properties for an MDIO bus multiplexer consumer device
13 This is a special case of MDIO mux when MDIO mux is defined as a consumer
19 - $ref: /schemas/net/mdio-mux.yaml#
23 const: mdio-mux-multiplexer
43 mdio-mux-1 { // Mux consumer
44 compatible = "mdio-mux-multiplexer";
46 mdio-parent-bus = <&emdio1>;
50 mdio@0 {
56 mdio@8 {
[all …]
Dqcom,ipq4019-mdio.yaml4 $id: http://devicetree.org/schemas/net/qcom,ipq4019-mdio.yaml#
7 title: Qualcomm IPQ40xx MDIO Controller
16 - qcom,ipq4019-mdio
17 - qcom,ipq5018-mdio
21 - qcom,ipq6018-mdio
22 - qcom,ipq8074-mdio
23 - const: qcom,ipq4019-mdio
35 the first Address and length of the register set for the MDIO controller.
41 - description: MDIO clock source frequency fixed to 100MHZ
54 - $ref: mdio.yaml#
[all …]
Dhisilicon-hns-mdio.txt1 Hisilicon MDIO bus controller
5 "hisilicon,hns-mdio"
6 "hisilicon,mdio"
7 "hisilicon,hns-mdio" is recommended to be used for hip05 and later SOCs,
8 while "hisilicon,mdio" is optional for backwards compatibility only on
10 - reg: The base address of the MDIO bus controller register bank.
12 - #size-cells: Must be <0>. MDIO addresses have no size component.
14 Typically an MDIO bus might have several children.
17 mdio@803c0000 {
20 compatible = "hisilicon,hns-mdio","hisilicon,mdio";
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dbrcm,unimac-mdio.txt1 * Broadcom UniMAC MDIO bus controller
4 - compatible: should one from "brcm,genet-mdio-v1", "brcm,genet-mdio-v2",
5 "brcm,genet-mdio-v3", "brcm,genet-mdio-v4", "brcm,genet-mdio-v5" or
6 "brcm,unimac-mdio"
9 larger than 16-bits MDIO transactions
10 - reg-names: name(s) of the register must be "mdio" and optional "mdio_indir_rw"
16 Ethernet switch this MDIO block is integrated from, or must be two, if there
17 are two separate interrupts, first one must be "mdio done" and second must be
18 for "mdio error"
22 - clocks: A reference to the clock supplying the MDIO bus controller
[all …]
Dmdio-mux-multiplexer.txt1 Properties for an MDIO bus multiplexer consumer device
3 This is a special case of MDIO mux when MDIO mux is defined as a consumer
7 Required properties in addition to the MDIO Bus multiplexer properties:
11 - mdio-parent-bus : phandle to the parent MDIO bus.
13 each child node of mdio bus multiplexer consumer device represent a mdio
18 and Documentation/devicetree/bindings/net/mdio-mux.txt
38 mdio-mux-1 { // Mux consumer
39 compatible = "mdio-mux-multiplexer";
41 mdio-parent-bus = <&emdio1>;
45 mdio@0 {
[all …]
Dallwinner,sun8i-a83t-emac.yaml121 mdio-mux:
126 const: allwinner,sun8i-h3-mdio-mux
128 mdio-parent-bus:
131 Phandle to EMAC MDIO.
133 mdio@1:
135 description: Internal MDIO Bus
145 const: allwinner,sun8i-h3-mdio-internal
168 mdio@2:
170 description: External MDIO Bus (H3 only)
184 - mdio-parent-bus
[all …]
Dcavium-mdio.txt1 * System Management Interface (SMI) / MDIO
6 "cavium,octeon-3860-mdio": Compatibility with all cn3XXX, cn5XXX
9 "cavium,thunder-8890-mdio": Compatibility with all cn8XXX SOCs.
11 - reg: The base address of the MDIO bus controller register bank.
15 - #size-cells: Must be <0>. MDIO addresses have no size component.
17 Typically an MDIO bus might have several children.
20 mdio@1180000001800 {
21 compatible = "cavium,octeon-3860-mdio";
33 * System Management Interface (SMI) / MDIO Nexus
35 Several mdio buses may be gathered as children of a single PCI
[all …]
Dmarvell-orion-mdio.txt1 * Marvell MDIO Ethernet Controller interface
5 identical unit that provides an interface with the MDIO bus.
11 - compatible: "marvell,orion-mdio" or "marvell,xmdio"
12 - reg: address and length of the MDIO registers. When an interrupt is
19 - clocks: phandle for up to four required clocks for the MDIO instance
21 The child nodes of the MDIO driver are the individual PHY devices
22 connected to this MDIO bus. They must have a "reg" property given the
23 PHY address on the MDIO bus.
27 mdio {
30 compatible = "marvell,orion-mdio";
[all …]
Dhisilicon-hns-mdio.txt1 Hisilicon MDIO bus controller
5 "hisilicon,hns-mdio"
6 "hisilicon,mdio"
7 "hisilicon,hns-mdio" is recommended to be used for hip05 and later SOCs,
8 while "hisilicon,mdio" is optional for backwards compatibility only on
10 - reg: The base address of the MDIO bus controller register bank.
12 - #size-cells: Must be <0>. MDIO addresses have no size component.
14 Typically an MDIO bus might have several children.
17 mdio@803c0000 {
20 compatible = "hisilicon,hns-mdio","hisilicon,mdio";
Dbrcm,mdio-mux-iproc.txt1 Properties for an MDIO bus multiplexer found in Broadcom iProc based SoCs.
3 This MDIO bus multiplexer defines buses that could be internal as well as
4 external to SoCs and could accept MDIO transaction compatible to C-22 or
6 properties as well to generate desired MDIO transaction on appropriate bus.
10 MDIO multiplexer node:
11 - compatible: brcm,mdio-mux-iproc.
17 - clocks: phandle of the core clock which drives the mdio block.
20 at- Documentation/devicetree/bindings/net/mdio-mux.txt
24 mdio_mux_iproc: mdio-mux@66020000 {
25 compatible = "brcm,mdio-mux-iproc";
[all …]
Dfsl-enetc.txt14 1. The ENETC external port is connected to a MDIO configurable phy
16 1.1. Using the local ENETC Port MDIO interface
18 In this case, the ENETC node should include a "mdio" sub-node
26 - phy-handle : Phandle to a PHY on the MDIO bus.
31 - mdio : "mdio" node, defined in mdio.txt.
43 mdio {
52 1.2. Using the central MDIO PCIe endpoint device
54 In this case, the mdio node should be defined as another PCIe
62 - compatible : Should be "fsl,enetc-mdio".
64 The remaining required mdio bus properties are standard, their bindings
[all …]
/kernel/linux/linux-6.6/drivers/net/pcs/
Dpcs-lynx.c3 * Lynx PCS MDIO helpers
6 #include <linux/mdio.h>
25 struct mdio_device *mdio; member
92 phylink_mii_c22_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state()
95 lynx_pcs_get_state_2500basex(lynx->mdio, state); in lynx_pcs_get_state()
98 lynx_pcs_get_state_usxgmii(lynx->mdio, state); in lynx_pcs_get_state()
101 phylink_mii_c45_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state()
107 dev_dbg(&lynx->mdio->dev, in lynx_pcs_get_state()
181 return lynx_pcs_config_giga(lynx->mdio, ifmode, advertising, in lynx_pcs_config()
185 dev_err(&lynx->mdio->dev, in lynx_pcs_config()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/dsa/
Drealtek.yaml18 MDIO or SPI.
21 bit-banged GPIO that while it reuses the MDIO lines MCK and MDIO does
22 not use the MDIO protocol. This binding defines how to specify the
26 The MDIO-connected switches use MDIO protocol to access their registers.
27 The realtek-mdio driver is an MDIO driver and it must be inserted inside
28 an MDIO node.
54 mdio-gpios:
55 description: GPIO line for the MDIO data line.
98 mdio:
99 $ref: /schemas/net/mdio.yaml#
[all …]

12345678910>>...112