| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | motorcomm,yt8xxx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Sae <frank.sae@motor-comm.com> 13 - $ref: ethernet-phy.yaml# 18 - ethernet-phy-id4f51.e91a 19 - ethernet-phy-id4f51.e91b 21 rx-internal-delay-ps: 23 RGMII RX Clock Delay used only when PHY operates in RGMII mode with 24 internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds. [all …]
|
| D | starfive,jh7110-dwmac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/net/starfive,jh7110-dwmac.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Emil Renner Berthing <kernel@esmil.dk> 12 - Samin Guo <samin.guo@starfivetech.com> 19 - starfive,jh7110-dwmac 21 - compatible 26 - enum: 27 - starfive,jh7110-dwmac [all …]
|
| D | ti,dp83867.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - $ref: ethernet-controller.yaml# 14 - Andrew Davis <afd@ti.com> 18 transceiver with integrated PMD sublayers to support 10BASE-Te, 100BASE-TX 19 and 1000BASE-T Ethernet protocols. 25 Media Independent Interface (GMII) or Reduced GMII (RGMII). 34 nvmem-cells: 40 nvmem-cell-names: [all …]
|
| /kernel/linux/linux-6.6/arch/riscv/boot/dts/starfive/ |
| D | jh7110-starfive-visionfive-2-v1.3b.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 /dts-v1/; 8 #include "jh7110-starfive-visionfive-2.dtsi" 12 compatible = "starfive,visionfive-2-v1.3b", "starfive,jh7110"; 16 starfive,tx-use-rgmii-clk; 17 assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>; 18 assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; 22 starfive,tx-use-rgmii-clk; 23 assigned-clocks = <&syscrg JH7110_SYSCLK_GMAC1_TX>; 24 assigned-clock-parents = <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>; [all …]
|
| /kernel/linux/linux-6.6/drivers/clk/sunxi/ |
| D | clk-a20-gmac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright 2013 Chen-Yu Tsai 7 * Chen-Yu Tsai <wens@csie.org> 10 #include <linux/clk-provider.h> 19 * sun7i_a20_gmac_clk_setup - Setup function for A20/A31 GMAC clock module 23 * MII TX clock from PHY >-----|___________ _________|----> to GMAC core 24 * GMAC Int. RGMII TX clk >----|___________\__/__gate---|----> to PHY 25 * Ext. 125MHz RGMII TX clk >--|__divider__/ | 28 * The external 125 MHz reference is optional, i.e. GMAC can use its 29 * internal TX clock just fine. The A31 GMAC clock module does not have [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/sunxi/ |
| D | clk-a20-gmac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright 2013 Chen-Yu Tsai 7 * Chen-Yu Tsai <wens@csie.org> 10 #include <linux/clk-provider.h> 19 * sun7i_a20_gmac_clk_setup - Setup function for A20/A31 GMAC clock module 23 * MII TX clock from PHY >-----|___________ _________|----> to GMAC core 24 * GMAC Int. RGMII TX clk >----|___________\__/__gate---|----> to PHY 25 * Ext. 125MHz RGMII TX clk >--|__divider__/ | 28 * The external 125 MHz reference is optional, i.e. GMAC can use its 29 * internal TX clock just fine. The A31 GMAC clock module does not have [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
| D | dwmac-meson8b.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/clk.h> 10 #include <linux/clk-provider.h> 35 /* TX clock delay in ns = "8ns / 4 * tx_dly_val" (where 8ns are exactly one 36 * cycle of the 125MHz RGMII TX clock): 60 /* An internal counter based on the "timing-adjustment" clock. The counter is 83 struct clk *rgmii_tx_clk; 86 struct clk *timing_adj_clk; 101 data = readl(dwmac->regs + reg); in meson8b_dwmac_mask_bits() 105 writel(data, dwmac->regs + reg); in meson8b_dwmac_mask_bits() [all …]
|
| D | dwmac-sti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dwmac-sti.c - STMicroelectronics DWMAC Specific Glue layer 5 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited 18 #include <linux/clk.h> 44 * ------------------------------------------------ 47 * ------------------------------------------------ 49 *| | clk-125/txclk | txclk | 50 * ------------------------------------------------ 51 *| RGMII | 125Mhz | 25Mhz | 52 *| | clk-125/txclk | clkgen | [all …]
|
| D | dwmac-rk.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DOC: dwmac-rk.c - Rockchip RK3288 DWMAC specific glue layer 5 * Copyright (C) 2014 Chen-Zhi (Roger Chen) 7 * Chen-Zhi (Roger Chen) <roger.chen@rock-chips.com> 12 #include <linux/clk.h> 49 struct clk *clk_mac; 50 struct clk *gmac_clkin; 51 struct clk *mac_clk_rx; 52 struct clk *mac_clk_tx; 53 struct clk *clk_mac_ref; [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
| D | dwmac-meson8b.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/clk.h> 10 #include <linux/clk-provider.h> 35 /* TX clock delay in ns = "8ns / 4 * tx_dly_val" (where 8ns are exactly one 36 * cycle of the 125MHz RGMII TX clock): 60 /* An internal counter based on the "timing-adjustment" clock. The counter is 74 * Each step is 200ps. These bits are used with external RGMII PHYs 75 * because RGMII RX only has the small window. cfg_rxclk_dly can 94 struct clk *rgmii_tx_clk; 97 struct clk *timing_adj_clk; [all …]
|
| D | dwmac-starfive.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 struct clk *clk_tx; 40 rate = clk_get_rate(dwmac->clk_tx); in starfive_dwmac_fix_mac_speed() 53 dev_err(dwmac->dev, "invalid speed %u\n", speed); in starfive_dwmac_fix_mac_speed() 57 err = clk_set_rate(dwmac->clk_tx, rate); in starfive_dwmac_fix_mac_speed() 59 dev_err(dwmac->dev, "failed to set tx rate %lu\n", rate); in starfive_dwmac_fix_mac_speed() 64 struct starfive_dwmac *dwmac = plat_dat->bsp_priv; in starfive_dwmac_set_mode() 70 switch (plat_dat->mac_interface) { in starfive_dwmac_set_mode() 83 dev_err(dwmac->dev, "unsupported interface %d\n", in starfive_dwmac_set_mode() 84 plat_dat->mac_interface); in starfive_dwmac_set_mode() [all …]
|
| D | dwmac-sti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dwmac-sti.c - STMicroelectronics DWMAC Specific Glue layer 5 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited 18 #include <linux/clk.h> 43 * ------------------------------------------------ 46 * ------------------------------------------------ 48 *| | clk-125/txclk | txclk | 49 * ------------------------------------------------ 50 *| RGMII | 125Mhz | 25Mhz | 51 *| | clk-125/txclk | clkgen | [all …]
|
| D | dwmac-mediatek.c | 1 // SPDX-License-Identifier: GPL-2.0 79 struct clk *rmii_internal_clk; 114 int rmii_clk_from_mac = plat->rmii_clk_from_mac ? RMII_CLK_SRC_INTERNAL : 0; in mt2712_set_interface() 115 int rmii_rxc = plat->rmii_rxc ? RMII_CLK_SRC_RXC : 0; in mt2712_set_interface() 119 switch (plat->phy_mode) { in mt2712_set_interface() 133 dev_err(plat->dev, "phy interface not supported\n"); in mt2712_set_interface() 134 return -EINVAL; in mt2712_set_interface() 137 regmap_write(plat->peri_regmap, PERI_ETH_PHY_INTF_SEL, intf_val); in mt2712_set_interface() 144 struct mac_delay_struct *mac_delay = &plat->mac_delay; in mt2712_delay_ps2stage() 146 switch (plat->phy_mode) { in mt2712_delay_ps2stage() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | ti,dp83867.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - $ref: "ethernet-controller.yaml#" 14 - Dan Murphy <dmurphy@ti.com> 18 transceiver with integrated PMD sublayers to support 10BASE-Te, 100BASE-TX 19 and 1000BASE-T Ethernet protocols. 25 Media Independent Interface (GMII) or Reduced GMII (RGMII). 34 ti,min-output-impedance: 40 ti,max-output-impedance: [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/freescale/ |
| D | fsl-ls1028a-kontron-sl28-var1.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Device Tree file for the Kontron SMARC-sAL28 board. 7 * port is connected via RGMII. This port is not TSN aware. 9 * all led out to the carrier for customer use. 15 /dts-v1/; 16 #include "fsl-ls1028a-kontron-sl28.dts" 17 #include <dt-bindings/net/qca-ar803x.h> 20 model = "Kontron SMARC-sAL28 (4 Lanes)"; 21 compatible = "kontron,sl28-var1", "kontron,sl28", "fsl,ls1028a"; 26 /delete-node/ ethernet-phy@5; [all …]
|
| D | imx8mp-evk.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/phy/phy-imx8-pcie.h> 13 compatible = "fsl,imx8mp-evk", "fsl,imx8mp"; 16 stdout-path = &uart2; 19 hdmi-connector { 20 compatible = "hdmi-connector"; 26 remote-endpoint = <&adv7535_out>; 31 gpio-leds { 32 compatible = "gpio-leds"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/qcom/ |
| D | sa8155p-adp.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include <dt-bindings/gpio/gpio.h> 16 compatible = "qcom,sa8155p-adp", "qcom,sa8155p"; 24 stdout-path = "serial0:115200n8"; 27 vreg_3p3: vreg-3p3-regulator { 28 compatible = "regulator-fixed"; 29 regulator-name = "vreg_3p3"; 30 regulator-min-microvolt = <3300000>; [all …]
|
| /kernel/linux/linux-5.10/drivers/net/phy/ |
| D | dp83867.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <dt-bindings/net/ti-dp83867.h> 185 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol() 192 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 197 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 198 mac = (u8 *)ndev->dev_addr; in dp83867_set_wol() 201 return -EINVAL; in dp83867_set_wol() 215 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol() 217 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83867_set_wol() 219 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83867_set_wol() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/phy/ |
| D | dp83867.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/nvmem-consumer.h> 19 #include <dt-bindings/net/ti-dp83867.h> 194 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol() 201 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 206 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 207 mac = (const u8 *)ndev->dev_addr; in dp83867_set_wol() 210 return -EINVAL; in dp83867_set_wol() 224 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol() 226 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83867_set_wol() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
| D | sja1105_clocking.c | 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* Copyright (c) 2016-2018, NXP Semiconductors 3 * Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com> 99 sja1105_packing(buf, &idiv->clksrc, 28, 24, size, op); in sja1105_cgu_idiv_packing() 100 sja1105_packing(buf, &idiv->autoblock, 11, 11, size, op); in sja1105_cgu_idiv_packing() 101 sja1105_packing(buf, &idiv->idiv, 5, 2, size, op); in sja1105_cgu_idiv_packing() 102 sja1105_packing(buf, &idiv->pd, 0, 0, size, op); in sja1105_cgu_idiv_packing() 108 const struct sja1105_regs *regs = priv->info->regs; in sja1105_cgu_idiv_config() 109 struct device *dev = priv->ds->dev; in sja1105_cgu_idiv_config() 115 return -ERANGE; in sja1105_cgu_idiv_config() [all …]
|
| /kernel/linux/linux-6.6/Documentation/networking/device_drivers/ethernet/stmicro/ |
| D | stmmac.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 13 - In This Release 14 - Feature List 15 - Kernel Configuration 16 - Command Line Parameters 17 - Driver Information and Notes 18 - Debug Information 19 - Support 33 (and older) and DesignWare(R) Cores Ethernet Quality-of-Service version 4.0 35 DesignWare(R) Cores XGMAC - 10G Ethernet MAC and DesignWare(R) Cores [all …]
|
| /kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/stmicro/ |
| D | stmmac.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 13 - In This Release 14 - Feature List 15 - Kernel Configuration 16 - Command Line Parameters 17 - Driver Information and Notes 18 - Debug Information 19 - Support 33 (and older) and DesignWare(R) Cores Ethernet Quality-of-Service version 4.0 35 DesignWare(R) Cores XGMAC - 10G Ethernet MAC and DesignWare(R) Cores [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/genet/ |
| D | bcmmii.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014-2024 Broadcom 24 #include <linux/platform_data/mdio-bcm-unimac.h> 31 struct phy_device *phydev = dev->phydev; in bcmgenet_mac_config() 35 if (phydev->speed == SPEED_1000) in bcmgenet_mac_config() 37 else if (phydev->speed == SPEED_100) in bcmgenet_mac_config() 44 if (phydev->duplex != DUPLEX_FULL) { in bcmgenet_mac_config() 49 if (priv->autoneg_pause) { in bcmgenet_mac_config() 52 if (phydev->autoneg) in bcmgenet_mac_config() 62 if (!priv->rx_pause) in bcmgenet_mac_config() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/ |
| D | bcmmii.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014-2017 Broadcom 24 #include <linux/platform_data/mdio-bcm-unimac.h> 30 * update UMAC and RGMII block when link up 35 struct phy_device *phydev = dev->phydev; in bcmgenet_mii_setup() 39 if (priv->old_link != phydev->link) { in bcmgenet_mii_setup() 41 priv->old_link = phydev->link; in bcmgenet_mii_setup() 44 if (phydev->link) { in bcmgenet_mii_setup() 46 if (priv->old_speed != phydev->speed) { in bcmgenet_mii_setup() 48 priv->old_speed = phydev->speed; in bcmgenet_mii_setup() [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/allwinner/ |
| D | sun6i-a31.dtsi | 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 6 * This file is dual-licensed: you can use it either under the terms 26 * restriction, including without limitation the rights to use, 41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 45 #include <dt-bindings/interrupt-controller/arm-gic.h> 46 #include <dt-bindings/thermal/thermal.h> 48 #include <dt-bindings/clock/sun6i-a31-ccu.h> 49 #include <dt-bindings/clock/sun6i-rtc.h> 50 #include <dt-bindings/reset/sun6i-a31-ccu.h> 53 interrupt-parent = <&gic>; [all …]
|