| /drivers/media/platform/raspberrypi/rp1-cfe/ |
| A D | dphy.c | 14 #define dphy_dbg(dphy, fmt, arg...) dev_dbg((dphy)->dev, fmt, ##arg) argument 15 #define dphy_err(dphy, fmt, arg...) dev_err((dphy)->dev, fmt, ##arg) argument 86 set_tstclk(dphy, 1); in dphy_transaction() 87 set_testen(dphy, 0); in dphy_transaction() 89 set_testen(dphy, 1); in dphy_transaction() 90 set_tstclk(dphy, 0); in dphy_transaction() 91 set_testen(dphy, 0); in dphy_transaction() 140 dphy_set_hsfreqrange(dphy, dphy->dphy_rate); in dphy_init() 151 dphy->dphy_rate, dphy->active_lanes); in dphy_start() 153 dw_csi2_host_write(dphy, DPHY_N_LANES, (dphy->active_lanes - 1)); in dphy_start() [all …]
|
| A D | dphy.h | 23 void dphy_probe(struct dphy_data *dphy); 24 void dphy_start(struct dphy_data *dphy); 25 void dphy_stop(struct dphy_data *dphy);
|
| A D | cfe.c | 1138 2 * cfe->csi2.dphy.active_lanes); in cfe_get_source_link_freq() 1212 cfe->csi2.dphy.active_lanes = mbus_config.bus.mipi_csi2.num_data_lanes; in cfe_start_streaming() 1213 if (!cfe->csi2.dphy.active_lanes) in cfe_start_streaming() 1214 cfe->csi2.dphy.active_lanes = cfe->csi2.dphy.max_lanes; in cfe_start_streaming() 1215 if (cfe->csi2.dphy.active_lanes > cfe->csi2.dphy.max_lanes) { in cfe_start_streaming() 1217 cfe->csi2.dphy.active_lanes, cfe->csi2.dphy.max_lanes); in cfe_start_streaming() 1226 cfe->csi2.dphy.dphy_rate = div_s64(link_freq * 2, 1000000); in cfe_start_streaming() 2243 cfe->csi2.dphy.max_lanes = ep.bus.mipi_csi2.num_data_lanes; in cfe_register_async_nf() 2300 cfe->csi2.dphy.base = devm_platform_ioremap_resource(pdev, 1); in cfe_probe() 2301 if (IS_ERR(cfe->csi2.dphy.base)) { in cfe_probe() [all …]
|
| A D | csi2.c | 368 dphy_start(&csi2->dphy); in csi2_open_rx() 375 dphy_stop(&csi2->dphy); in csi2_close_rx() 532 csi2->dphy.dev = csi2->v4l2_dev->dev; in csi2_init() 533 dphy_probe(&csi2->dphy); in csi2_init()
|
| A D | Makefile | 5 rp1-cfe-objs := cfe.o csi2.o pisp-fe.o dphy.o
|
| /drivers/phy/cadence/ |
| A D | cdns-dphy.c | 170 dphy->ops->set_psm_div(dphy, psm_div); in cdns_dphy_setup_psm() 179 dphy->ops->set_clk_lane_cfg(dphy, cfg); in cdns_dphy_set_clk_lane_cfg() 186 dphy->ops->set_pll_cfg(dphy, cfg); in cdns_dphy_set_pll_cfg() 191 return dphy->ops->get_wakeup_time_ns(dphy); in cdns_dphy_get_wakeup_time_ns() 416 dphy = devm_kzalloc(&pdev->dev, sizeof(*dphy), GFP_KERNEL); in cdns_dphy_probe() 417 if (!dphy) in cdns_dphy_probe() 422 if (!dphy->ops) in cdns_dphy_probe() 438 ret = dphy->ops->probe(dphy); in cdns_dphy_probe() 447 dphy->ops->remove(dphy); in cdns_dphy_probe() 451 phy_set_drvdata(dphy->phy, dphy); in cdns_dphy_probe() [all …]
|
| A D | cdns-dphy-rx.c | 135 void __iomem *reg = dphy->regs; in cdns_dphy_rx_wait_lane_ready() 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() 251 if (IS_ERR(dphy->regs)) in cdns_dphy_rx_probe() 252 return PTR_ERR(dphy->regs); in cdns_dphy_rx_probe() 255 if (IS_ERR(dphy->phy)) { in cdns_dphy_rx_probe() 257 return PTR_ERR(dphy->phy); in cdns_dphy_rx_probe() [all …]
|
| A D | Makefile | 3 obj-$(CONFIG_PHY_CADENCE_DPHY) += cdns-dphy.o 4 obj-$(CONFIG_PHY_CADENCE_DPHY_RX) += cdns-dphy-rx.o
|
| /drivers/phy/allwinner/ |
| A D | phy-sun6i-mipi-dphy.c | 220 memcpy(&dphy->config, opts, sizeof(dphy->config)); in sun6i_dphy_configure() 359 dphy->variant->tx_power_on(dphy); in sun6i_dphy_tx_power_on() 495 switch (dphy->direction) { in sun6i_dphy_power_on() 551 struct sun6i_dphy *dphy; in sun6i_dphy_probe() local 556 dphy = devm_kzalloc(&pdev->dev, sizeof(*dphy), GFP_KERNEL); in sun6i_dphy_probe() 557 if (!dphy) in sun6i_dphy_probe() 561 if (!dphy->variant) in sun6i_dphy_probe() 572 if (IS_ERR(dphy->regs)) { in sun6i_dphy_probe() 578 if (IS_ERR(dphy->reset)) { in sun6i_dphy_probe() 590 if (IS_ERR(dphy->phy)) { in sun6i_dphy_probe() [all …]
|
| /drivers/phy/starfive/ |
| A D | phy-jh7110-dphy-rx.c | 152 struct stf_dphy *dphy; in stf_dphy_probe() local 154 dphy = devm_kzalloc(&pdev->dev, sizeof(*dphy), GFP_KERNEL); in stf_dphy_probe() 155 if (!dphy) in stf_dphy_probe() 161 dphy->dev = &pdev->dev; in stf_dphy_probe() 164 if (IS_ERR(dphy->regs)) in stf_dphy_probe() 168 if (IS_ERR(dphy->cfg_clk)) in stf_dphy_probe() 172 if (IS_ERR(dphy->ref_clk)) in stf_dphy_probe() 176 if (IS_ERR(dphy->tx_clk)) in stf_dphy_probe() 180 if (IS_ERR(dphy->rstc)) in stf_dphy_probe() 188 if (IS_ERR(dphy->phy)) { in stf_dphy_probe() [all …]
|
| A D | phy-jh7110-dphy-tx.c | 316 stf_dphy_hw_reset(dphy, 1); in stf_dphy_init() 353 stf_dphy_hw_reset(dphy, 0); in stf_dphy_exit() 394 struct stf_dphy *dphy; in stf_dphy_probe() local 396 dphy = devm_kzalloc(&pdev->dev, sizeof(*dphy), GFP_KERNEL); in stf_dphy_probe() 397 if (!dphy) in stf_dphy_probe() 402 dphy->dev = &pdev->dev; in stf_dphy_probe() 406 if (IS_ERR(dphy->topsys)) in stf_dphy_probe() 412 if (IS_ERR(dphy->txesc_clk)) in stf_dphy_probe() 417 if (IS_ERR(dphy->sys_rst)) in stf_dphy_probe() 422 if (IS_ERR(dphy->phy)) in stf_dphy_probe() [all …]
|
| A D | Makefile | 2 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_RX) += phy-jh7110-dphy-rx.o 3 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_TX) += phy-jh7110-dphy-tx.o
|
| A D | Kconfig | 16 phy-jh7110-dphy-rx.ko. 26 phy-jh7110-dphy-tx.ko.
|
| /drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/ |
| A D | sun8i_a83t_dphy.c | 13 static int sun8i_a83t_dphy_configure(struct phy *dphy, in sun8i_a83t_dphy_configure() argument 19 static int sun8i_a83t_dphy_power_on(struct phy *dphy) in sun8i_a83t_dphy_power_on() argument 21 struct sun8i_a83t_mipi_csi2_device *csi2_dev = phy_get_drvdata(dphy); in sun8i_a83t_dphy_power_on() 36 static int sun8i_a83t_dphy_power_off(struct phy *dphy) in sun8i_a83t_dphy_power_off() argument 38 struct sun8i_a83t_mipi_csi2_device *csi2_dev = phy_get_drvdata(dphy); in sun8i_a83t_dphy_power_off() 57 csi2_dev->dphy = devm_phy_create(dev, NULL, &sun8i_a83t_dphy_ops); in sun8i_a83t_dphy_register() 58 if (IS_ERR(csi2_dev->dphy)) { in sun8i_a83t_dphy_register() 60 return PTR_ERR(csi2_dev->dphy); in sun8i_a83t_dphy_register() 63 phy_set_drvdata(csi2_dev->dphy, csi2_dev); in sun8i_a83t_dphy_register()
|
| A D | sun8i_a83t_mipi_csi2.c | 210 struct phy *dphy = csi2_dev->dphy; in sun8i_a83t_mipi_csi2_s_stream() local 281 ret = phy_reset(dphy); in sun8i_a83t_mipi_csi2_s_stream() 287 ret = phy_configure(dphy, &dphy_opts); in sun8i_a83t_mipi_csi2_s_stream() 300 ret = phy_power_on(dphy); in sun8i_a83t_mipi_csi2_s_stream() 315 phy_power_off(dphy); in sun8i_a83t_mipi_csi2_s_stream() 777 phy_exit(csi2_dev->dphy); in sun8i_a83t_mipi_csi2_resources_cleanup()
|
| /drivers/gpu/drm/kmb/ |
| A D | kmb_regs.h | 649 ((dphy) + (offset))) 652 ((dphy) + (offset))) 661 + (((dphy) / 4) * 4), (dphy % 4) * 8, 6, val) 669 ((dphy) / 4) * 4)) >> \ 670 (((dphy % 4) * 8) + 4)) & 0x03) 679 (dphy)) 692 4, ((val) << (((dphy) % 4) * 8))) 696 >> (((dphy) % 4) * 8) & 0xff) 700 >> (((dphy) % 4) * 8) & 0xff) 705 #define GET_PLL_LOCK(dev, dphy) \ argument [all …]
|
| /drivers/media/platform/marvell/ |
| A D | mmp-driver.c | 100 pdata->dphy[0] = in mmpcam_calc_dphy() 108 pdata->dphy[0] = in mmpcam_calc_dphy() 140 pdata->dphy[2] = in mmpcam_calc_dphy() 145 pdata->dphy[0], pdata->dphy[1], pdata->dphy[2]); in mmpcam_calc_dphy() 202 mcam->dphy = pdata->dphy; in mmpcam_probe() 216 if ((IS_ERR(cam->mipi_clk) && mcam->dphy[2] == 0)) in mmpcam_probe()
|
| /drivers/media/platform/rockchip/rkisp1/ |
| A D | rkisp1-csi.c | 171 phy_set_mode(csi->dphy, PHY_MODE_MIPI_DPHY); in rkisp1_csi_start() 172 phy_configure(csi->dphy, &opts); in rkisp1_csi_start() 173 phy_power_on(csi->dphy); in rkisp1_csi_start() 190 phy_power_off(csi->dphy); in rkisp1_csi_stop() 503 csi->dphy = devm_phy_get(rkisp1->dev, "dphy"); in rkisp1_csi_init() 504 if (IS_ERR(csi->dphy)) in rkisp1_csi_init() 505 return dev_err_probe(rkisp1->dev, PTR_ERR(csi->dphy), in rkisp1_csi_init() 508 phy_init(csi->dphy); in rkisp1_csi_init() 517 phy_exit(csi->dphy); in rkisp1_csi_cleanup()
|
| /drivers/media/platform/sunxi/sun6i-mipi-csi2/ |
| A D | sun6i_mipi_csi2.c | 178 struct phy *dphy = csi2_dev->dphy; in sun6i_mipi_csi2_s_stream() local 249 ret = phy_reset(dphy); in sun6i_mipi_csi2_s_stream() 255 ret = phy_configure(dphy, &dphy_opts); in sun6i_mipi_csi2_s_stream() 268 ret = phy_power_on(dphy); in sun6i_mipi_csi2_s_stream() 283 phy_power_off(dphy); in sun6i_mipi_csi2_s_stream() 681 csi2_dev->dphy = devm_phy_get(dev, "dphy"); in sun6i_mipi_csi2_resources_setup() 682 if (IS_ERR(csi2_dev->dphy)) { in sun6i_mipi_csi2_resources_setup() 684 ret = PTR_ERR(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 688 ret = phy_init(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 710 phy_exit(csi2_dev->dphy); in sun6i_mipi_csi2_resources_cleanup()
|
| /drivers/media/platform/cadence/ |
| A D | cdns-csi2rx.c | 133 struct phy *dphy; member 287 ret = phy_power_on(csi2rx->dphy); in csi2rx_configure_ext_dphy() 293 phy_power_off(csi2rx->dphy); in csi2rx_configure_ext_dphy() 339 if (csi2rx->dphy) { in csi2rx_start() 409 if (csi2rx->dphy) { in csi2rx_start() 411 phy_power_off(csi2rx->dphy); in csi2rx_start() 454 if (csi2rx->dphy) { in csi2rx_stop() 457 if (phy_power_off(csi2rx->dphy)) in csi2rx_stop() 666 if (IS_ERR(csi2rx->dphy)) { in csi2rx_get_resources() 668 return PTR_ERR(csi2rx->dphy); in csi2rx_get_resources() [all …]
|
| /drivers/phy/amlogic/ |
| A D | Makefile | 7 obj-$(CONFIG_PHY_MESON_G12A_MIPI_DPHY_ANALOG) += phy-meson-g12a-mipi-dphy-analog.o 10 obj-$(CONFIG_PHY_MESON_AXG_MIPI_DPHY) += phy-meson-axg-mipi-dphy.o
|
| /drivers/gpu/drm/rockchip/ |
| A D | rockchip_lvds.c | 52 struct phy *dphy; member 491 lvds->dphy = devm_phy_get(&pdev->dev, "dphy"); in px30_lvds_probe() 492 if (IS_ERR(lvds->dphy)) in px30_lvds_probe() 493 return PTR_ERR(lvds->dphy); in px30_lvds_probe() 495 ret = phy_init(lvds->dphy); in px30_lvds_probe() 499 ret = phy_set_mode(lvds->dphy, PHY_MODE_LVDS); in px30_lvds_probe() 503 return phy_power_on(lvds->dphy); in px30_lvds_probe()
|
| /drivers/gpu/drm/sun4i/ |
| A D | sun6i_mipi_dsi.c | 762 phy_init(dsi->dphy); in sun6i_dsi_encoder_enable() 768 phy_set_mode(dsi->dphy, PHY_MODE_MIPI_DPHY); in sun6i_dsi_encoder_enable() 769 phy_configure(dsi->dphy, &opts); in sun6i_dsi_encoder_enable() 770 phy_power_on(dsi->dphy); in sun6i_dsi_encoder_enable() 808 phy_power_off(dsi->dphy); in sun6i_dsi_encoder_disable() 809 phy_exit(dsi->dphy); in sun6i_dsi_encoder_disable() 1171 dsi->dphy = devm_phy_get(dev, "dphy"); in sun6i_dsi_probe() 1172 if (IS_ERR(dsi->dphy)) { in sun6i_dsi_probe() 1174 ret = PTR_ERR(dsi->dphy); in sun6i_dsi_probe()
|
| /drivers/gpu/drm/bridge/cadence/ |
| A D | cdns-dsi-core.c | 599 ret = phy_validate(dsi->dphy, PHY_MODE_MIPI_DPHY, 0, &output->phy_opts); in cdns_dsi_check_conf() 708 phy_power_off(dsi->dphy); in cdns_dsi_bridge_atomic_post_disable() 709 phy_exit(dsi->dphy); in cdns_dsi_bridge_atomic_post_disable() 729 phy_init(dsi->dphy); in cdns_dsi_hs_init() 730 phy_set_mode(dsi->dphy, PHY_MODE_MIPI_DPHY); in cdns_dsi_hs_init() 731 phy_configure(dsi->dphy, &output->phy_opts); in cdns_dsi_hs_init() 732 phy_power_on(dsi->dphy); in cdns_dsi_hs_init() 1328 dsi->dphy = devm_phy_get(&pdev->dev, "dphy"); in cdns_dsi_drm_probe() 1329 if (IS_ERR(dsi->dphy)) in cdns_dsi_drm_probe() 1330 return PTR_ERR(dsi->dphy); in cdns_dsi_drm_probe()
|
| /drivers/media/platform/amlogic/c3/mipi-csi2/ |
| A D | c3-mipi-csi2.c | 249 void __iomem *dphy; member 284 addr = csi->dphy + CSI2_REG_ADDR(reg); in c3_mipi_csi_write() 727 csi->dphy = devm_platform_ioremap_resource_byname(pdev, "dphy"); in c3_mipi_csi_ioremap_resource() 728 if (IS_ERR(csi->dphy)) in c3_mipi_csi_ioremap_resource() 729 return PTR_ERR(csi->dphy); in c3_mipi_csi_ioremap_resource()
|