Lines Matching refs:np

110 	struct device_node *np = pdev->dev.of_node;  in stmmac_probe_config_dt()  local
118 *mac = of_get_mac_address(np); in stmmac_probe_config_dt()
119 plat->interface = of_get_phy_mode(np); in stmmac_probe_config_dt()
122 if (of_property_read_u32(np, "max-speed", &plat->max_speed)) in stmmac_probe_config_dt()
125 plat->bus_id = of_alias_get_id(np, "ethernet"); in stmmac_probe_config_dt()
133 plat->phy_node = of_parse_phandle(np, "phy-handle", 0); in stmmac_probe_config_dt()
136 if (!plat->phy_node && of_phy_is_fixed_link(np)) { in stmmac_probe_config_dt()
137 if ((of_phy_register_fixed_link(np) < 0)) in stmmac_probe_config_dt()
140 plat->phy_node = of_node_get(np); in stmmac_probe_config_dt()
146 if (of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr) == 0) in stmmac_probe_config_dt()
157 of_property_read_u32(np, "tx-fifo-depth", &plat->tx_fifo_size); in stmmac_probe_config_dt()
159 of_property_read_u32(np, "rx-fifo-depth", &plat->rx_fifo_size); in stmmac_probe_config_dt()
162 of_property_read_bool(np, "snps,force_sf_dma_mode"); in stmmac_probe_config_dt()
180 if (of_device_is_compatible(np, "st,spear600-gmac") || in stmmac_probe_config_dt()
181 of_device_is_compatible(np, "snps,dwmac-3.70a") || in stmmac_probe_config_dt()
182 of_device_is_compatible(np, "snps,dwmac")) { in stmmac_probe_config_dt()
190 of_property_read_u32(np, "max-frame-size", &plat->maxmtu); in stmmac_probe_config_dt()
191 of_property_read_u32(np, "snps,multicast-filter-bins", in stmmac_probe_config_dt()
193 of_property_read_u32(np, "snps,perfect-filter-entries", in stmmac_probe_config_dt()
203 if (of_device_is_compatible(np, "snps,dwmac-3.610") || in stmmac_probe_config_dt()
204 of_device_is_compatible(np, "snps,dwmac-3.710")) { in stmmac_probe_config_dt()
210 if (of_find_property(np, "snps,pbl", NULL)) { in stmmac_probe_config_dt()
214 of_node_put(np); in stmmac_probe_config_dt()
218 of_property_read_u32(np, "snps,pbl", &dma_cfg->pbl); in stmmac_probe_config_dt()
220 of_property_read_bool(np, "snps,fixed-burst"); in stmmac_probe_config_dt()
222 of_property_read_bool(np, "snps,mixed-burst"); in stmmac_probe_config_dt()
223 of_property_read_u32(np, "snps,burst_len", &dma_cfg->burst_len); in stmmac_probe_config_dt()
227 plat->force_thresh_dma_mode = of_property_read_bool(np, "snps,force_thresh_dma_mode"); in stmmac_probe_config_dt()