Lines Matching full:dphy
13 #include <linux/phy/phy-mipi-dphy.h>
81 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy);
87 dphy->regs + DPHY_CMN_SSM);
94 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy);
96 writel(0, dphy->regs + DPHY_CMN_SSM);
128 static int cdns_dphy_rx_wait_lane_ready(struct cdns_dphy_rx *dphy,
135 void __iomem *reg = dphy->regs;
171 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy);
182 writel(reg, dphy->regs + DPHY_LANE);
195 writel(reg, dphy->regs + DPHY_BAND_CFG);
198 * Set the required power island phase 2 time. This is mandated by DPHY
202 writel(reg, dphy->regs + DPHY_POWER_ISLAND_EN_DATA);
204 writel(reg, dphy->regs + DPHY_POWER_ISLAND_EN_CLK);
206 ret = cdns_dphy_rx_wait_lane_ready(dphy, lanes);
208 dev_err(dphy->dev, "DPHY wait for lane ready timeout\n");
241 struct cdns_dphy_rx *dphy;
243 dphy = devm_kzalloc(dev, sizeof(*dphy), GFP_KERNEL);
244 if (!dphy)
247 dev_set_drvdata(dev, dphy);
248 dphy->dev = dev;
250 dphy->regs = devm_platform_ioremap_resource(pdev, 0);
251 if (IS_ERR(dphy->regs))
252 return PTR_ERR(dphy->regs);
254 dphy->phy = devm_phy_create(dev, NULL, &cdns_dphy_rx_ops);
255 if (IS_ERR(dphy->phy)) {
256 dev_err(dev, "Failed to create PHY: %ld\n", PTR_ERR(dphy->phy));
257 return PTR_ERR(dphy->phy);
260 phy_set_drvdata(dphy->phy, dphy);
272 { .compatible = "cdns,dphy-rx" },
280 .name = "cdns-mipi-dphy-rx",