Lines Matching full:snps

99 	np = of_parse_phandle(pdev->dev.of_node, "snps,axi-config", 0);  in stmmac_axi_setup()
109 axi->axi_lpi_en = of_property_read_bool(np, "snps,lpi_en"); in stmmac_axi_setup()
110 axi->axi_xit_frm = of_property_read_bool(np, "snps,xit_frm"); in stmmac_axi_setup()
111 axi->axi_kbbe = of_property_read_bool(np, "snps,kbbe"); in stmmac_axi_setup()
112 axi->axi_fb = of_property_read_bool(np, "snps,fb"); in stmmac_axi_setup()
113 axi->axi_mb = of_property_read_bool(np, "snps,mb"); in stmmac_axi_setup()
114 axi->axi_rb = of_property_read_bool(np, "snps,rb"); in stmmac_axi_setup()
116 if (of_property_read_u32(np, "snps,wr_osr_lmt", &axi->axi_wr_osr_lmt)) in stmmac_axi_setup()
118 if (of_property_read_u32(np, "snps,rd_osr_lmt", &axi->axi_rd_osr_lmt)) in stmmac_axi_setup()
120 of_property_read_u32_array(np, "snps,blen", axi->axi_blen, AXI_BLEN); in stmmac_axi_setup()
141 * snps,mtl-rx-config or snps,mtl-tx-config properties, we fall back in stmmac_mtl_setup()
154 rx_node = of_parse_phandle(pdev->dev.of_node, "snps,mtl-rx-config", 0); in stmmac_mtl_setup()
158 tx_node = of_parse_phandle(pdev->dev.of_node, "snps,mtl-tx-config", 0); in stmmac_mtl_setup()
165 if (of_property_read_u32(rx_node, "snps,rx-queues-to-use", in stmmac_mtl_setup()
169 if (of_property_read_bool(rx_node, "snps,rx-sched-sp")) in stmmac_mtl_setup()
171 else if (of_property_read_bool(rx_node, "snps,rx-sched-wsp")) in stmmac_mtl_setup()
181 if (of_property_read_bool(q_node, "snps,dcb-algorithm")) in stmmac_mtl_setup()
183 else if (of_property_read_bool(q_node, "snps,avb-algorithm")) in stmmac_mtl_setup()
188 if (of_property_read_u32(q_node, "snps,map-to-dma-channel", in stmmac_mtl_setup()
193 if (of_property_read_u32(q_node, "snps,priority", in stmmac_mtl_setup()
202 if (of_property_read_bool(q_node, "snps,route-avcp")) in stmmac_mtl_setup()
204 else if (of_property_read_bool(q_node, "snps,route-ptp")) in stmmac_mtl_setup()
206 else if (of_property_read_bool(q_node, "snps,route-dcbcp")) in stmmac_mtl_setup()
208 else if (of_property_read_bool(q_node, "snps,route-up")) in stmmac_mtl_setup()
210 else if (of_property_read_bool(q_node, "snps,route-multi-broad")) in stmmac_mtl_setup()
224 if (of_property_read_u32(tx_node, "snps,tx-queues-to-use", in stmmac_mtl_setup()
228 if (of_property_read_bool(tx_node, "snps,tx-sched-wrr")) in stmmac_mtl_setup()
230 else if (of_property_read_bool(tx_node, "snps,tx-sched-wfq")) in stmmac_mtl_setup()
232 else if (of_property_read_bool(tx_node, "snps,tx-sched-dwrr")) in stmmac_mtl_setup()
244 if (of_property_read_u32(q_node, "snps,weight", in stmmac_mtl_setup()
248 if (of_property_read_bool(q_node, "snps,dcb-algorithm")) { in stmmac_mtl_setup()
251 "snps,avb-algorithm")) { in stmmac_mtl_setup()
255 if (of_property_read_u32(q_node, "snps,send_slope", in stmmac_mtl_setup()
258 if (of_property_read_u32(q_node, "snps,idle_slope", in stmmac_mtl_setup()
261 if (of_property_read_u32(q_node, "snps,high_credit", in stmmac_mtl_setup()
264 if (of_property_read_u32(q_node, "snps,low_credit", in stmmac_mtl_setup()
271 if (of_property_read_u32(q_node, "snps,priority", in stmmac_mtl_setup()
280 of_property_read_bool(q_node, "snps,coe-unsupported"); in stmmac_mtl_setup()
303 * 1. The compatible is "snps,dwc-qos-ethernet-4.10" && a "mdio" named
305 * 2. A child node with the "snps,dwmac-mdio" compatible is present
312 { .compatible = "snps,dwc-qos-ethernet-4.10" }, in stmmac_of_get_mdio()
321 * If snps,dwmac-mdio is passed from DT, always register in stmmac_of_get_mdio()
326 "snps,dwmac-mdio")) in stmmac_of_get_mdio()
467 if (of_property_read_u32(np, "snps,clk-csr", &plat->clk_csr)) in stmmac_probe_config_dt()
470 /* "snps,phy-addr" is not a standard property. Mark it as deprecated in stmmac_probe_config_dt()
473 if (of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr) == 0) in stmmac_probe_config_dt()
474 dev_warn(&pdev->dev, "snps,phy-addr property is deprecated\n"); in stmmac_probe_config_dt()
487 of_property_read_bool(np, "snps,force_sf_dma_mode"); in stmmac_probe_config_dt()
489 if (of_property_read_bool(np, "snps,en-tx-lpi-clockgating")) in stmmac_probe_config_dt()
509 of_device_is_compatible(np, "snps,dwmac-3.50a") || in stmmac_probe_config_dt()
510 of_device_is_compatible(np, "snps,dwmac-3.70a") || in stmmac_probe_config_dt()
511 of_device_is_compatible(np, "snps,dwmac-3.72a") || in stmmac_probe_config_dt()
512 of_device_is_compatible(np, "snps,dwmac")) { in stmmac_probe_config_dt()
521 of_property_read_u32(np, "snps,multicast-filter-bins", in stmmac_probe_config_dt()
523 of_property_read_u32(np, "snps,perfect-filter-entries", in stmmac_probe_config_dt()
533 if (of_device_is_compatible(np, "snps,dwmac-3.40a")) { in stmmac_probe_config_dt()
541 if (of_device_is_compatible(np, "snps,dwmac-4.00") || in stmmac_probe_config_dt()
542 of_device_is_compatible(np, "snps,dwmac-4.10a") || in stmmac_probe_config_dt()
543 of_device_is_compatible(np, "snps,dwmac-4.20a") || in stmmac_probe_config_dt()
544 of_device_is_compatible(np, "snps,dwmac-5.10a") || in stmmac_probe_config_dt()
545 of_device_is_compatible(np, "snps,dwmac-5.20")) { in stmmac_probe_config_dt()
549 if (of_property_read_bool(np, "snps,tso")) in stmmac_probe_config_dt()
553 if (of_device_is_compatible(np, "snps,dwmac-3.610") || in stmmac_probe_config_dt()
554 of_device_is_compatible(np, "snps,dwmac-3.710")) { in stmmac_probe_config_dt()
560 if (of_device_is_compatible(np, "snps,dwxgmac")) { in stmmac_probe_config_dt()
563 if (of_property_read_bool(np, "snps,tso")) in stmmac_probe_config_dt()
575 of_property_read_u32(np, "snps,pbl", &dma_cfg->pbl); in stmmac_probe_config_dt()
578 of_property_read_u32(np, "snps,txpbl", &dma_cfg->txpbl); in stmmac_probe_config_dt()
579 of_property_read_u32(np, "snps,rxpbl", &dma_cfg->rxpbl); in stmmac_probe_config_dt()
580 dma_cfg->pblx8 = !of_property_read_bool(np, "snps,no-pbl-x8"); in stmmac_probe_config_dt()
582 dma_cfg->aal = of_property_read_bool(np, "snps,aal"); in stmmac_probe_config_dt()
583 dma_cfg->fixed_burst = of_property_read_bool(np, "snps,fixed-burst"); in stmmac_probe_config_dt()
584 dma_cfg->mixed_burst = of_property_read_bool(np, "snps,mixed-burst"); in stmmac_probe_config_dt()
586 plat->force_thresh_dma_mode = of_property_read_bool(np, "snps,force_thresh_dma_mode"); in stmmac_probe_config_dt()
593 of_property_read_u32(np, "snps,ps-speed", &plat->mac_port_sel_speed); in stmmac_probe_config_dt()
604 if (!of_device_is_compatible(np, "snps,dwc-qos-ethernet-4.10")) { in stmmac_probe_config_dt()