Lines Matching full:snps
98 np = of_parse_phandle(pdev->dev.of_node, "snps,axi-config", 0); in stmmac_axi_setup()
108 axi->axi_lpi_en = of_property_read_bool(np, "snps,lpi_en"); in stmmac_axi_setup()
109 axi->axi_xit_frm = of_property_read_bool(np, "snps,xit_frm"); in stmmac_axi_setup()
110 axi->axi_kbbe = of_property_read_bool(np, "snps,axi_kbbe"); in stmmac_axi_setup()
111 axi->axi_fb = of_property_read_bool(np, "snps,axi_fb"); in stmmac_axi_setup()
112 axi->axi_mb = of_property_read_bool(np, "snps,axi_mb"); in stmmac_axi_setup()
113 axi->axi_rb = of_property_read_bool(np, "snps,axi_rb"); in stmmac_axi_setup()
115 if (of_property_read_u32(np, "snps,wr_osr_lmt", &axi->axi_wr_osr_lmt)) in stmmac_axi_setup()
117 if (of_property_read_u32(np, "snps,rd_osr_lmt", &axi->axi_rd_osr_lmt)) in stmmac_axi_setup()
119 of_property_read_u32_array(np, "snps,blen", axi->axi_blen, AXI_BLEN); in stmmac_axi_setup()
140 * snps,mtl-rx-config or snps,mtl-tx-config properties, we fall back in stmmac_mtl_setup()
153 rx_node = of_parse_phandle(pdev->dev.of_node, "snps,mtl-rx-config", 0); in stmmac_mtl_setup()
157 tx_node = of_parse_phandle(pdev->dev.of_node, "snps,mtl-tx-config", 0); in stmmac_mtl_setup()
164 if (of_property_read_u32(rx_node, "snps,rx-queues-to-use", in stmmac_mtl_setup()
168 if (of_property_read_bool(rx_node, "snps,rx-sched-sp")) in stmmac_mtl_setup()
170 else if (of_property_read_bool(rx_node, "snps,rx-sched-wsp")) in stmmac_mtl_setup()
180 if (of_property_read_bool(q_node, "snps,dcb-algorithm")) in stmmac_mtl_setup()
182 else if (of_property_read_bool(q_node, "snps,avb-algorithm")) in stmmac_mtl_setup()
187 if (of_property_read_u32(q_node, "snps,map-to-dma-channel", in stmmac_mtl_setup()
192 if (of_property_read_u32(q_node, "snps,priority", in stmmac_mtl_setup()
201 if (of_property_read_bool(q_node, "snps,route-avcp")) in stmmac_mtl_setup()
203 else if (of_property_read_bool(q_node, "snps,route-ptp")) in stmmac_mtl_setup()
205 else if (of_property_read_bool(q_node, "snps,route-dcbcp")) in stmmac_mtl_setup()
207 else if (of_property_read_bool(q_node, "snps,route-up")) in stmmac_mtl_setup()
209 else if (of_property_read_bool(q_node, "snps,route-multi-broad")) in stmmac_mtl_setup()
223 if (of_property_read_u32(tx_node, "snps,tx-queues-to-use", in stmmac_mtl_setup()
227 if (of_property_read_bool(tx_node, "snps,tx-sched-wrr")) in stmmac_mtl_setup()
229 else if (of_property_read_bool(tx_node, "snps,tx-sched-wfq")) in stmmac_mtl_setup()
231 else if (of_property_read_bool(tx_node, "snps,tx-sched-dwrr")) in stmmac_mtl_setup()
233 else if (of_property_read_bool(tx_node, "snps,tx-sched-sp")) in stmmac_mtl_setup()
245 if (of_property_read_u32(q_node, "snps,weight", in stmmac_mtl_setup()
249 if (of_property_read_bool(q_node, "snps,dcb-algorithm")) { in stmmac_mtl_setup()
252 "snps,avb-algorithm")) { in stmmac_mtl_setup()
256 if (of_property_read_u32(q_node, "snps,send_slope", in stmmac_mtl_setup()
259 if (of_property_read_u32(q_node, "snps,idle_slope", in stmmac_mtl_setup()
262 if (of_property_read_u32(q_node, "snps,high_credit", in stmmac_mtl_setup()
265 if (of_property_read_u32(q_node, "snps,low_credit", in stmmac_mtl_setup()
272 if (of_property_read_u32(q_node, "snps,priority", in stmmac_mtl_setup()
304 * If there is the "snps,dwmac-mdio" sub-node the mdio will be allocated
308 * snps,phy-addr | Y
314 * snps,dwmac-mdio |
326 { .compatible = "snps,dwc-qos-ethernet-4.10" }, in stmmac_dt_phy()
334 * If snps,dwmac-mdio is passed from DT, always register in stmmac_dt_phy()
339 "snps,dwmac-mdio")) in stmmac_dt_phy()
448 /* "snps,phy-addr" is not a standard property. Mark it as deprecated in stmmac_probe_config_dt()
451 if (of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr) == 0) in stmmac_probe_config_dt()
452 dev_warn(&pdev->dev, "snps,phy-addr property is deprecated\n"); in stmmac_probe_config_dt()
464 of_property_read_bool(np, "snps,force_sf_dma_mode"); in stmmac_probe_config_dt()
467 of_property_read_bool(np, "snps,en-tx-lpi-clockgating"); in stmmac_probe_config_dt()
486 of_device_is_compatible(np, "snps,dwmac-3.50a") || in stmmac_probe_config_dt()
487 of_device_is_compatible(np, "snps,dwmac-3.70a") || in stmmac_probe_config_dt()
488 of_device_is_compatible(np, "snps,dwmac")) { in stmmac_probe_config_dt()
497 of_property_read_u32(np, "snps,multicast-filter-bins", in stmmac_probe_config_dt()
499 of_property_read_u32(np, "snps,perfect-filter-entries", in stmmac_probe_config_dt()
509 if (of_device_is_compatible(np, "snps,dwmac-4.00") || in stmmac_probe_config_dt()
510 of_device_is_compatible(np, "snps,dwmac-4.10a") || in stmmac_probe_config_dt()
511 of_device_is_compatible(np, "snps,dwmac-4.20a") || in stmmac_probe_config_dt()
512 of_device_is_compatible(np, "snps,dwmac-5.10a")) { in stmmac_probe_config_dt()
516 plat->tso_en = of_property_read_bool(np, "snps,tso"); in stmmac_probe_config_dt()
519 if (of_device_is_compatible(np, "snps,dwmac-3.610") || in stmmac_probe_config_dt()
520 of_device_is_compatible(np, "snps,dwmac-3.710")) { in stmmac_probe_config_dt()
526 if (of_device_is_compatible(np, "snps,dwxgmac")) { in stmmac_probe_config_dt()
529 plat->tso_en = of_property_read_bool(np, "snps,tso"); in stmmac_probe_config_dt()
540 of_property_read_u32(np, "snps,pbl", &dma_cfg->pbl); in stmmac_probe_config_dt()
543 of_property_read_u32(np, "snps,txpbl", &dma_cfg->txpbl); in stmmac_probe_config_dt()
544 of_property_read_u32(np, "snps,rxpbl", &dma_cfg->rxpbl); in stmmac_probe_config_dt()
545 dma_cfg->pblx8 = !of_property_read_bool(np, "snps,no-pbl-x8"); in stmmac_probe_config_dt()
547 dma_cfg->aal = of_property_read_bool(np, "snps,aal"); in stmmac_probe_config_dt()
548 dma_cfg->fixed_burst = of_property_read_bool(np, "snps,fixed-burst"); in stmmac_probe_config_dt()
549 dma_cfg->mixed_burst = of_property_read_bool(np, "snps,mixed-burst"); in stmmac_probe_config_dt()
551 plat->force_thresh_dma_mode = of_property_read_bool(np, "snps,force_thresh_dma_mode"); in stmmac_probe_config_dt()
558 of_property_read_u32(np, "snps,ps-speed", &plat->mac_port_sel_speed); in stmmac_probe_config_dt()
569 if (!of_device_is_compatible(np, "snps,dwc-qos-ethernet-4.10")) { in stmmac_probe_config_dt()