Lines Matching +full:pci +full:- +full:phy
1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/phy.h>
9 #include <linux/phy/phy.h>
16 static int ns2_pci_phy_init(struct phy *p) in ns2_pci_phy_init()
34 dev_err(&mdiodev->dev, "Error %d writing to phy\n", rc); in ns2_pci_phy_init()
45 struct device *dev = &mdiodev->dev; in ns2_pci_phy_probe()
47 struct phy *phy; in ns2_pci_phy_probe() local
49 phy = devm_phy_create(dev, dev->of_node, &ns2_pci_phy_ops); in ns2_pci_phy_probe()
50 if (IS_ERR(phy)) { in ns2_pci_phy_probe()
51 dev_err(dev, "failed to create Phy\n"); in ns2_pci_phy_probe()
52 return PTR_ERR(phy); in ns2_pci_phy_probe()
55 phy_set_drvdata(phy, mdiodev); in ns2_pci_phy_probe()
57 provider = devm_of_phy_provider_register(&phy->dev, in ns2_pci_phy_probe()
60 dev_err(dev, "failed to register Phy provider\n"); in ns2_pci_phy_probe()
64 dev_info(dev, "%s PHY registered\n", dev_name(dev)); in ns2_pci_phy_probe()
70 { .compatible = "brcm,ns2-pcie-phy", },
78 .name = "phy-bcm-ns2-pci",
87 MODULE_DESCRIPTION("Broadcom Northstar2 PCI Phy driver");
89 MODULE_ALIAS("platform:phy-bcm-ns2-pci");