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