Lines Matching +full:pcs +full:- +full:handle
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2024 Schneider-Electric
9 #include <linux/pcs-rzn1-miic.h>
18 struct device_node *np = priv->device->of_node; in rzn1_dwmac_pcs_init()
20 struct phylink_pcs *pcs; in rzn1_dwmac_pcs_init() local
22 pcs_node = of_parse_phandle(np, "pcs-handle", 0); in rzn1_dwmac_pcs_init()
25 pcs = miic_create(priv->device, pcs_node); in rzn1_dwmac_pcs_init()
27 if (IS_ERR(pcs)) in rzn1_dwmac_pcs_init()
28 return PTR_ERR(pcs); in rzn1_dwmac_pcs_init()
30 priv->hw->phylink_pcs = pcs; in rzn1_dwmac_pcs_init()
38 if (priv->hw->phylink_pcs) in rzn1_dwmac_pcs_exit()
39 miic_destroy(priv->hw->phylink_pcs); in rzn1_dwmac_pcs_exit()
45 return priv->hw->phylink_pcs; in rzn1_dwmac_select_pcs()
52 struct device *dev = &pdev->dev; in rzn1_dwmac_probe()
63 plat_dat->bsp_priv = plat_dat; in rzn1_dwmac_probe()
64 plat_dat->pcs_init = rzn1_dwmac_pcs_init; in rzn1_dwmac_probe()
65 plat_dat->pcs_exit = rzn1_dwmac_pcs_exit; in rzn1_dwmac_probe()
66 plat_dat->select_pcs = rzn1_dwmac_select_pcs; in rzn1_dwmac_probe()
76 { .compatible = "renesas,rzn1-gmac" },
85 .name = "rzn1-dwmac",