/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-stm32.c | 135 ret = dwmac->ops->clk_prepare(dwmac, true); in stm32_dwmac_init() 186 (dwmac->eth_clk_sel_reg || dwmac->ext_phyclk)) { in stm32mp1_set_mode() 195 (dwmac->eth_ref_clk_sel_reg || dwmac->ext_phyclk)) { in stm32mp1_set_mode() 207 (dwmac->eth_clk_sel_reg || dwmac->ext_phyclk)) { in stm32mp1_set_mode() 261 dwmac->ops->clk_prepare(dwmac, false); in stm32_dwmac_clk_disable() 284 err = dwmac->ops->parse_data(dwmac, dev); in stm32_dwmac_parse_data() 346 if (!dwmac->clk_eth_ck && dwmac->irq_pwr_wakeup >= 0) { in stm32mp1_parse_data() 379 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in stm32_dwmac_probe() 380 if (!dwmac) { in stm32_dwmac_probe() 478 ret = dwmac->ops->suspend(dwmac); in stm32_dwmac_suspend() [all …]
|
H A D | dwmac-meson8b.c | 324 dev_err(dwmac->dev, in meson8b_init_rgmii_delays() 333 dev_err(dwmac->dev, in meson8b_init_rgmii_delays() 366 dev_err(dwmac->dev, in meson8b_init_prg_eth() 374 dev_err(dwmac->dev, in meson8b_init_prg_eth() 407 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in meson8b_dwmac_probe() 408 if (!dwmac) { in meson8b_dwmac_probe() 415 if (!dwmac->data) { in meson8b_dwmac_probe() 448 if (dwmac->rx_delay_ps > 3000 || dwmac->rx_delay_ps % 200) { in meson8b_dwmac_probe() 455 if (dwmac->rx_delay_ps != 0 && dwmac->rx_delay_ps != 2000) { in meson8b_dwmac_probe() 463 dwmac->timing_adj_clk = devm_clk_get_optional(dwmac->dev, in meson8b_dwmac_probe() [all …]
|
H A D | dwmac-imx.c | 95 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx8mp_set_intf_mode() 133 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_set_intf_mode() 230 if (regmap_read(dwmac->intf_regmap, dwmac->intf_reg_off, &iface)) in imx93_dwmac_fix_speed() 239 regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_dwmac_fix_speed() 248 regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_dwmac_fix_speed() 287 dwmac->clk_mem = NULL; in imx_dwmac_parse_dt() 330 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in imx_dwmac_probe() 331 if (!dwmac) in imx_dwmac_probe() 345 dwmac->ops = data; in imx_dwmac_probe() 346 dwmac->dev = &pdev->dev; in imx_dwmac_probe() [all …]
|
H A D | dwmac-sti.c | 142 u32 reg = dwmac->ctrl_reg; in stih4xx_fix_retime_src() 148 if (dwmac->ext_phyclk) { in stih4xx_fix_retime_src() 182 if (dwmac->gmac_en) in sti_dwmac_set_mode() 190 dwmac->fix_retime_src(dwmac, dwmac->speed, 0); in sti_dwmac_set_mode() 226 dwmac->regmap = regmap; in sti_dwmac_parse_data() 230 dwmac->speed = SPEED_100; in sti_dwmac_parse_data() 250 if (IS_ERR(dwmac->clk)) { in sti_dwmac_parse_data() 252 dwmac->clk = NULL; in sti_dwmac_parse_data() 263 struct sti_dwmac *dwmac; in sti_dwmac_probe() local 280 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in sti_dwmac_probe() [all …]
|
H A D | dwmac-visconti.c | 59 struct visconti_eth *dwmac = priv; in visconti_eth_fix_mac_speed() local 105 switch (dwmac->phy_intf_sel) { in visconti_eth_fix_mac_speed() 165 reg_val = dwmac->phy_intf_sel; in visconti_eth_init_hw() 189 if (IS_ERR(dwmac->phy_ref_clk)) in visconti_eth_clock_probe() 216 struct visconti_eth *dwmac; in visconti_eth_dwmac_probe() local 227 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in visconti_eth_dwmac_probe() 228 if (!dwmac) { in visconti_eth_dwmac_probe() 233 spin_lock_init(&dwmac->lock); in visconti_eth_dwmac_probe() 234 dwmac->reg = stmmac_res.addr; in visconti_eth_dwmac_probe() 235 dwmac->dev = &pdev->dev; in visconti_eth_dwmac_probe() [all …]
|
H A D | dwmac-socfpga.c | 168 dwmac->splitter_base = in socfpga_dwmac_parse_data() 212 dwmac->tse_pcs_base = in socfpga_dwmac_parse_data() 224 dwmac->dev = dev; in socfpga_dwmac_parse_data() 289 if (dwmac->splitter_base) in socfpga_gen5_set_phy_mode() 311 if (dwmac->f2h_ptp_ref_clk) in socfpga_gen5_set_phy_mode() 345 if (dwmac->splitter_base) in socfpga_gen10_set_phy_mode() 407 dwmac = devm_kzalloc(dev, sizeof(*dwmac), GFP_KERNEL); in socfpga_dwmac_probe() 408 if (!dwmac) { in socfpga_dwmac_probe() 428 dwmac->ops = ops; in socfpga_dwmac_probe() 429 plat_dat->bsp_priv = dwmac; in socfpga_dwmac_probe() [all …]
|
H A D | dwmac-intel-plat.c | 33 struct intel_dwmac *dwmac = priv; in kmb_eth_fix_mac_speed() local 80 struct intel_dwmac *dwmac; in intel_eth_plat_probe() local 94 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in intel_eth_plat_probe() 95 if (!dwmac) { in intel_eth_plat_probe() 100 dwmac->dev = &pdev->dev; in intel_eth_plat_probe() 101 dwmac->tx_clk = NULL; in intel_eth_plat_probe() 107 if (dwmac->data->fix_mac_speed) in intel_eth_plat_probe() 111 if (dwmac->data->tx_clk_en) { in intel_eth_plat_probe() 113 if (IS_ERR(dwmac->tx_clk)) { in intel_eth_plat_probe() 114 ret = PTR_ERR(dwmac->tx_clk); in intel_eth_plat_probe() [all …]
|
H A D | Makefile | 16 obj-$(CONFIG_DWMAC_ANARION) += dwmac-anarion.o 21 obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o 23 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o 26 obj-$(CONFIG_DWMAC_STI) += dwmac-sti.o 27 obj-$(CONFIG_DWMAC_STM32) += dwmac-stm32.o 28 obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o 29 obj-$(CONFIG_DWMAC_SUN8I) += dwmac-sun8i.o 33 obj-$(CONFIG_DWMAC_IMX8) += dwmac-imx.o 34 obj-$(CONFIG_DWMAC_TEGRA) += dwmac-tegra.o 37 dwmac-altr-socfpga-objs := dwmac-socfpga.o [all …]
|
H A D | dwmac-starfive.c | 36 struct starfive_dwmac *dwmac = priv; in starfive_dwmac_fix_mac_speed() local 40 rate = clk_get_rate(dwmac->clk_tx); in starfive_dwmac_fix_mac_speed() 57 err = clk_set_rate(dwmac->clk_tx, rate); in starfive_dwmac_fix_mac_speed() 101 if (dwmac->data) { in starfive_dwmac_set_mode() 103 dwmac->data->gtxclk_dlychain); in starfive_dwmac_set_mode() 116 struct starfive_dwmac *dwmac; in starfive_dwmac_probe() local 130 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in starfive_dwmac_probe() 131 if (!dwmac) in starfive_dwmac_probe() 137 if (IS_ERR(dwmac->clk_tx)) in starfive_dwmac_probe() 155 dwmac->dev = &pdev->dev; in starfive_dwmac_probe() [all …]
|
H A D | dwmac-meson.c | 27 struct meson_dwmac *dwmac = priv; in meson6_dwmac_fix_mac_speed() local 30 val = readl(dwmac->reg); in meson6_dwmac_fix_mac_speed() 41 writel(val, dwmac->reg); in meson6_dwmac_fix_mac_speed() 48 struct meson_dwmac *dwmac; in meson6_dwmac_probe() local 59 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in meson6_dwmac_probe() 60 if (!dwmac) { in meson6_dwmac_probe() 65 dwmac->reg = devm_platform_ioremap_resource(pdev, 1); in meson6_dwmac_probe() 66 if (IS_ERR(dwmac->reg)) { in meson6_dwmac_probe() 67 ret = PTR_ERR(dwmac->reg); in meson6_dwmac_probe() 71 plat_dat->bsp_priv = dwmac; in meson6_dwmac_probe()
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | amlogic,meson-dwmac.yaml | 20 - amlogic,meson6-dwmac 21 - amlogic,meson8b-dwmac 22 - amlogic,meson8m2-dwmac 23 - amlogic,meson-gxbb-dwmac 24 - amlogic,meson-axg-dwmac 25 - amlogic,meson-g12a-dwmac 30 - $ref: snps,dwmac.yaml# 136 - amlogic,meson6-dwmac 144 - snps,dwmac-3.70a 145 - snps,dwmac [all …]
|
H A D | stm32-dwmac.yaml | 23 - st,stm32-dwmac 24 - st,stm32mp1-dwmac 29 - $ref: snps,dwmac.yaml# 36 - st,stm32mp1-dwmac 37 - const: snps,dwmac-4.20a 40 - st,stm32-dwmac 41 - const: snps,dwmac-4.10a 44 - st,stm32-dwmac 112 compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a"; 137 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a"; [all …]
|
H A D | nxp,dwmac-imx.yaml | 4 $id: http://devicetree.org/schemas/net/nxp,dwmac-imx.yaml# 14 # We need a select here so we don't match all nodes with 'snps,dwmac' 20 - nxp,imx8mp-dwmac-eqos 21 - nxp,imx8dxl-dwmac-eqos 22 - nxp,imx93-dwmac-eqos 27 - $ref: snps,dwmac.yaml# 34 - nxp,imx8mp-dwmac-eqos 35 - nxp,imx8dxl-dwmac-eqos 36 - nxp,imx93-dwmac-eqos 37 - const: snps,dwmac-5.10a [all …]
|
H A D | toshiba,visconti-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/toshiba,visconti-dwmac.yaml# 17 - toshiba,visconti-dwmac 22 - $ref: snps,dwmac.yaml# 29 - toshiba,visconti-dwmac 30 - const: snps,dwmac-4.20a 63 compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a"; 78 compatible = "snps,dwmac-mdio";
|
H A D | snps,dwmac.yaml | 23 - snps,dwmac 24 - snps,dwmac-3.40a 25 - snps,dwmac-3.50a 26 - snps,dwmac-3.610 27 - snps,dwmac-3.70a 28 - snps,dwmac-3.710 29 - snps,dwmac-4.00 33 - snps,dwmac-5.20 85 - snps,dwmac 91 - snps,dwmac-4.00 [all …]
|
H A D | intel,dwmac-plat.yaml | 4 $id: http://devicetree.org/schemas/net/intel,dwmac-plat.yaml# 17 - intel,keembay-dwmac 22 - $ref: snps,dwmac.yaml# 29 - intel,keembay-dwmac 30 - const: snps,dwmac-4.10a 101 compatible = "intel,keembay-dwmac", "snps,dwmac-4.10a"; 123 compatible = "snps,dwmac-mdio";
|
H A D | starfive,jh7110-dwmac.yaml | 5 $id: http://devicetree.org/schemas/net/starfive,jh7110-dwmac.yaml# 19 - starfive,jh7110-dwmac 27 - starfive,jh7110-dwmac 28 - const: snps,dwmac-5.20 95 - $ref: snps,dwmac.yaml# 102 compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; 131 compatible = "snps,dwmac-mdio";
|
H A D | nxp,lpc1850-dwmac.txt | 7 - compatible: Should contain "nxp,lpc1850-dwmac" 12 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
|
H A D | sti-dwmac.txt | 10 - compatible : "st,stih407-dwmac" 34 ethernet0: dwmac@9630000 { 36 compatible = "st,stih407-dwmac", "snps,dwmac", "snps,dwmac-3.710";
|
H A D | socfpga-dwmac.txt | 3 This is a variant of the dwmac/stmmac driver an inherits all descriptions 12 Along with "snps,dwmac" and any applicable more detailed 47 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
|
H A D | mediatek-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/mediatek-dwmac.yaml# 15 # We need a select here so we don't match all nodes with 'snps,dwmac' 28 - $ref: snps,dwmac.yaml# 36 - const: snps,dwmac-4.20a 40 - const: snps,dwmac-5.10a 45 - const: snps,dwmac-5.10a 155 compatible = "mediatek,mt2712-gmac", "snps,dwmac-4.20a";
|
H A D | anarion-gmac.txt | 7 - compatible: Should be "adaptrum,anarion-gmac", "snps,dwmac" 14 compatible = "adaptrum,anarion-gmac", "snps,dwmac";
|
H A D | rockchip-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml# 12 # We need a select here so we don't match all nodes with 'snps,dwmac' 35 - $ref: snps,dwmac.yaml# 57 - const: snps,dwmac-4.20a
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | qcom,sa8775p-dwmac-sgmii-phy.yaml | 4 $id: http://devicetree.org/schemas/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml# 18 const: qcom,sa8775p-dwmac-sgmii-phy 50 compatible = "qcom,sa8775p-dwmac-sgmii-phy";
|
/openbmc/linux/Documentation/devicetree/bindings/reset/ |
H A D | nxp,lpc1850-rgu.txt | 75 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
|