Home
last modified time | relevance | path

Searched refs:dwmac (Results 1 – 25 of 220) sorted by relevance

123456789

/linux-6.15/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-stm32.c179 dwmac->enable_eth_ck = dwmac->ext_phyclk; in stm32mp1_select_ethck_external()
182 dwmac->enable_eth_ck = dwmac->eth_clk_sel_reg || in stm32mp1_select_ethck_external()
186 dwmac->enable_eth_ck = dwmac->eth_ref_clk_sel_reg || in stm32mp1_select_ethck_external()
193 dwmac->enable_eth_ck = dwmac->eth_clk_sel_reg || in stm32mp1_select_ethck_external()
286 regmap_write(dwmac->regmap, dwmac->ops->syscfg_clr_off, in stm32mp1_configure_pmcr()
416 err = dwmac->ops->parse_data(dwmac, dev); in stm32_dwmac_parse_data()
489 if (!dwmac->clk_eth_ck && dwmac->irq_pwr_wakeup >= 0) { in stm32mp1_parse_data()
522 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in stm32_dwmac_probe()
523 if (!dwmac) in stm32_dwmac_probe()
602 ret = dwmac->ops->suspend(dwmac); in stm32_dwmac_suspend()
[all …]
H A Ddwmac-meson8b.c324 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()
413 if (!dwmac->data) in meson8b_dwmac_probe()
438 if (dwmac->rx_delay_ps > 3000 || dwmac->rx_delay_ps % 200) { in meson8b_dwmac_probe()
444 if (dwmac->rx_delay_ps != 0 && dwmac->rx_delay_ps != 2000) { in meson8b_dwmac_probe()
451 dwmac->timing_adj_clk = devm_clk_get_optional(dwmac->dev, in meson8b_dwmac_probe()
[all …]
H A Ddwmac-imx.c97 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx8mp_set_intf_mode()
143 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_set_intf_mode()
244 if (regmap_read(dwmac->intf_regmap, dwmac->intf_reg_off, &iface)) in imx93_dwmac_fix_speed()
253 regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_dwmac_fix_speed()
262 regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx93_dwmac_fix_speed()
301 dwmac->clk_mem = NULL; in imx_dwmac_parse_dt()
318 dwmac->intf_regmap = in imx_dwmac_parse_dt()
340 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in imx_dwmac_probe()
341 if (!dwmac) in imx_dwmac_probe()
354 dwmac->ops = data; in imx_dwmac_probe()
[all …]
H A Ddwmac-sti.c139 u32 reg = dwmac->ctrl_reg; in stih4xx_fix_retime_src()
145 if (dwmac->ext_phyclk) { in stih4xx_fix_retime_src()
174 if (dwmac->gmac_en) in sti_dwmac_set_mode()
182 dwmac->fix_retime_src(dwmac, dwmac->speed, 0); in sti_dwmac_set_mode()
209 dwmac->regmap = regmap; in sti_dwmac_parse_data()
213 dwmac->speed = SPEED_100; in sti_dwmac_parse_data()
233 if (IS_ERR(dwmac->clk)) { in sti_dwmac_parse_data()
235 dwmac->clk = NULL; in sti_dwmac_parse_data()
246 struct sti_dwmac *dwmac; in sti_dwmac_probe() local
263 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in sti_dwmac_probe()
[all …]
H A Ddwmac-visconti.c59 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()
231 spin_lock_init(&dwmac->lock); in visconti_eth_dwmac_probe()
232 dwmac->reg = stmmac_res.addr; in visconti_eth_dwmac_probe()
233 dwmac->dev = &pdev->dev; in visconti_eth_dwmac_probe()
[all …]
H A Ddwmac-socfpga.c168 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()
395 if (!dwmac->tse_pcs_base) in socfpga_dwmac_pcs_init()
463 dwmac = devm_kzalloc(dev, sizeof(*dwmac), GFP_KERNEL); in socfpga_dwmac_probe()
464 if (!dwmac) in socfpga_dwmac_probe()
482 dwmac->ops = ops; in socfpga_dwmac_probe()
[all …]
H A DMakefile21 obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o
23 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
24 obj-$(CONFIG_DWMAC_RZN1) += dwmac-rzn1.o
25 obj-$(CONFIG_DWMAC_S32) += dwmac-s32.o
29 obj-$(CONFIG_DWMAC_STI) += dwmac-sti.o
30 obj-$(CONFIG_DWMAC_STM32) += dwmac-stm32.o
31 obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o
32 obj-$(CONFIG_DWMAC_SUN8I) += dwmac-sun8i.o
33 obj-$(CONFIG_DWMAC_THEAD) += dwmac-thead.o
38 obj-$(CONFIG_DWMAC_IMX8) += dwmac-imx.o
[all …]
H A Ddwmac-intel-plat.c46 struct intel_dwmac *dwmac; in intel_eth_plat_probe() local
60 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in intel_eth_plat_probe()
61 if (!dwmac) in intel_eth_plat_probe()
64 dwmac->dev = &pdev->dev; in intel_eth_plat_probe()
65 dwmac->tx_clk = NULL; in intel_eth_plat_probe()
75 if (dwmac->data->tx_clk_en) { in intel_eth_plat_probe()
77 if (IS_ERR(dwmac->tx_clk)) in intel_eth_plat_probe()
78 return PTR_ERR(dwmac->tx_clk); in intel_eth_plat_probe()
117 plat_dat->bsp_priv = dwmac; in intel_eth_plat_probe()
134 if (dwmac->data->tx_clk_en) in intel_eth_plat_probe()
[all …]
H A Ddwmac-thead.c56 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_phy_if() local
107 struct thead_dwmac *dwmac = bsp_priv; in thead_set_clk_tx_rate() local
113 plat = dwmac->plat; in thead_set_clk_tx_rate()
184 struct thead_dwmac *dwmac = priv; in thead_dwmac_init() local
213 struct thead_dwmac *dwmac; in thead_dwmac_probe() local
227 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in thead_dwmac_probe()
228 if (!dwmac) in thead_dwmac_probe()
236 dwmac->dev = &pdev->dev; in thead_dwmac_probe()
237 dwmac->plat = plat; in thead_dwmac_probe()
238 dwmac->apb_base = apb; in thead_dwmac_probe()
[all …]
H A Ddwmac-starfive.c35 struct starfive_dwmac *dwmac = plat_dat->bsp_priv; in starfive_dwmac_set_mode() local
54 dev_err(dwmac->dev, "unsupported interface %d\n", in starfive_dwmac_set_mode()
72 if (dwmac->data) { in starfive_dwmac_set_mode()
74 dwmac->data->gtxclk_dlychain); in starfive_dwmac_set_mode()
76 return dev_err_probe(dwmac->dev, err, in starfive_dwmac_set_mode()
87 struct starfive_dwmac *dwmac; in starfive_dwmac_probe() local
101 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in starfive_dwmac_probe()
102 if (!dwmac) in starfive_dwmac_probe()
105 dwmac->data = device_get_match_data(&pdev->dev); in starfive_dwmac_probe()
126 dwmac->dev = &pdev->dev; in starfive_dwmac_probe()
[all …]
H A Ddwmac-meson.c28 struct meson_dwmac *dwmac = bsp_priv; in meson6_dwmac_set_clk_tx_rate() local
31 val = readl(dwmac->reg); in meson6_dwmac_set_clk_tx_rate()
42 writel(val, dwmac->reg); in meson6_dwmac_set_clk_tx_rate()
51 struct meson_dwmac *dwmac; in meson6_dwmac_probe() local
62 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in meson6_dwmac_probe()
63 if (!dwmac) in meson6_dwmac_probe()
66 dwmac->reg = devm_platform_ioremap_resource(pdev, 1); in meson6_dwmac_probe()
67 if (IS_ERR(dwmac->reg)) in meson6_dwmac_probe()
68 return PTR_ERR(dwmac->reg); in meson6_dwmac_probe()
70 plat_dat->bsp_priv = dwmac; in meson6_dwmac_probe()
H A Ddwmac-loongson1.c51 struct ls1x_dwmac *dwmac = priv; in ls1b_dwmac_syscon_init() local
52 struct plat_stmmacenet_data *plat = dwmac->plat_dat; in ls1b_dwmac_syscon_init()
53 struct regmap *regmap = dwmac->regmap; in ls1b_dwmac_syscon_init()
118 struct ls1x_dwmac *dwmac = priv; in ls1c_dwmac_syscon_init() local
120 struct regmap *regmap = dwmac->regmap; in ls1c_dwmac_syscon_init()
147 struct ls1x_dwmac *dwmac; in ls1x_dwmac_probe() local
168 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in ls1x_dwmac_probe()
169 if (!dwmac) in ls1x_dwmac_probe()
177 plat_dat->bsp_priv = dwmac; in ls1x_dwmac_probe()
179 dwmac->plat_dat = plat_dat; in ls1x_dwmac_probe()
[all …]
/linux-6.15/Documentation/devicetree/bindings/net/
H A Damlogic,meson-dwmac.yaml20 - 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 Dstm32-dwmac.yaml23 - st,stm32-dwmac
24 - st,stm32mp1-dwmac
25 - st,stm32mp13-dwmac
26 - st,stm32mp25-dwmac
39 - st,stm32mp1-dwmac
44 - st,stm32-dwmac
48 - st,stm32-dwmac
133 - $ref: snps,dwmac.yaml#
168 compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a";
193 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
[all …]
H A Dstarfive,jh7110-dwmac.yaml19 - starfive,jh7100-dwmac
20 - starfive,jh7110-dwmac
28 - const: starfive,jh7100-dwmac
29 - const: snps,dwmac
31 - const: starfive,jh7110-dwmac
32 - const: snps,dwmac-5.20
34 - const: starfive,jh8100-dwmac
35 - const: starfive,jh7110-dwmac
36 - const: snps,dwmac-5.20
85 - $ref: snps,dwmac.yaml#
[all …]
H A Dnxp,dwmac-imx.yaml4 $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 Dsnps,dwmac.yaml23 - snps,dwmac
24 - snps,dwmac-3.40a
25 - snps,dwmac-3.50a
26 - snps,dwmac-3.610
27 - snps,dwmac-3.70a
30 - snps,dwmac-4.00
34 - snps,dwmac-5.20
71 - nxp,s32g2-dwmac
90 - snps,dwmac
97 - snps,dwmac-4.00
[all …]
H A Dtoshiba,visconti-dwmac.yaml4 $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
69 compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a";
84 compatible = "snps,dwmac-mdio";
H A Dnxp,s32-dwmac.yaml5 $id: http://devicetree.org/schemas/net/nxp,s32-dwmac.yaml#
23 - const: nxp,s32g2-dwmac
26 - nxp,s32g3-dwmac
27 - nxp,s32r45-dwmac
28 - const: nxp,s32g2-dwmac
60 - $ref: snps,dwmac.yaml#
74 compatible = "nxp,s32g2-dwmac";
98 compatible = "snps,dwmac-mdio";
H A Dintel,dwmac-plat.yaml4 $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
107 compatible = "intel,keembay-dwmac", "snps,dwmac-4.10a";
129 compatible = "snps,dwmac-mdio";
H A Dsophgo,sg2044-dwmac.yaml4 $id: http://devicetree.org/schemas/net/sophgo,sg2044-dwmac.yaml#
17 - sophgo,sg2044-dwmac
24 - const: sophgo,sg2044-dwmac
25 - const: snps,dwmac-5.30a
67 - $ref: snps,dwmac.yaml#
76 compatible = "sophgo,sg2044-dwmac", "snps,dwmac-5.30a";
H A Dnxp,lpc1850-dwmac.txt7 - compatible: Should contain "nxp,lpc1850-dwmac"
12 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
H A Dthead,th1520-gmac.yaml42 - $ref: snps,dwmac.yaml#
49 - const: snps,dwmac-3.70a
58 - const: dwmac
88 compatible = "thead,th1520-gmac", "snps,dwmac-3.70a";
90 reg-names = "dwmac", "apb";
104 compatible = "snps,dwmac-mdio";
H A Dsti-dwmac.txt10 - compatible : "st,stih407-dwmac"
34 ethernet0: dwmac@9630000 {
36 compatible = "st,stih407-dwmac", "snps,dwmac", "snps,dwmac-3.710";
/linux-6.15/Documentation/devicetree/bindings/phy/
H A Dqcom,sa8775p-dwmac-sgmii-phy.yaml4 $id: http://devicetree.org/schemas/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml#
21 - qcom,qcs8300-dwmac-sgmii-phy
22 - const: qcom,sa8775p-dwmac-sgmii-phy
23 - const: qcom,sa8775p-dwmac-sgmii-phy
55 compatible = "qcom,sa8775p-dwmac-sgmii-phy";

123456789