/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-meson8b.c | 3 * Amlogic Meson8b, Meson8m2 and GXBB DWMAC glue layer 84 int (*set_phy_mode)(struct meson8b_dwmac *dwmac); 107 static void meson8b_dwmac_mask_bits(struct meson8b_dwmac *dwmac, u32 reg, in meson8b_dwmac_mask_bits() argument 112 data = readl(dwmac->regs + reg); in meson8b_dwmac_mask_bits() 116 writel(data, dwmac->regs + reg); in meson8b_dwmac_mask_bits() 119 static struct clk *meson8b_dwmac_register_clk(struct meson8b_dwmac *dwmac, in meson8b_dwmac_register_clk() argument 129 snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dwmac->dev), in meson8b_dwmac_register_clk() 140 return devm_clk_register(dwmac->dev, hw); in meson8b_dwmac_register_clk() 143 static int meson8b_init_rgmii_tx_clk(struct meson8b_dwmac *dwmac) in meson8b_init_rgmii_tx_clk() argument 146 struct device *dev = dwmac->dev; in meson8b_init_rgmii_tx_clk() [all …]
|
H A D | dwmac-socfpga.c | 4 * Adopted from dwmac-sti.c 67 struct socfpga_dwmac *dwmac = (struct socfpga_dwmac *)bsp_priv; in socfpga_dwmac_fix_mac_speed() local 68 struct stmmac_priv *priv = netdev_priv(dev_get_drvdata(dwmac->dev)); in socfpga_dwmac_fix_mac_speed() 69 void __iomem *splitter_base = dwmac->splitter_base; in socfpga_dwmac_fix_mac_speed() 70 void __iomem *sgmii_adapter_base = dwmac->sgmii_adapter_base; in socfpga_dwmac_fix_mac_speed() 104 static int socfpga_dwmac_parse_data(struct socfpga_dwmac *dwmac, struct device *dev) in socfpga_dwmac_parse_data() argument 135 dwmac->f2h_ptp_ref_clk = of_property_read_bool(np, "altr,f2h_ptp_ref_clk"); in socfpga_dwmac_parse_data() 146 dwmac->splitter_base = devm_ioremap_resource(dev, &res_splitter); in socfpga_dwmac_parse_data() 147 if (IS_ERR(dwmac->splitter_base)) { in socfpga_dwmac_parse_data() 149 return PTR_ERR(dwmac->splitter_base); in socfpga_dwmac_parse_data() [all …]
|
H A D | dwmac-visconti.c | 58 struct visconti_eth *dwmac = bsp_priv; in visconti_eth_set_clk_tx_rate() local 80 val = readl(dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 84 writel(val, dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 88 writel(val, dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 91 writel(val, dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 94 writel(val, dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 110 val = readl(dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 114 writel(val, dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 121 writel(val, dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() 124 writel(val, dwmac->reg + REG_ETHER_CLOCK_SEL); in visconti_eth_set_clk_tx_rate() [all …]
|
H A D | dwmac-thead.c | 3 * T-HEAD DWMAC platform driver 56 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_phy_if() local 70 dev_err(dwmac->dev, "unsupported phy interface %d\n", in thead_dwmac_set_phy_if() 75 writel(phyif, dwmac->apb_base + GMAC_INTF_CTRL); in thead_dwmac_set_phy_if() 81 struct thead_dwmac *dwmac = plat->bsp_priv; in thead_dwmac_set_txclk_dir() local 95 dev_err(dwmac->dev, "unsupported phy interface %d\n", in thead_dwmac_set_txclk_dir() 100 writel(txclk_dir, dwmac->apb_base + GMAC_TXCLK_OEN); in thead_dwmac_set_txclk_dir() 107 struct thead_dwmac *dwmac = bsp_priv; in thead_set_clk_tx_rate() local 113 plat = dwmac->plat; in thead_set_clk_tx_rate() 126 writel(0, dwmac->apb_base + GMAC_PLLCLK_DIV); in thead_set_clk_tx_rate() [all …]
|
H A D | dwmac-starfive.c | 3 * StarFive DWMAC platform driver 35 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() 59 regmap = syscon_regmap_lookup_by_phandle_args(dwmac->dev->of_node, in starfive_dwmac_set_mode() 63 return dev_err_probe(dwmac->dev, PTR_ERR(regmap), "getting the regmap failed\n"); in starfive_dwmac_set_mode() 70 return dev_err_probe(dwmac->dev, err, "error setting phy mode\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 [all …]
|
H A D | dwmac-meson.c | 3 * Amlogic Meson6 and Meson8 DWMAC glue layer 28 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() [all …]
|
H A D | dwmac-loongson1.c | 3 * Loongson-1 DWMAC glue layer 59 struct ls1x_dwmac *dwmac = plat_dat->bsp_priv; in ls1b_dwmac_setup() local 72 dwmac->id = 0; in ls1b_dwmac_setup() 74 dwmac->id = 1; in ls1b_dwmac_setup() 86 struct ls1x_dwmac *dwmac = priv; in ls1b_dwmac_syscon_init() local 87 struct plat_stmmacenet_data *plat = dwmac->plat_dat; in ls1b_dwmac_syscon_init() 88 struct regmap *regmap = dwmac->regmap; in ls1b_dwmac_syscon_init() 90 if (dwmac->id == 0) { in ls1b_dwmac_syscon_init() 109 } else if (dwmac->id == 1) { in ls1b_dwmac_syscon_init() 140 struct ls1x_dwmac *dwmac = priv; in ls1c_dwmac_syscon_init() local [all …]
|
H A D | dwmac-sophgo.c | 3 * Sophgo DWMAC platform driver 57 { .compatible = "sophgo,sg2042-dwmac" }, 58 { .compatible = "sophgo,sg2044-dwmac" }, 67 .name = "sophgo-dwmac", 75 MODULE_DESCRIPTION("Sophgo DWMAC platform driver");
|
H A D | dwmac-lpc18xx.c | 2 * DWMAC glue for NXP LPC18xx/LPC43xx Ethernet 69 { .compatible = "nxp,lpc1850-dwmac" }, 78 .name = "lpc18xx-dwmac", 86 MODULE_DESCRIPTION("DWMAC glue for LPC18xx/43xx Ethernet");
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | amlogic,meson-dwmac.yaml | 5 $id: http://devicetree.org/schemas/net/amlogic,meson-dwmac.yaml# 8 title: Amlogic Meson DWMAC Ethernet controller 14 # We need a select here so we don't match all nodes with 'snps,dwmac' 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# [all …]
|
H A D | stm32-dwmac.yaml | 5 $id: http://devicetree.org/schemas/net/stm32-dwmac.yaml# 8 title: STMicroelectronics STM32 / MCU DWMAC glue layer controller 17 # We need a select here so we don't match all nodes with 'snps,dwmac' 23 - st,stm32-dwmac 24 - st,stm32mp1-dwmac 25 - st,stm32mp13-dwmac 26 - st,stm32mp25-dwmac 35 - st,stm32mp25-dwmac 36 - const: snps,dwmac-5.20 39 - st,stm32mp1-dwmac [all …]
|
H A D | snps,dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/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-3.72a 30 - snps,dwmac-4.00 31 - snps,dwmac-4.10a [all …]
|
H A D | starfive,jh7110-dwmac.yaml | 5 $id: http://devicetree.org/schemas/net/starfive,jh7110-dwmac.yaml# 8 title: StarFive JH7110 DWMAC glue layer 19 - 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 [all …]
|
H A D | nxp,dwmac-imx.yaml | 4 $id: http://devicetree.org/schemas/net/nxp,dwmac-imx.yaml# 7 title: NXP i.MX8/9 DWMAC glue layer 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 [all …]
|
H A D | nxp,lpc1850-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/nxp,lpc1850-dwmac.yaml# 12 # We need a select here so we don't match all nodes with 'snps,dwmac' 18 - nxp,lpc1850-dwmac 26 - nxp,lpc1850-dwmac 27 - const: snps,dwmac-3.611 28 - const: snps,dwmac 63 - $ref: snps,dwmac.yaml# 72 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
|
H A D | sophgo,sg2044-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/sophgo,sg2044-dwmac.yaml# 7 title: Sophgo SG2044 DWMAC glue layer 17 - sophgo,sg2044-dwmac 18 - sophgo,sg2042-dwmac 26 - const: sophgo,sg2042-dwmac 27 - const: snps,dwmac-5.00a 29 - const: sophgo,sg2044-dwmac 30 - const: snps,dwmac-5.30a 72 - $ref: snps,dwmac.yaml# 81 compatible = "sophgo,sg2044-dwmac", "snps,dwmac-5.30a";
|
H A D | altr,socfpga-stmmac.yaml | 7 title: Altera SOCFPGA SoC DWMAC controller 14 Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, Agilex5 and Agilex7 17 # does not validate against net/snps,dwmac.yaml. 36 - const: snps,dwmac-3.70a 37 - const: snps,dwmac 40 - const: snps,dwmac-3.72a 41 - const: snps,dwmac 44 - const: snps,dwmac-3.74a 45 - const: snps,dwmac 107 Should be the phandle to the emac splitter soft IP node if DWMAC [all …]
|
H A D | toshiba,visconti-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/toshiba,visconti-dwmac.yaml# 7 title: Toshiba Visconti DWMAC Ethernet controller 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 D | sophgo,cv1800b-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/sophgo,cv1800b-dwmac.yaml# 7 title: Sophgo CV1800B DWMAC glue layer 17 - sophgo,cv1800b-dwmac 24 - const: sophgo,cv1800b-dwmac 25 - const: snps,dwmac-3.70a 63 - $ref: snps,dwmac.yaml# 72 compatible = "sophgo,cv1800b-dwmac", "snps,dwmac-3.70a"; 94 compatible = "snps,dwmac-mdio";
|
H A D | intel,dwmac-plat.yaml | 4 $id: http://devicetree.org/schemas/net/intel,dwmac-plat.yaml# 7 title: Intel DWMAC glue layer 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 D | sti-dwmac.txt | 1 STMicroelectronics SoC DWMAC glue layer controller 10 - compatible : "st,stih407-dwmac" 34 ethernet0: dwmac@9630000 { 36 compatible = "st,stih407-dwmac", "snps,dwmac", "snps,dwmac-3.710";
|
H A D | thead,th1520-gmac.yaml | 42 - $ref: snps,dwmac.yaml# 49 - const: snps,dwmac-3.70a 58 - const: dwmac 90 compatible = "thead,th1520-gmac", "snps,dwmac-3.70a"; 92 reg-names = "dwmac", "apb"; 106 compatible = "snps,dwmac-mdio";
|
H A D | mediatek-dwmac.yaml | 4 $id: http://devicetree.org/schemas/net/mediatek-dwmac.yaml# 7 title: MediaTek DWMAC glue layer controller 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 161 compatible = "mediatek,mt2712-gmac", "snps,dwmac-4.20a";
|
H A D | loongson,ls1c-emac.yaml | 38 - const: snps,dwmac-3.50a 78 - $ref: snps,dwmac.yaml# 88 compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a"; 107 compatible = "snps,dwmac-mdio";
|
H A D | loongson,ls1b-gmac.yaml | 39 - const: snps,dwmac-3.50a 79 - $ref: snps,dwmac.yaml# 89 compatible = "loongson,ls1b-gmac", "snps,dwmac-3.50a"; 108 compatible = "snps,dwmac-mdio";
|